shawenguan 1 год назад
Родитель
Сommit
1ee3ff1699
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      Scripts/unicom/unicomDebug.js

+ 17 - 0
Scripts/unicom/unicomDebug.js

@@ -0,0 +1,17 @@
+/*
+中国联通vConsole调试
+
+[Script]
+# > 中国联通vConsole调试
+^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
+
+[MITM]
+hostname = activity.10010.com,m.client.10010.com
+
+*/
+let body = $response.body;
+
+let injectionStr = `<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>\n<script>var vConsole = new window.VConsole();</script>`;
+body.replace(/<\/body>/i, injectionStr + "</body>");
+
+$done({ body: body })