User:Az1568/crap.js
Note: After publishing, 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 / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
//Note: copy the following code (with customized values) to your monobook.js file to set customized confirm text:
//
$(Dfn_js_con)
function Dfn_js_con()
{
//moves
Mvaluejs_class = 'yes';
//edits
Rvaluejs_class = 'yes';
//uploads
Uvaluejs_class = 'yes';
}
//
// Always check "block anons only" on Special:Blockip /////////////////////////////////////////////
$(function(){ var x; if (x=document.getElementById('wpAnonOnly')) {x.checked=true;} });
$(function(){ var x; if (x=document.getElementById('wpCreateAccount')) {x.checked=true;} });
$(function(){ var x; if (x=document.getElementById('wpEnableAutoblock')) {x.checked=false;} });
// </nowiki></pre> //
// addPurge tab
$( function (){
var x = document.getElementById('ca-history');
if(!x) return;
if(x.children) x = x.children[0].href;
else x = x.childNodes[0].href;
addLink("p-cactions", x.replace(/=history/, "=purge"), 'purge', 'ca-purge', 'Purge the internal cache for this page', 0);
});