Jump to content

User:Visarga/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Visarga (talk | contribs) at 16:26, 3 January 2008 (Removing stub). 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.
if (window.location.href.indexOf('action=edit') != -1) {
  function stubfix() {
    document.getElementById('wpSummary').value = "Removing stub";
        var contents = document.getElementById('wpTextbox1').value;
        var newcontents = contents.replace(/śiva/g, "śiva");
        document.getElementById('wpTextbox1').value = newcontents;
}
    addOnloadHook(function(){ stubfix(); });
}

//if(wgCanonicalNamespace == "") {
  addOnloadHook(function(){ 
   var taburl = "http://en.wikipedia.org/w/index.php?title="+wgPageName+"&action=edit&stubfix=1";
   addTab(taburl, "rms", "ca-stubrem", "This removes stub tag."); 
  });
//}