diff options
author | DracoZ12 | 2018-06-02 19:07:45 +0200 |
---|---|---|
committer | GitHub | 2018-06-02 19:07:45 +0200 |
commit | 2bf958217dcb17bfa3c074956216190de130a98e (patch) | |
tree | bf6d0b03dca18c09d1d126558e0cfb17cdb0b55a | |
parent | 3cad6ac81bf79fe8b2f02aa4fbebf7520cbed433 (diff) |
installer
-rw-r--r-- | install.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/install.js b/install.js new file mode 100644 index 0000000..e34a57e --- /dev/null +++ b/install.js @@ -0,0 +1,23 @@ +var _main = `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) { + localStorage[".pkg93/userscript"] = ""; + clearInterval(interval); + loadJS("https://rawgit.com/pkg93/pkg93/master/pkg93.js", function () {}); + $notif("pkg93 loaded successfully!"); + } + } catch (err) { + console.error(err); + } +}, 5000);` +localStorage["boot/pkg93.js"]=_main; +eval(_main); |