Delete table including arbitrary link

Discussion in 'Custom Filters' started by urum, Apr 13, 2019.

  1. urum

    urum New Member

    Joined:
    Apr 13, 2019
    Messages:
    2
    URL:
    https://crusherfactory.net/~yas_/blog/2014/04/post-163.php


    source:
    <table border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><div style="border:1px solid;margin:0px;padding:6px 0px;width:160px;text-align:center;float:left"><a href="https://hb.afl.rakuten.co.jp/hgc/12...l&amp;m=http://m.rakuten.co.jp/az-oil/n/se033" target="_blank"><img src="https://hbb.afl.rakuten.co.jp/hgb/?...il/cabinet/03183194/img77009078.jpg?_ex=80x80" alt="AZ チッコイグリースガン・自転車用グリス20gセット [自転車グリース・自転車グリス]" border="0" style="margin:0px;padding:0px"></a><p style="font-size:12px;line-height:1.4em;text-align:left;margin:0px;padding:2px 6px"><a href="https://hb.afl.rakuten.co.jp/hgc/12...l&amp;m=http://m.rakuten.co.jp/az-oil/n/se033" target="_blank">AZ チッコイグリースガン・自転車用グリス20gセット [自転車グリース・自転車グリス]</a><br><span style="">価格:617円(税込、送料別)</span><br></p></div></td></tr></table>







    ##[href*="afl.rakuten.co.jp"]

    I use a translator, but thank you. I want to delete the element including the optional href link for each upper table. Can you make such a filter?
     
  2. Blaz

    Blaz Moderator & Translator Staff Member Moderator

    Joined:
    Dec 21, 2014
    Messages:
    9,736
    Safe rule for products which support ext-CSS:
    Code:
    crusherfactory.net##.entry-content > table[border="0"] > tbody:has(a[href*="afl.rakuten.co.jp"])
    
    Unsafer rule for products which do not support ext-CSS:
    Code:
    crusherfactory.net##.entry-content > table[border="0"] > tbody
     
  3. urum

    urum New Member

    Joined:
    Apr 13, 2019
    Messages:
    2
    That's excellent!
    arigatou!