Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A quick hack made in 10 minutes.

  javascript: elements = document.getElementsByTagName("tr"); for( i = 0; i < elements.length; i++) { if( elements[i].innerHTML.match(/(bitcoin|angularJS)/i) !== null &&  elements[i].innerHTML.length < 5000) { elements[i].remove(); elements[i++].remove()}};
The "5000" length check is to avoid the upper nest of "tr".


I don't think that will deal with the weekly "BTC - $x" stories, unfortunately


You can add more keywords in the match function if thats what you meant. Anything more sophisticated should be coded as an extension / userscript rather than a bookmarklet.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: