aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDracoZ122018-06-02 19:07:45 +0200
committerGitHub2018-06-02 19:07:45 +0200
commit2bf958217dcb17bfa3c074956216190de130a98e (patch)
treebf6d0b03dca18c09d1d126558e0cfb17cdb0b55a
parent3cad6ac81bf79fe8b2f02aa4fbebf7520cbed433 (diff)
installer
-rw-r--r--install.js23
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);