MediaWiki:Common.js
From TestWiki
Revision as of 12:51, 18 October 2014 by HappyDog (Talk | contribs) (Fix JS - not undefined, but null. Let's just do a non-strict boolean check.)
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
window.onload = function() { // Default delete message. if (document.getElementById("deleteconfirm")) { document.getElementById("wpReason").value = "Junk/spam"; } // Default block settings. if (document.getElementById("blockip")) { document.getElementById("wpBlockExpiry").value = "infinite"; document.getElementById("wpBlockExpiry").onchange(); document.getElementById("mw-bi-reason").value = "Spamming"; document.getElementById("wpHideName").checked = true; } }