Re:Hacker News for Hackers
by Retr0spectrum on Friday October 27, 2017 @12:45PM
(#15570039)
For 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]);
}
}Using stylish is easier and automatic.
.overlay {
display: none;
}
Re:Hacker News for Hackers
by jasonkostempski on Friday October 27, 2017 @01:51PM
(#15570656)
I find it's much better to just blacklist and never see a link to those sites again.
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
Enjoy!