aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);