3 ms·
Tell HN: script to hide Apple-related news
Some people were complaining about the amount of Apple-related posts today, so I whipped up a quick script to hide them.
GreaseMonkey
http://userscripts.org/scripts/show/73977
Bookmarklet
javascript:(function() {var as=document.getElementsByTagName("a");for(var i=0;i<as.length;i++)if(as[i].innerHTML.match(/Apple|Steve Jobs|iPhone|iPad|Gmail|Google/gim)){var tr=as[i].parentNode.parentNode;tr.style.display="none";tr.nextSibling.style.display="none";tr.nextSibling.nextSibling.style.display="none"}})()
- nkm 17y agoThanks but, ¿why it also hides Google and Gmail related news?
- lhorie 17y agoThat's just me scratching my own itch. I find that "my-opinion-about-whatever-Google-happens-to-be-doing-at-the-time" type of news tend to flood the front page every once in a while. Perhaps Google|Schmidt would be a better filter? You're free to edit the regexp to suit your tastes, if you want different keywords to be filtered.
- lhorie 17y agoupdate: I changed the Apple script to handle Apple exclusively and added a few more similar greasemonkey scripts here: http://userscripts.org/users/148096/scripts http://userscripts.org/users/148096/scripts (it seems we can't pass arbitrary params to greasemonkey, boo)
- oomkiller 17y agoHmm, I wish HN had a switch that would allow you to hide things you don't wish to see.