User:Emma/common.js: Difference between revisions

Want an adless experience? Log in or Create an account.
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
$(function() {
addOnloadHook(function() {
         if(location.href.match(/File/) {
         if(location.href.match(/File/) {
                 document.getElementById( 'wpLeaveRedirect' ).checked = false;
                 document.getElementById( 'wpLeaveRedirect' ).checked = false;
Line 5: Line 5:
});
});


$(function() {
addOnloadHook(function() {
         if(wgCanonicalSpecialPageName == "Movepage" ) {
         if(wgCanonicalSpecialPageName == "Movepage" ) {
                 document.getElementById( 'wpWatch' ).checked = True;
                 document.getElementById( 'wpWatch' ).checked = True;
         }
         }
});
});