Jump to content

User:MacGyverMagic/tabnames.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Ladsgroup (talk | contribs) at 20:46, 6 February 2021 (Maintenance: Replacing addOnloadHook with native jQuery (mw:ResourceLoader/Migration_guide_(users)#addOnloadHook - phab:T130879)). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
$(function(){
if(document.getElementById('ca-edit'))
  document.getElementById('ca-edit').firstChild.innerHTML = 'edit';
if(document.getElementById('ca-history'))
  document.getElementById('ca-history').firstChild.innerHTML = 'his';
if(document.getElementById('ca-nstab-main'))
  document.getElementById('ca-nstab-main').firstChild.innerHTML = 'art';
if(document.getElementById('ca-nstab-user'))
  document.getElementById('ca-nstab-user').firstChild.innerHTML = 'user';
if(document.getElementById('ca-nstab-project'))
  document.getElementById('ca-nstab-project').firstChild.innerHTML = 'project';
if(document.getElementById('ca-talk'))
  document.getElementById('ca-talk').firstChild.innerHTML = 'talk';
if(document.getElementById('ca-protect'))
  document.getElementById('ca-protect').firstChild.innerHTML = 'p';
if(document.getElementById('ca-unprotect'))
  document.getElementById('ca-unprotect').firstChild.innerHTML = 'up';
if(document.getElementById('ca-delete'))
  document.getElementById('ca-delete').firstChild.innerHTML = 'd';
if(document.getElementById('ca-move'))
  document.getElementById('ca-move').firstChild.innerHTML = 'm';
if(document.getElementById('ca-watch'))
  document.getElementById('ca-watch').firstChild.innerHTML = 'w';
if(document.getElementById('ca-unwatch'))
  document.getElementById('ca-unwatch').firstChild.innerHTML = 'uw';
// add more cases here
});

//ids can be found in articles and in April 18 comment on my talk page by ais523.