Skip to content

Commit

Permalink
update remove check for new filters
Browse files Browse the repository at this point in the history
Signed-off-by: Andrwe Lord Weber <[email protected]>
  • Loading branch information
Andrwe committed Jan 15, 2025
1 parent 3d09ad1 commit 8eb1171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

content_removed = [
"ad_970x250", # class match: https://www.iphoneitalia.com/
"MyAdsId3", # id match
"sellwild-loader", # id match ###
"AdRight2", # class match with element having multiple classes
"data-ad-manager-id", # attribute match
"data-taboola-options", # attribute match ##[
"data-freestar-ad id", # combined attribute match
'data-role="tile-ads-module"', # attribute exact match
'onclick="content.ad/"', # attribute contain match
'class="adDisplay-module_foobar"', # attribute startswith match
'href="https://www.reimageplus.com/foobar"', # attribute startswith match
'onclick="location.href=\'https://1337x.vpnonly.site/"', # attribute startswith match ##[*^=
]
content_exists = [
"ajlkl", # should exist, although one element is removed by privoxy
Expand Down
6 changes: 3 additions & 3 deletions tests/response.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<div class="ad_970x250">single class should be removed</div>
<div class="asd ajlkl AdRight2">multiple classes that should be removed</div>
<div class="asd ajlkl"> multiple classes that should exist </div>
<div id="MyAdsId3">id should be removed</div>
<div data-ad-manager-id class="success-valid-class">name-only attibute should be removed</div>
<div id="sellwild-loader">id should be removed</div>
<div data-taboola-options class="success-valid-class">name-only attibute should be removed</div>
<div data-freestar-ad id>combined name-only attibute should be removed</div>
<div data-role="tile-ads-module" class="success-valid-class">exact match attibute should be removed</div>
<div onclick="foo_content.ad/-asd">1. contain match attribute should be removed</div>
<div onclick="content.ad/">2. contain match attribute should be removed</div>
<div class="adDisplay-module_foobar">1. startswith match attribute should be removed</div>
<div class="adDisplay-modul">startswith match attribute should be exist</div>
<div href="https://www.reimageplus.com/foobar">2. startswith match attribute should be removed</div>
<div onclick="location.href='https://1337x.vpnonly.site/">2. startswith match attribute should be removed</div>
</body>
</html>

0 comments on commit 8eb1171

Please sign in to comment.