tianyunperfect 3 years ago
parent
commit
df8ad29694
1 changed files with 7 additions and 0 deletions
  1. 7 0
      tmp/monkey/util.js

+ 7 - 0
tmp/monkey/util.js

@@ -198,3 +198,10 @@ function getCookie(k) {
     });
     return objCookie[k];
 }
+
+function addJSFile(js_url) {
+    const eleScript = document.createElement("script");
+    eleScript.type = "text/javascript";
+    eleScript.src = js_url;
+    document.getElementsByTagName("HEAD")[0].appendChild(eleScript);
+}