Milovana Dark Mode
Posted: Sat Sep 03, 2022 3:06 pm
I've written a small TamperMonkey script that darkens the Milovana website by modifying the CSS. It might be useful to some of you, so I thought I'd share it. I'm sure there are some aspects that can be improved, but it's a start.
What is TamperMonkey?
Here's the script:
Sample: Home
What is TamperMonkey?
- Spoiler: show
Here's the script:
Code: Select all
// ==UserScript==
// @name Milovana Dark
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Darken Milovana colours
// @author FrozenWolf
// @match https://milovana.com/*
// @exclude https://milovana.com/webteases/showtease*
// @icon https://milovana.com/favicon.ico
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
/* Depending on which type of manipulator is being used, GM_addStyle(...) may not be
* available. Helequin has provided the function below so it can be included if needed.
* TamperMonkey - No change needed
* ViolentMonkey - No change needed
* GreaseMonkey - Might need to uncomment the function
* FireMonkey - Might need to uncomment the function */
/*
function GM_addStyle(css) {
const head = document.querySelector('head');
if (head) {
const style = document.createElement('style');
style.textContent = css;
head.appendChild(style);
}
}
*/
GM_addStyle ( `
body {
filter: invert() hue-rotate(180deg) !important;
background-color: #444 !important;
background-blend-mode: darken !important;
}
body#phpbb {
background-image: none !important;
background-color: #bbb !important;
}
img#h_logo, .profile-rank img {
filter: none !important;
}
img, iframe {
filter: invert() hue-rotate(180deg) !important;
}
.rating .score {
filter: brightness(50%) !important;
}
.isfav {
filter: saturate(9) !important;
}
.forabg, .forumbg {
background-image: none !important;
background-color: #666 !important;
}
.topiclist.forums, .topiclist.topics, .row.bg1, .row.bg2 {
background-image: none! important;
background-color: #ddd !important;
}
.forumtitle, .topictitle, .postbody h3 {
color: #000 !important;
}
.postbody h3 a:hover, .postbody h3 a:link {
color: #000 !important;
}
.lastsubject {
color: #222 !important;
}
.username {
color: #444 !important;
}
.codebox code {
color: #220 !important;
}
blockquote {
border: #333 0.2em solid !important;
border-radius: 0.2em !important;
background-color: #fff !important;
}
blockquote cite {
border-bottom: #333 0.2em solid !important;
background-color: #ddd !important;
}
` );
- Spoiler: show
- Spoiler: show
- Spoiler: show
- Spoiler: show