User:CrazyLark/monobook.js
From Wikipedia, the free encyclopedia
If a message on your talk page led you here, please be wary of who left it. The code below could contain malicious content capable of compromising your account; if your account appears to be compromised, it will be blocked. If you are unsure whether the code is safe, you can ask at the appropriate village pump.
Note: After saving, you have to bypass your browser's cache to see the changes. In Internet Explorer and Firefox, hold down the Ctrl key and click the Refresh or Reload button. Opera users have to clear their caches through Tools→Preferences, see the instructions for Opera. Konqueror and Safari users can just click the Reload button.
/* Script version 2.2.1 Versions 1.0-2.0 in history of [[User:Sceptre/monobook.js]]... I think */ function warn() { var txt = document.editform.wpTextbox1; var prefix = prompt("What is the prefix? Change if appropriate", "uw-") var type = prompt("Which standard warning do you wish to issue?", "test"); var severity = prompt("How severe is the violation?", "1"); var page = prompt("What page?"); var msgtext = "{{subst:"+prefix + type + severity + "|" + page + "|subst=subst:}} [[User:CrazyLark|CrazyLark]] 22:48, 28 August 2007 (UTC)"; if(page.length == 0) {page = "Wikipedia"} else { page = "[["+page+"]]" }; var summary = "Your recent edits to " + page ; document.editform.wpSummary.value = summary; document.editform.wpMinoredit.checked = true; if(txt.value.length > 0) txt.value += '\n'; txt.value += msgtext; document.editform.submit(); } /* */

