Jump to content

User:Virgolette/vector.js

From Wikipedia, the free encyclopedia
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 = 'Edits';
}
addOnloadHook(shortlinks);