Re:How to Design for the Modern Web
by ddebernardy on Monday September 03, 2018 @12:13AM
(#17900260)
`Clean Up` bookmarklet is your friend:
[ Parent
| on HN ]
Refactored to be shorter and more modern:
javascript:Array.from(document.querySelectorAll('body *')).filter(tag => ['fixed', 'sticky', '-webkit-sticky'].some(prop => window.getComputedStyle(tag).position === prop)).forEach(tag => tag.parentNode.removeChild(tag))Even more shorter and modern :)
javascript:(() => document.body.querySelectorAll('*').forEach(el => { if (['fixed', 'sticky', '-webkit-sticky'].includes(getComputedStyle(el).position)) { el.remove() }))()
Re:How to Design for the Modern Web
by posix_me_less on Monday September 03, 2018 @05:36AM
(#17901505)
This is great, thank you.