unicomDebug.js 646 B

1234567891011121314151617181920212223
  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. console.log(body);
  11. if (body) {
  12. let injectionStr = `<script src="https://git.jojo21.top/shawenguan/Quantumult-X/raw/master/Scripts/injection/common.js?t=${Date.now()}"></script>`;
  13. body = body.replace(/<\/body>/i, injectionStr + "</body>");
  14. console.log(body);
  15. $done({ body: body });
  16. } else {
  17. $done({});
  18. }