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

Change map to forEach?


document.querySelectorAll('body *').forEach(e=>{if (["fixed","sticky"].includes(getComputedStyle(e).position)) e.remove()});




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

Search: