3 ms·
Pop-ins : here is what I do 1) I found here, on Hacker News, a nice "kill sticky" javascript function to put in my shortcuts 2) In Firefox, I gave it a shortc
by jpl56 9y ago
Pop-ins : here is what I do
1) I found here, on Hacker News, a nice "kill sticky" javascript function to put in my shortcuts
2) In Firefox, I gave it a shortcut keyword
3) In my AutoHotKey script, I assigned a key to "type the shortcut keyword in the address bar" to run it quickly
4) when a pop-in occurs, I reflexively press my kill key
The script is
javascript:(function()%7B(function%20()%20%7Bvar%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3Bfor%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7Bif%20(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed')%20%7Belements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%7D%7D%7D)()%7D)()
Enjoy!
- Retr0spectrum 9y agoFor those curious, this is what that script is doing: var i, elements = document.querySelectorAll('body *'); for (i = 0; i < elements.length; i++) { if (getComputedStyle(elements[i]).position === 'fixed') { elements[i].parentNode.removeChild(elements[i]); } }
- jasonkostempski 9y agoI find it's much better to just blacklist and never see a link to those sites again.
- lj3 9y agoUsing stylish is easier and automatic. .overlay { display: none; }