News for hackers. Stuff that matters.
Re:How to Design for the Modern Web by ddebernardy on Monday September 03, 2018 @12:13AM (#17900260)
`Clean Up` bookmarklet is your friend:

    javascript:(function(){(function(){var%20i,elements=document.querySelectorAll('body%20*');for(i=0;i<elements.length;i++){var%20p=getComputedStyle(elements[i]).position;if(p==='fixed'||p==='sticky'||p==='-webkit-sticky'){elements[i].parentNode.removeChild(elements[i]);}}})()})()
Re:How to Design for the Modern Web by err4nt on Monday September 03, 2018 @09:52AM (#17902567)
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))
Re:How to Design for the Modern Web by spiralx on Tuesday September 04, 2018 @07:31AM (#17908248)
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.