MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Notify people who have arrived via the wiki.ironyhub.com domain that it will be expiring soon)
 
No edit summary
Line 3: Line 3:


// Notify people who have arrived via the wiki.ironyhub.com domain that it will be expiring soon
// Notify people who have arrived via the wiki.ironyhub.com domain that it will be expiring soon
var urlParams = new URLSearchParams(document.URL);
if ((new URL(document.location)).searchParams.has("fromolddomain")) {
if (urlParams.has("fromolddomain")) {
     mw.notify($("<span>⚠️ The <i>wiki.ironyhub.com</i> domain will no longer be available after July 29. Please make sure to use the <i>irony.wiki</i> domain for all future visits.</span>"), {autoHide: false});
     mw.notify($("<span>⚠️ The <i>wiki.ironyhub.com</i> domain will no longer be available after July 29. Please make sure to use the <i>irony.wiki</i> domain for all future visits.</span>"), {autoHide: false});
}
}

Navigation menu