Jump to content

MediaWiki:Common.js: Difference between revisions

From Electron: Chat App Wiki
Johnball589 (talk | contribs)
No edit summary
rmv accidental redirection happening every day
 
(16 intermediate revisions by one other user not shown)
Line 1: Line 1:
var today = new Date();
var month = today.getMonth() + 1;
var day = today.getDate();


var prankMonth = 10;
var prankDay = 12;
var pageName = mw.config.get('wgPageName');
if (month === prankMonth && day === prankDay) {
    if (
        !pageName.startsWith('AF:') &&
        pageName !== 'MediaWiki:Common.js'
    ) {
        window.location.href = '/wiki/AF:' + pageName;
    }
}

Latest revision as of 17:59, 12 October 2025

Cookies help us deliver our services. By using our services, you agree to our use of cookies.