Skip to content

Comment on Wikipedia is rolling out dark mode support

Comments

mg

When I want to use a site in darkmode, I always use this code as a bookmarklet:

    s=document.createElement('style');
    s.textContent=`
        * {
            color: #2c2 !important;
            background: #222 !important;
            font-family: arial !important;
        }
    `;
    document.head.appendChild(s);
I use a lot of bookmarklets, so I wrote a tool to convert clean code to bookmarklets and vice versa:

https://www.gibney.org/bookmarklet_editor

There is also this:

https://github.com/dolegi/222

But widgets like this don't work as well as native support

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.