first commit
This commit is contained in:
22
js/cover.js
Normal file
22
js/cover.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* 版权所有:bmy
|
||||
* 邮箱:2271608011@qq.com
|
||||
* 备注:代码没啥好看的,写给自己用
|
||||
*/
|
||||
|
||||
// 注入js文件
|
||||
|
||||
let scriptUrl = [
|
||||
'/js/jquery-1.9.1.min.js',
|
||||
'/js/script.js'
|
||||
]
|
||||
|
||||
if(document.head) {
|
||||
scriptUrl.forEach(v => createdScript(v))
|
||||
}
|
||||
|
||||
function createdScript(path) {
|
||||
let script = document.createElement('script');
|
||||
script.src = chrome.runtime.getURL(path);
|
||||
document.head.appendChild(script)
|
||||
}
|
||||
Reference in New Issue
Block a user