MediaWiki:Common.js: Difference between revisions
Appearance
Johnball589 (talk | contribs) Created page with "$(function() { const today = new Date(); const month = today.getMonth(); // 0 = Jan, 3 = April const date = today.getDate(); // Check if it's April 1st if (month === 3 && date === 1 && !localStorage.getItem('noAF')) { const pageName = mw.config.get('wgPageName'); const afPage = 'AF:' + pageName; // Only redirect if we're not already on the AF page if (!pageName.startsWith('AF:')) { $.get(mw.util.getUrl(afPage), function(data) { i..." |
rmv accidental redirection happening every day |
||
(20 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||