title: TamperMonkey - Remove Table Row if Column Doesn't Contain
body: <p>There's a website that I use for work (that still uses tables) which contains a number of rows in a table. I'm looking to delete rows in this table that don't contain "KEEP ME" in the second column. As you can see in the snippet below, the problem is that the contents aren't just in the TD, but they're contained in NOBR and then SPAN, within the TD. </p>
  
  <pre><code>&lt;table id="T536870939" title="" class="BaseTable" style="width: 1879px;"&gt;
      &lt;tbody&gt;
          &lt;tr tabindex="0" style=" color:#808000;" arrow="0"&gt;
              &lt;td style="width: 155px;" class="BaseTableCellOdd BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 155px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;Who cares?&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
              &lt;td style="width: 89px;" class="BaseTableCellOdd BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 89px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;KEEP ME&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
              &lt;td style="width: 155px;" class="BaseTableCellOdd BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 155px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;Who cares?&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr tabindex="0" style=" color:#808000;" arrow="1"&gt;
              &lt;td style="width: 155px;" class="BaseTableCell BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 155px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;Who cares?&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
              &lt;td style="width: 89px;" class="BaseTableCell BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 89px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;I'M BAD! DELETE ME!&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
              &lt;td style="width: 155px;" class="BaseTableCell BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 155px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;Who cares?&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr tabindex="0" style=" color:#808000;" arrow="2"&gt;
              &lt;td style="width: 155px;" class="BaseTableCellOdd BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 155px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;Who cares?&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
              &lt;td style="width: 89px;" class="BaseTableCellOdd BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 89px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;I'M ALSO BAD! PLEASE DELETE ME!&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
              &lt;td style="width: 155px;" class="BaseTableCellOdd BaseTableCellOddColor BaseTableStaticText"&gt;
                  &lt;nobr class="dp " style="text-align: left; width: 155px;"&gt;
                      &lt;span style="padding: 1px 4px;float:left;"&gt;Who cares?&lt;/span&gt;
                  &lt;/nobr&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I've tried using the script below, but I am unsuccessful. What am I doing wrong?</p>
  
  <pre><code>$('#T536870939 tr span:not([title!="KEEP ME"]):first').remove ();
  </code></pre>