19 points · by x8d · 6y ago · 7 comments
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?