diff options
author | 1024x2 | 2018-06-02 18:10:09 +0100 |
---|---|---|
committer | GitHub | 2018-06-02 18:10:09 +0100 |
commit | 3479d18c24ce44550fa38f7dd21127928aab1b3a (patch) | |
tree | bf6d0b03dca18c09d1d126558e0cfb17cdb0b55a | |
parent | 3cad6ac81bf79fe8b2f02aa4fbebf7520cbed433 (diff) | |
parent | 2bf958217dcb17bfa3c074956216190de130a98e (diff) |
Merge pull request #5 from DracoZ12/patch-3
create installer for pkg93
-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); |