User:Pcj/global.js

if (typeof(importScriptPage) == "undefined") importScriptPage = function (page, server) { 5	       var url = '/index.php?title=' + encodeURIComponent(page.replace(/ /g,'_')).replace('%2F','/').replace('%3A',':') + '&action=raw&ctype=text/javascript'; 6	       if( typeof server == "string" ) { 7	               if( server.indexOf( '://' ) == -1 ) url = 'http://' + server + '.wikia.com' + url; 8	               else url = server + url; 9	       } 10	        return importScriptURI(url); 11	} ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"]; importScriptPage('AjaxRC/code.js', 'dev');