Skip to content

Instantly share code, notes, and snippets.

@myfonj
Last active August 16, 2019 15:52
Show Gist options
  • Save myfonj/7355c0887c2e6bc46dd33c26b46904c9 to your computer and use it in GitHub Desktop.
Save myfonj/7355c0887c2e6bc46dd33c26b46904c9 to your computer and use it in GitHub Desktop.
🧹 Sweep Stickies 🧹
javascript:((u,n,s,t,i,c,k)=>n.querySelectorAll('*').forEach(e=>{true&&(/fixed|sticky/.test((c=getComputedStyle(e))[s])||(/absolute/.test(c[s])&&Number(c.zIndex)>t))&&e!==n.documentElement&&e!==(k=n.body)&&k.contains(e)&&e.parentNode.removeChild(e)||/hidden/.test(c[u])&&e.style.setProperty(u,'auto','important')}))('overflow',document,'position',1111)
((u, n, s, t, i, c, k) => n.querySelectorAll('*').forEach(e => {
true
&& ( /fixed|sticky/.test((c = getComputedStyle(e))[s]) || (/absolute/.test(c[s]) && Number(c.zIndex) > t) )
&& e !== n.documentElement
&& e !== (k = n.body)
&& k.contains(e)
&& e.parentNode.removeChild(e)
|| /hidden/.test(c[u])
&& e.style.setProperty(u, 'auto', 'important')
}))('overflow', document, 'position', 1111)
https://www.networkworld.com/article/2285951/undocumented-firefox-tweaks.html - html and body have 100% height, html hasn't overflow set, still not scroling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment