Jump to content

MediaWiki:Common.js: Difference between revisions

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..."
 
Johnball589 (talk | contribs)
No edit summary
Line 4: Line 4:
   const date = today.getDate();
   const date = today.getDate();


  // Check if it's April 1st
   if (month === 10 && date === 12 && !localStorage.getItem('noAF')) {
   if (month === 3 && date === 1 && !localStorage.getItem('noAF')) {
     const pageName = mw.config.get('wgPageName');
     const pageName = mw.config.get('wgPageName');
     const afPage = 'AF:' + pageName;
     const afPage = 'AF:' + pageName;
Cookies help us deliver our services. By using our services, you agree to our use of cookies.