aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknown2018-04-02 18:17:14 +0100
committerUnknown2018-04-02 18:17:14 +0100
commit3b107322633417a23ca0b3705dcaa95d7d78ba6d (patch)
tree5dc763fac8c9988e85cade4744b97127349d80e1
parent8325024cebf45f3ab994358b5e8a289751629f0b (diff)
add injector
-rw-r--r--inject.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/inject.js b/inject.js
new file mode 100644
index 0000000..00d89eb
--- /dev/null
+++ b/inject.js
@@ -0,0 +1,30 @@
+// ==UserScript==
+// @name pkg93 injecter
+// @namespace pkg93inject
+// @version 0.1
+// @description Injects pkg93!
+// @author 1024x2
+// @match *://*.windows93.net/*
+// ==/UserScript==
+
+// Thanks, Draco!
+function loadJS (source, onready){
+ var sc = document.createElement("script");
+ sc.src = source;
+ sc.type = "text/javascript";
+ if (onready) sc.addEventListener("load", onready);
+ document.head.appendChild(sc);
+ return sc;
+}
+
+var interval = setInterval(function () {
+ try {
+ if (!!le) {
+ clearInterval(interval);
+ loadJS("https://cdn.rawgit.com/1024x2/pkg93/ae2c5fe1/pkg93.js", function () {});
+ $notif("pkg93 loaded successfully!");
+ }
+ } catch (err) {
+ console.error(err);
+ }
+}, 5000);