3 ms·
This is really neat! It would be great as a Greasemonkey script or a browser extension. Nitpick, it's actually 221 bytes. And if you e.getAttribute('style')
by gabrielsroka 6y ago
This is really neat! It would be great as a Greasemonkey script or a browser extension.
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') || '')
- x8d 6y agoHey thanks, I had this condition in the script at one point, but then I started minifying it and although this makes the style attribute look a bit ugly the functionality stays the same, so it had to go.