User:Jake/nookipedia.js

// // addSeasonButtons // adds seasonal tabs (after "watch") // addOnloadHook(function {    if (wgAction != 'edit' && wgCanonicalNamespace != 'Special' && wgAction != 'history' && wgAction != 'delete' && wgAction != 'watch' && wgAction != 'unwatch' && wgAction != 'protect' && wgAction != 'markpatrolled' && wgAction != 'rollback' && document.URL.indexOf('diff=') <= 0 && document.URL.indexOf('oldid=') <=0)   { var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge&renderMonth=3$2'), 'spring', 'ca-purge', 'Purge server cache for this page', '0');   addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge&renderMonth=6$2'), 'summer', 'ca-purge', 'Purge server cache for this page', '0');   addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge&renderMonth=9$2'), 'fall', 'ca-purge', 'Purge server cache for this page', '0');   addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge&renderMonth=12$2'), 'winter', 'ca-purge', 'Purge server cache for this page', '0');   addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge&renderMonth=10&renderDay=21$2'), 'birthday', 'ca-purge', 'Purge server cache for this page', '0');   addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge&renderMonth=4&renderDay=1$2'), 'april fools', 'ca-purge', 'Purge server cache for this page', '0'); } }); //