News for hackers. Stuff that matters.
Re:A bookmarklet to kill sticky headers by gabrielsroka on Sunday February 02, 2025 @12:46PM (#42910237)
even more minified. forEach doesn't return anything, so you don't need the IIFE.

  javascript:document.querySelectorAll('body *').forEach(el=>['fixed','sticky'].includes(getComputedStyle(el).position)&&el.remove())
or

  javascript:document.querySelectorAll('body *').forEach(el=>/^(fixed|sticky)$/.test(getComputedStyle(el).position)&&el.remove())

There are no comments on this comment yet.