MediaWiki:Common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
if (window.location.href.includes("The_Bold_Plague")) {
const style = document.createElement("style");
style.textContent = `
* {
font-weight: bold !important;
}
`;
document.head.appendChild(style);
} else if (window.location.href.includes("The_Red_Plague")) {
if (document.body.classList.includes("skin-theme-clientpref-night")) {
document.body.classList.replace("skin-theme-clientpref-night", "skin-theme-clientpref-day")
}
const style = document.createElement("style");
style.textContent = `
:root {
filter: saturate(10) sepia(1) hue-rotate(140deg) invert(1);
}
.mw-content-ltr img {
filter: invert(1);
}
`;
document.head.appendChild(style);
}