mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-14 04:35:58 +08:00
add
This commit is contained in:
parent
f2c3012140
commit
8bb5132331
@ -1008,14 +1008,21 @@ function injectfunc(e, window) {
|
||||
if (e["config-hook-remove-dyn-debugger"]){
|
||||
!function(){
|
||||
function mk_func(fname){
|
||||
var temp = []
|
||||
function replace_debugger(e){
|
||||
if (/debugger/.test(e[e.length-1])){
|
||||
if (temp.indexOf(e[e.length-1]) == -1){
|
||||
temp.push(e[e.length-1])
|
||||
window.v_log(..._mk_logs(`[replace_debugger:${fname}]: debugger is exist, replace it with empty string.`))
|
||||
}
|
||||
e[e.length-1]=e[e.length-1].replace(/debugger/g, ' ')
|
||||
}else{
|
||||
if (temp.indexOf(e[e.length-1]) == -1){
|
||||
temp.push(e[e.length-1]
|
||||
window.v_log(..._mk_logs(`[replace_debugger:${fname}]: ${e[e.length-1]}`) )
|
||||
}
|
||||
}
|
||||
}
|
||||
return replace_debugger
|
||||
}
|
||||
window.v_func = mk_func('Function')
|
||||
|
Loading…
x
Reference in New Issue
Block a user