3 ms·
I think the OP link would have had the parameter included: https://en.wikipedia.org/wiki/Wikipedia:Dark_mode_(gadget)?withgadget=dark-mode https://en.wikipedia
by myfonj 2y ago
I think the OP link would have had the parameter included:
https://en.wikipedia.org/wiki/Wikipedia:Dark_mode_(gadget)?withgadget=dark-mode https://en.wikipedia.org/wiki/Wikipedia:Dark_mode_(gadget)?w...
from a quick glance it adds
invert(1) hue-rotate(180deg)
to HTML style. What indeed works, but is a bit sloppy way to do a dark mode. Making usable colour palate and adjusting typography for inverted mode takes little more effort, sadly.
- myfonj 2y agoWhat is interesting that there is palette for dark mode present in loaded stylesheet reacting to OS or browser preference, but it is set to take effect only while HTML has a certain class. It can be added from devtools document.documentElement.classList.add('skin-theme-clientpref-os') It looks very similar to the invert one, but has way better colouring of the code blocks and box titles, from a quick glance. The palette overrides for `prefers-color-scheme:dark` can be found in https://en.wikipedia.org/w/load.php?lang=en&modules=ext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediaBadges%7Cext.wikimediamessages.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles&only=styles&skin=vector-2022 https://en.wikipedia.org/w/load.php?lang=en&modules=ext.uls....
- chjj 2y agoThat's disappointing. I thought it was a proper stylesheet update for a second. I've been using this[1] user stylesheet for a while now. See the github repo[2] for the amount of insanity required to make this work (it breaks every now and then when wikipedia updates their html/css). [1] https://userstyles.world/style/17/wikipedia-dark https://userstyles.world/style/17/wikipedia-dark [2] https://github.com/StylishThemes/Wikipedia-Dark/blob/master/wikipedia-dark.user.css https://github.com/StylishThemes/Wikipedia-Dark/blob/master/...