Show HN: Tiny (222 Bytes) Dark Mode bookmarklet to enable darkmode anywhere
github.com
github.com
Nitpick, it's actually 221 bytes. And if you
e.getAttribute('style')
on something that doesn't have style, it returns `null`. So maybe (e.getAttribute('style') || '')Would it be possible to make it a switch so that clicking the bookmarklet toggles darkmode?