-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathncs.user.js
29 lines (27 loc) · 1.11 KB
/
ncs.user.js
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
// ==UserScript==
// @name NCS Loader
// @namespace http://ncscript.gq
// @version 1.1
// @description NCS autoloader for Plug.dj!
// @author Electric Gaming
// @match https://plug.dj/*
// @copyright 2016, Electric Gaming
// @require http://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==
/* --== CREDITS ==--
CODE CREATED BY CSxKING AND FRIENDS AND IS LICENCED UNDER MIT! YOU MUST LEAVE THIS CREDIT INCLUDED IN THE CODE
Twitter: https://twitter.com/CSxKING
*/
(function() {
'use strict';
window.onload = function() {
setTimeout(function() {
if(['/dashboard','/','/subscribe','/about','/ba','/press','/terms'].indexOf(window.location.pathname)===-1 && (window.location.host === 'plug.dj'||window.location.host==='stg.plug.dj')){
$.getScript('https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js',function () {
setTimeout(function(){$.getScript('https://ncscript.gq/ncs/public/ncs.js');},3000);
});
}
}, 2500);
};
})();