by myfonj · 8y ago · 0 comments
(Slightly modernized version could be:)
javascript:void([].forEach.call(document.querySelectorAll('body *'),e=>/fixed|sticky/.test(getComputedStyle(e).position)&&e.parentNode.removeChild(e)))
[0] https://news.ycombinator.com/item?id=16516126
[1] https://alisdair.mcdiarmid.org/kill-sticky-headers/ [].foreach.call(a, b) -> a.forEach(b)
... since the value returned by `querySelectorAll` has a `forEach` method. And 5 more if you replace: 'body *' -> '*'thanks.