3 ms·
A quick hack made in 10 minutes. javascript: elements = document.getElementsByTagName("tr"); for( i = 0; i < elements.length; i++) { if( elements[i].innerHTM
by shubhamjain 13y ago
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".
- lclarkmichalek 13y agoI don't think that will deal with the weekly "BTC - $x" stories, unfortunately
- shubhamjain 13y agoYou 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.