From 3b107322633417a23ca0b3705dcaa95d7d78ba6d Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 2 Apr 2018 18:17:14 +0100 Subject: add injector --- inject.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 inject.js diff --git a/inject.js b/inject.js new file mode 100644 index 0000000..00d89eb --- /dev/null +++ b/inject.js @@ -0,0 +1,30 @@ +// ==UserScript== +// @name pkg93 injecter +// @namespace pkg93inject +// @version 0.1 +// @description Injects pkg93! +// @author 1024x2 +// @match *://*.windows93.net/* +// ==/UserScript== + +// Thanks, Draco! +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) { + clearInterval(interval); + loadJS("https://cdn.rawgit.com/1024x2/pkg93/ae2c5fe1/pkg93.js", function () {}); + $notif("pkg93 loaded successfully!"); + } + } catch (err) { + console.error(err); + } +}, 5000); -- cgit v1.2.3