MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
document.head.appendChild(style); | document.head.appendChild(style); | ||
} else if (window.location.href.includes("The_Red_Plague")) { | } else if (window.location.href.includes("The_Red_Plague")) { | ||
if (document. | if (document.getElementsByTagName("html").classList.toString().includes("skin-theme-clientpref-night")) { | ||
document. | document.getElementsByTagName("html").classList.toString().replace("skin-theme-clientpref-night", "skin-theme-clientpref-day") | ||
} | } | ||
const style = document.createElement("style"); | const style = document.createElement("style"); | ||
Revision as of 20:28, 11 March 2026
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.getElementsByTagName("html").classList.toString().includes("skin-theme-clientpref-night")) {
document.getElementsByTagName("html").classList.toString().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);
}