mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-07-21 07:44:28 +08:00
add
This commit is contained in:
parent
471af9815c
commit
3fba2e3f39
@ -27,8 +27,6 @@ function injectfunc(e, window) {
|
|||||||
saf=function(n,m){return r(n,i,`function ${m?m:n.name||""}() { [native code] }`),n;};
|
saf=function(n,m){return r(n,i,`function ${m?m:n.name||""}() { [native code] }`),n;};
|
||||||
}();
|
}();
|
||||||
|
|
||||||
if (e["config-hook-global"]) {
|
|
||||||
}else{return}
|
|
||||||
if (e["config-hook-test"]) {
|
if (e["config-hook-test"]) {
|
||||||
debugger
|
debugger
|
||||||
}
|
}
|
||||||
@ -435,8 +433,10 @@ function inject_script(code){
|
|||||||
}
|
}
|
||||||
|
|
||||||
chrome.storage.local.get(hookers, function (result) {
|
chrome.storage.local.get(hookers, function (result) {
|
||||||
|
if (result["config-hook-global"]){
|
||||||
var replacer_injectfunc = (injectfunc + '').replace('$domobj_placeholder', make_domhooker_funcs())
|
var replacer_injectfunc = (injectfunc + '').replace('$domobj_placeholder', make_domhooker_funcs())
|
||||||
inject_script(`(${replacer_injectfunc})(${JSON.stringify(result)},window)`);
|
inject_script(`(${replacer_injectfunc})(${JSON.stringify(result)},window)`);
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) {
|
chrome.extension.onMessage.addListener(function(msg, sender, sendResponse) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user