Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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())


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: