aboutsummaryrefslogtreecommitdiffstats
path: root/inject.js
blob: 00d89eb7ca8a4fb0923687cf534177251d3f6f13 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);