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:16, 3 January 2008. 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.
/* </nowiki> */
function doCleanupTag() {
text = document.editform.wpTextbox1.value;
text = replace(text,'siva:','Śiva') ;
document.editform.wpTextbox1.value = text;
document.editform.wpSummary.value = "แก้ไข +เก็บกวาด";
}

function addCleanupTag() {
addTab("javascript:doCleanupTag() ", "Autoreplace1", "ca-taclt", "Autoreplace2", "") ;
}

if (document.title.indexOf("แก้ไข ") == 0) {
  if (window.addEventListener) window.addEventListener("load", addCleanupTag, false) ;
  else if (window.attachEvent) window.attachEvent("onload", addCleanupTag) ;
}
/* </nowiki> */