Re:Mozilla working on in-page popup blocker for Firefox
by strkek on Tuesday March 13, 2018 @03:01PM
(#16578800)
You can golf away 8 characters by replacing
... since the value returned by `querySelectorAll` has a `forEach` method. And 5 more if you replace:
[ Parent
| on HN ]
Re:Mozilla working on in-page popup blocker for Firefox
by myfonj on Tuesday March 13, 2018 @03:40PM
(#16579093)
Ah, thanks for headsup, I somewhat missed the moment NodeList got sufficiently widespread forEach support. Good to know.
In fact my intention was just to add check for `sticky` value along the `fixed` one; the 'golfing' approach was just habitual laziness…