News for hackers. Stuff that matters.
Re:Show HN: HN dark mode in 2 lines of code by romdev on Monday September 05, 2022 @10:46PM (#32732135)
This works on HN and most other sites:

javascript:(function() { var tag = document.createElement('style'); tag.type = 'text/css'; document.getElementsByTagName('head')[0].appendChild(tag); tag[ (typeof document.body.style.WebkitAppearance=='string') ? 'innerText' : 'innerHTML'] = '* { background-color: white !important; color: #444 !important; } html { filter: invert(100%) grayscale(100%); }'; })();

There are no comments on this comment yet.