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
 
(17 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;
if (month === prankMonth && day === prankDay) {
    var pageName = mw.config.get('wgPageName');
   
    if (!pageName.startsWith('AF:')) {
        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.