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