[Privoxy-commits] [privoxy] branch master updated: Update imdb filter to remove wasted space below the search field

User Git git at git.privoxy.org
Wed Apr 23 09:59:18 CEST 2025


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

The following commit(s) were added to refs/heads/master by this push:
     new 9ee80026 Update imdb filter to remove wasted space below the search field
9ee80026 is described below

commit 9ee8002690e8d8eb22f4f22968376aac830b4d92
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Mon Apr 7 16:25:12 2025 +0200

    Update imdb filter to remove wasted space below the search field
---
 default.filter                        | 2 +-
 tests/cts/content-filters/data/test38 | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/default.filter b/default.filter
index aaf70a3e..a9f198d8 100644
--- a/default.filter
+++ b/default.filter
@@ -599,7 +599,7 @@ s@(<div) (class="hx_cookie-banner)@$1 style="display:none;" $2@
 #################################################################################
 FILTER: imdb Removes some ads on IMDb.
 
-s@(<div id="top_ad_wrapper")@$1 style="display:none"@
+s@(<div id="inline20_responsive_wrapper")[^>]*@$1 style="display:none"@
 s@<iframe[^>]*id="top_ad"[^>]*>.*</iframe>@<!-- Iframe removed by Privoxy's imdb filter -->@
 s@<iframe[^>]*onload="doWithAds.call[^>]*></iframe>@<!-- Iframe removed by Privoxy's imdb filter -->@g
 
diff --git a/tests/cts/content-filters/data/test38 b/tests/cts/content-filters/data/test38
index 9b9f6b49..415e71a2 100644
--- a/tests/cts/content-filters/data/test38
+++ b/tests/cts/content-filters/data/test38
@@ -19,7 +19,7 @@ X-Control: swsclose
 
 # pcrs command 1:
 
-<div id="top_ad_wrapper"
+<div id="inline20_responsive_wrapper" class="slot_wrapper nas-spacing nas-dark" style="position:relative">
 
 # pcrs command 2:
 
@@ -38,13 +38,13 @@ Date: Thu, 22 Jul 2010 11:22:33 GMT
 Connection: close
 Content-Type: text/html
 X-Control: swsclose
-Content-Length: 259
+Content-Length: 273
 
 # Here are some strings the imdb filter should filter:
 
 # pcrs command 1:
 
-<div id="top_ad_wrapper" style="display:none"
+<div id="inline20_responsive_wrapper" style="display:none">
 
 # pcrs command 2:
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list