From 3cb84766c1022c19489960bafc53667e44e27065 Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 2 Apr 2018 21:20:45 +0100 Subject: rename from .js to .user.js --- README.md | 2 +- inject.js | 30 ------------------------------ inject.user.js | 30 ++++++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 31 deletions(-) delete mode 100644 inject.js create mode 100644 inject.user.js diff --git a/README.md b/README.md index 9cb5a2a..06afeb1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # pkg93 ## Installation -Install the userscript in this repository named "injector.js". +Install the userscript in this repository named "inject.user.js". ## Making a repository Firstly, make sure that [CORS is enabled on your webserver](https://enable-cors.org/server.html). diff --git a/inject.js b/inject.js deleted file mode 100644 index 00d89eb..0000000 --- a/inject.js +++ /dev/null @@ -1,30 +0,0 @@ -// ==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); diff --git a/inject.user.js b/inject.user.js new file mode 100644 index 0000000..00d89eb --- /dev/null +++ b/inject.user.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