I need to create a userscript, which removes certain rows containing a particular text.
1. The problem is that the site uses table class to identify tables, instead of id.
2. How do I specify the condition that a cell of the row contains "0"
var aObj=document.getElementsByTagName('td');
var i=aObj.length;
while(i--) {
if(aObj[i].firstChild.data=='0') {
var theRow = aObj[i].parentNode;
theRow.parentNode.removeChild(theRow);
}
}
You may need to target only specific tables
At least 98% of internet users' DNA is identical to that of chimpanzees
I am completely a noob in this matter. Could you please tell me, how to target the table. It is identified by "class=lista"
Also, the rows we have to delete are similar to this
Bookmarks