I'm trying to write a script for tampermonkey that hides a row in a table based on two conditions.
Condition 1: The cell in column 3 doesn't contain '/'
Condition 2: the cell in column 3 does contain '0:0'
I've got condition 1 working on its own with the following jQuery
$("td:nth-of-type(3):not(:contains('/'))").parent ().hide ();
and condition 2 with
$("td:nth-of-type(3):contains('0:0')").parent ().hide ();
but I haven't been able to combine them, I've tried the following:
$("[td:nth-of-type(3):contains('0:0')][td:nth-of-type(3):not(:contains('/'))]").parent ().hide ();
but no luck. How can I combine the conditions? I've tried to include an if statement but haven't been able to get that working either.