User:Prince(ss) Platinum/global.js

var mustache = [ ,, , , , ,

]; jsParse(mustache);

//External Scripts mw.loader.load('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.js'); mw.loader.load('https://raw.github.com/PrincessPlatinum/ChatOptions/master/Options-Menu.js'); mw.loader.load('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/WantedPagesBatchRedlinks.js'); mw.loader.load('https://raw.github.com/PrincessPlatinum/Wikonsole/master/Wikonsole.js');

//Add nav link $('ul.subnav-2').append('Patrol');

//Set up patroller if (mw.config.get('wgPageName') === "User:Prince(ss)_Platinum/Patrol") { $('.WikiaArticle').html('  '); mw.loader.load('http://runescape.wikia.com/wiki/User:Suppa_chuppa/rcpatrol.js?action=raw'); }

//Script Parser function jsParse(input) { for (var i = 0; i < input.length; i++) { var script = input[i].replace(//g); script = script.split(':'); makeScript(script[0], script[1]); } }

function makeScript(url,page) { var cupcake = document.createElement('script'); cupcake.src = 'http://' + encodeURIComponent(url) + '.wikia.com/wiki/' + encodeURIComponent(page) + '?action=raw'; cupcake.type = 'text/javascript'; document.getElementsByTagName("head")[0].appendChild(cupcake); }