5 ms·
I only tested that on this site, but I've been looking for something like this for a while. I thought there would be plenty of extensions to do this automatical
by alanbernstein 6y ago
I only tested that on this site, but I've been looking for something like this for a while. I thought there would be plenty of extensions to do this automatically, but I've never found one. "Popups", "overlays", now "floaters" is a new term to me, is there a more conventional name for the whole class of "junk that pops up when you try to read a website"?
- CamperBob2 6y agoGoogle the phrase kill sticky for various snippets of code that can be placed on your bookmark toolbar. In practice, you end up needing at least two or three different buttons to handle different sites. The one I usually use is javascript:(function(){(function() {var%20i,elements=document.querySelectorAll('body%20*'); for(i=0;i<elements.length; i++){var%20p=getComputedStyle(elements[i]).position; if(p==='fixed'||p==='sticky'||p==='-webkit-sticky') {elements[i].parentNode.removeChild(elements[i]);}}}) ()})()
- gerdesj 6y agoI picked "floaters" because that is one of many en_GB slang terms for a piece of excrement floating in a toilet bowl. cf turd etc. I will now rename my shortcut to "dump floaters". Dump is en_GB for the act of delivering floaters and also a slang term for "get rid of". So I unleash a bit of JS with a name that simultaneously means to create or remove a lump of shit, depending on how you decipher it. That seems quite appropriate.
- alanbernstein 6y agoHa! I appreciate the update. I'll rename mine accordingly.