/**
* 脚本名称:网页调试助手(修改自id77)
* 更新时间:2023-08-20
*/
const $ = new Env('调试助手');
let html = $response.body || '';
let clicker_frequency = 10;
let clicker_off_zIndex = 10001;
let prefix = randomInteger(1000, 10000);
try {
let url = $request.url.replace(/&un_area=[\d_]+/g, '');
let tools = `
`;
let copyObject = `
`;
let scriptDoms = ``;
let mitmContent = `
`;
// if (//i.test(html)) {
// html = html.replace(//i, ``);
// }
html = html.replace(/()/i, `$1`);
if (/(<(?:style|link|script)[\s\S]+?<\/head>)/i.test(html)) {
html = html.replace(
/(<(?:style|link|script)[\s\S]+?<\/head>)/i,
`${copyObject}${scriptDoms}${mitmContent}$1`
);
} else {
html = html.replace(
/(<\/head>|