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',    'https://raw.github.com/PrincessPlatinum/Ajax-Scripts/master/Advanced%20Tools.js' ]);

//Watchlist loadCupcake('http://c.wikia.com/wiki/User:Prince(ss)_Platinum/global.js/watchlist.js');

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

function importCupcakes(url) { for (var i = 0; i < url.length; i++) { loadCupcake(url[i]); } }