mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-07-31 00:12:00 +08:00
add
This commit is contained in:
parent
39f6de6e8b
commit
e567e5a9f9
@ -1137,6 +1137,9 @@ function injectfunc(e, window) {
|
||||
var v_Error = Error
|
||||
window.globalConfig = e;
|
||||
console.log("inject start!", e)
|
||||
if (e["config-hook-regexp-url"].trim()){
|
||||
console.log('[*] 配置了只收集对某个js路径才输出的配置(如出现控制台不输出hook,注意配置该项为空):', e["config-hook-regexp-url"])
|
||||
}
|
||||
// 备份 console.log
|
||||
function _mk_logs(){
|
||||
return origslice.call(arguments).map(function(e){
|
||||
@ -1160,7 +1163,7 @@ function injectfunc(e, window) {
|
||||
if (cache[a[0]] > log_limit){
|
||||
if (!close_tog[a[0]]){
|
||||
close_tog[a[0]] = true
|
||||
v_console_log(a[0], '超过接口的输出上限:', log_limit, ', 停止输出该接口的日志.')
|
||||
v_console_log(a[0], '超过接口的输出上限:', log_limit, ', 停止输出该接口的日志.(默认30,可在 “dom对象hook配置” 的红色窗口中配置)')
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@ -68,7 +68,7 @@
|
||||
</div>
|
||||
|
||||
<div style="margin: 1px">
|
||||
<label >设置每个接口的请求数量,防止无限打印输出的情况</label>
|
||||
<label >设置每个接口的请求数量,防止无限打印输出的情况(不配置默认为30)</label>
|
||||
</div>
|
||||
<div style="margin: 1px">
|
||||
<input style="width: 98%" type="text" data-key="config-hook-log-limit-num">
|
||||
|
Loading…
x
Reference in New Issue
Block a user