User:Mr. Keebler/global.js

var b=document.createElement('script');b.innerHTML='\nfunction importScript(b){var a=wgScript+"?title="+encodeURIComponent(b.replace(/ /g,"_")).replace(/%2F/ig,"/").replace(/%3A/ig,":")+"&action=raw&ctype=text/javascript";return importScriptURI(a)}\nfunction importScriptURI(a){var b=document.createElement("script");b.setAttribute("src",a);b.setAttribute("type","text/javascript");document.getElementsByTagName("head")[0].appendChild(b);return b}\nfunction importScriptPage(b,d){var a="/index.php?title="+encodeURIComponent(b.replace(/ /g,"_")).replace("%2F","/").replace("%3A",":")+"&action=raw&ctype=text/javascript";if(typeof d=="string"){if(d.indexOf("://")==-1){a="http://"+d+".wikia.com"+a}else{a=d+a}}return importScriptURI(a)}' importArticles({   type: 'script',    articles: [        'u:dev:FindAndReplace/code.js',        'u:dev:LastEdited/code.js'    ] }); if (wgPageName == "Special:Chat"){ importScriptURI('http://the-golden-roleplay.wikia.com/wiki/User:Mr._Keebler/chat-toolbox.js?action=raw&ctype=text/javascript') }