4 ms·
`Clean Up` bookmarklet is your friend: javascript:(function(){(function(){var%20i,elements=document.querySelectorAll('body%20*');for(i=0;i<elements.length;
by ddebernardy 8y ago
`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]);}}})()})()
- posix_me_less 8y agoThis is great, thank you.
- err4nt 8y agoRefactored 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))
- spiralx 8y agoEven more shorter and modern :) javascript:(() => document.body.querySelectorAll('*').forEach(el => { if (['fixed', 'sticky', '-webkit-sticky'].includes(getComputedStyle(el).position)) { el.remove() }))()