MediaWiki:Gadget-UncheckFileRedirect.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
/* |
/* |
||
* Unchecks redirect checkbox on file |
* Unchecks redirect checkbox on file pages |
||
* Because redirects in file namespace are usually unnecessary |
* Because redirects in file namespace are usually unnecessary |
||
*/ |
*/ |
Latest revision as of 17:15, 17 October 2024
/*
* Unchecks redirect checkbox on file pages
* Because redirects in file namespace are usually unnecessary
*/
$(function () {
'use strict';
var conf = mw.config.get([
'wgCanonicalSpecialPageName',
'wgRelevantPageName'
]);
$(function () {
if (conf.wgCanonicalSpecialPageName === 'Movepage'){
if ((/File:/).test(conf.wgRelevantPageName)){
$('#wpLeaveRedirect > input').removeAttr('checked');
}
}
});
})