User:Prince(ss) Platinum/global.js

importCupcakes([   'http://dev.wikia.com/wiki/RevealAnonIP/code.js?action=raw',    'http://dev.wikia.com/wiki/AjaxRC/code.js?action=raw',    'http://dev.wikia.com/wiki/AjaxUndo/code.js?action=raw',    'http://dev.wikia.com/wiki/RecentChangesModule/code.js?action=raw',    'http://dev.wikia.com/wiki/PortableCSSPad/code.js?action=raw',    'http://monchbox.wikia.com/wiki/MediaWiki:WhamAPI.js&action=raw' ]);

// Advanced tools mw.loader.load('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.js');

//Redlinks script mw.loader.load('https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/WantedPagesBatchRedlinks.js');

//This doesn't actually do anything mw.loader.load('http://princess-platinum-test.wikia.com/wiki/MediaWiki:Stuff.js?action=raw');

//Cupcake factory function importCupcakes(url) { for (var i = 0; i < url.length; i++) { cupcakeFactory(url[i]); } }

function cupcakeFactory(url) { var cupcake = document.createElement('script'); cupcake.src = url; cupcake.type = 'text/javascript'; cupcake.className = 'cupcake-script'; document.getElementsByTagName("head")[0].appendChild(cupcake); }