Log a message right before exiting gracefully
[privoxy.git] / default.filter
index 906c54e..7f61785 100644 (file)
@@ -4,7 +4,7 @@
 #
 #  Purpose     :  Rules to process the content of web pages
 #
-#  Copyright   :  Written by and Copyright (C) 2001-2020 the
+#  Copyright   :  Written by and Copyright (C) 2001-2021 the
 #                 Privoxy team. https://www.privoxy.org/
 #
 #                 This program is free software; you can redistribute it
@@ -589,6 +589,17 @@ FILTER: github Removes the annoying "Sign-Up" banner and the Cookie disclaimer.
 s@<signup-prompt.*</signup-prompt>@@Uis
 s@(<div) (class="hx_cookie-banner)@$1 style="display:none;" $2@
 
+#################################################################################
+#
+# imdb: Removes some ads on IMDb.
+#
+#################################################################################
+FILTER: imdb Removes some ads on IMDb.
+
+s@(<div id="top_ad_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
+
 #################################################################################
 #
 # google: CSS-based block for Google text ads. Also removes