Jump to content

User:Virgolette/vector.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Virgolette (talk | contribs) at 04:26, 19 May 2010 (added notes; Thanks to User:Amalthea). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// I need this to avoid the collapse of tabs, since I've moved the right tabs to the left
// See User:Virgolette/vector.css
// Thanks to User:Amalthea
wgVectorEnabledModules.collapsibletabs = false;

// This function reduce the length of personal links at the top of the page
// I need this because I've moved up the tabs reducing the waste of space
function shortlinks() 
{
 document.getElementById('pt-mytalk').firstChild.innerHTML = 'Talk';
 document.getElementById('pt-preferences').firstChild.innerHTML = 'Preferences';
 document.getElementById('pt-watchlist').firstChild.innerHTML = 'Watchlist';
 document.getElementById('pt-mycontris').firstChild.innerHTML = 'Contribs';
}
addOnloadHook(shortlinks);