TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A bookmarklet to disable position:fixed floating toolbars in any browser

1 pointsby nateparrottover 11 years ago
I&#x27;m not a huge fan of the trend of putting (sometimes multiple) fixed-position, floating bars on web sites. I&#x27;m sure there are browser extensions that get rid of them, but in mobile Safari, where the screen space they take up is most precious, that isn&#x27;t an option. Here&#x27;s a js bookmarklet that gets rid of anything with position:fixed<p>javascript:var%20nodes%20=%20document.querySelectorAll(&#x27;*&#x27;);for%20(var%20i=0;%20i%3Cnodes.length;%20i++)%7B%20var%20node%20=%20nodes%5Bi%5D;%20var%20style%20=%20getComputedStyle(node);%20if%20(style.position==&#x27;fixed&#x27;)%20%7Bnode.style.position=&#x27;absolute&#x27;%7D%7D<p>(except, mysteriously, on the tumblr mobile site, where some floating buttons survive. Anyone know why?)

no comments

no comments