Jump to content

User:CattleGirl/monobook.js

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by CattleGirl (talk | contribs) at 08:51, 28 March 2008 (hm.). 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.
importScript('User:Lupin/recent2.js');


function addStrikeoutButton() {

    editingTools = document.getElementById('toolbar');

    if (editingTools != null)  {

        StrikeTextButton = "  <a href=\"javascript:insertTags('<s>','</s>','Insert text here');\"><img src=\"/media/wikipedia/en/c/c9/Button_strike.png\" alt=\"Strike\" title=\"Strike-through text\"></a>";
 
        editingTools.innerHTML = editingTools.innerHTML + StrikeTextButton;
    }
}

window.onload = addStrikeoutButton;

// A small piece of JS writen by [[User:MatthewFenton]], This is my first piece of JS.
function welcome() {
  if (document.title.indexOf('Editing User talk:') == 0) {
    document.editform.wpTextbox1.value = document.editform.wpTextbox1.value + '==' + 'Welcome' + '==\n' + '{{subst:User:' + 'MatthewFenton/Welcome}}\n~~' + '~~';
    document.editform.wpSummary.value = 'Welcome a user to Wikipedia using JS WW';
  }
}
function welcome_tab() {
  add_link('javascript:welcome()', 'Welcome');
}

if (document.title.indexOf('Editing User talk:') == 0) {
  addOnloadHook(welcome_tab);
}

 //
 // Edit tools for the vandal whack-a-mole game
 // [[User:Kbh3rd/whackamole.js]] - please include this line
 //
 document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Kbh3rd/whackamole.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');


importScript('User:AzaToth/twinkle.js');


importScript('User:ais523/editcount.js'); //[[User:ais523/editcount.js]]