MediaWiki:Vector.js

/* Any JavaScript here will be loaded for users using the Vector skin */

/* var sysop = $.inArray("sysop", wgUserGroups);

if ((wgUserName != NULL) && (sysop != -1)) {   alert("Triggered"); //window.location.replace("?stable=1"); }

// Source: // http://stackoverflow.com/questions/7449480/change-domain-portion-of-links-with-javascript-or-jquery var linkRewriter = function(a, b) { $('a[href*="' + a + '"]').each(function {       $(this).attr('href', $(this).attr('href').replace(a, b));    }); };

linkRewriter('en.wikipedia.org', 'en.lexipedium.org');

var uspRef = document.getElementById('pt-preferences'); var uspParent = uspRef.parentNode; var uspNewLink = document.createElement('li'); uspNewLink.id = 'usp-link'; uspNewLink.innerHTML = 'Userspace'; uspParent.insertBefore(uspNewLink, uspRef);

var uspRef = document.getElementById('usp-link'); var uspParent = uspRef.parentNode; var uspNewLink = document.createElement('li'); uspNewLink.id = 'usp-link'; uspNewLink.innerHTML = 'Sandbox'; uspParent.insertBefore(uspNewLink, uspRef);