unicomDebug.js 562 B

123456789101112131415161718
  1. /*
  2. 中国联通vConsole调试
  3. [Script]
  4. # > 中国联通vConsole调试
  5. ^https?:\/\/img\.client\.10010\.com\/2023unicomyuedu\/index\.html url script-response-body https://git.jojo21.top/shawenguan/Quantumult-X/raw/master/Scripts/unicom/unicomDebug.js
  6. [MITM]
  7. hostname = img.client.10010.com
  8. */
  9. let body = $response.body;
  10. let injectionStr = `<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>\n<script>var vConsole = new window.VConsole();</script>`;
  11. body = body.replace(/<\/body>/i, injectionStr + "</body>");
  12. $done({ body: body })