User:Gastropod/global.js

importScriptPage( 'PurgeButton/code.js', 'dev' ); importScriptPage('AjaxBatchDelete/code.js', 'dev'); importScriptPage('DupImageList/code.js', 'dev'); importScriptPage('FixWantedFiles/code.js', 'dev'); //importScriptPage('Sine/code.js', 'dev'); //importScriptPage('DisplayClock/code.js', 'dev'); // Convert "Anonymous" in Comments to IP address // from User:Monchoman45 function AnonIP { var list = document.getElementsByTagName('a'); for(var i in list) { if(list[i].href && list[i].href.indexOf('Special:Contributions/') && list[i].innerHTML == 'A Wikia contributor') { list[i].innerHTML = list[i].href.substring(list[i].href.lastIndexOf('/') + 1, list[i].href.length); }	} } addOnloadHook(AnonIP);