From 2bf958217dcb17bfa3c074956216190de130a98e Mon Sep 17 00:00:00 2001 From: DracoZ12 Date: Sat, 2 Jun 2018 19:07:45 +0200 Subject: installer --- install.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 install.js 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); -- cgit v1.2.3