Jump to content

User:MacGyverMagic/tabnames.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.
$(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.