MediaWiki:Common.js: Difference between revisions
Appearance
AllEyezOnMe (talk | contribs) No edit summary Tag: Reverted |
AllEyezOnMe (talk | contribs) No edit summary Tag: Reverted |
||
| Line 11: | Line 11: | ||
} | } | ||
if (mw.config.get("wgPageName") === " | if (mw.config.get("wgPageName") === "Lost_Media_Log") { | ||
window.location.href = "https://commentarywiki.org/wiki/Lost_Media_Log?vectornightmode=1"; | window.location.href = "https://commentarywiki.org/wiki/Lost_Media_Log?vectornightmode=1"; | ||
} | } | ||
Revision as of 01:07, 13 March 2026
/* Any JavaScript here will be loaded for all users on every page load. */
if (document.querySelector(".force-vector-night")) {
const url = new URL(window.location.href);
url.searchParams.set("vectornightmode", "1");
if (window.location.href !== url.toString()) {
window.location.replace(url.toString());
}
}
if (mw.config.get("wgPageName") === "Lost_Media_Log") {
window.location.href = "https://commentarywiki.org/wiki/Lost_Media_Log?vectornightmode=1";
}