User:Azuris/global.js

importScriptPage("MediaWiki:VDA.js", "vda"); $(function {     VDA.load("RC");     VDA.load("JFF");     VDA.load("CRED");     VDA.load("RV");     VDA.load("VW"); });

/***** Links near username on header (whatever it's called) *****/ function restoreRecentChangesLink { var wlLink      = document.createElement('a'); wlLink.href     = '/wiki/Special:RecentChanges'; wlLink.title    = 'Recent changes'; wlLink.innerHTML = "Recent changes"; var wlObj       = document.createElement('span'); wlObj.id        = 'header_recentchanges'; wlObj.appendChild(wlLink); document.getElementById('userData').insertBefore(wlObj, document.getElementById('header_mytalk').nextSibling); } addOnloadHook(restoreRecentChangesLink); var wgEnableImageLightboxExt = false;

function idAnon // use IP address to identify "Anonymous user" comments {         $("div.comment > div.detail > span:contains('Anonymous user')").each( function {        var ipaddr = $(this).attr('title');        $(this).text("Anon " + ipaddr + " user");    }); } addOnloadHook(idAnon);