unicomDebug.js 748 B

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