From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 18 Jan 2021 13:49:39 +0000 (+0100)
Subject: Add a github filter
X-Git-Tag: v_3_0_30~82
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/@default-cgi@toggle?a=commitdiff_plain;h=7f485093bf1f43003f9a2942e29cacac1a624d6c;p=privoxy.git

Add a github filter

... that removes the annoying "Sign-Up" banner and the Cookie disclaimer.
---

diff --git a/default.filter b/default.filter
index 031bd17d..b5f5731e 100644
--- a/default.filter
+++ b/default.filter
@@ -579,6 +579,16 @@ FILTER: allow-autocompletion Changes autocomplete="off" on form and input fields
 
 s@(<(?:input|form|select|textarea)\s[^>]+autocomplete=)(['"]?)(?:off|0)\2@$1$2on$2@igsU
 
+#################################################################################
+#
+# github: Removes the annoying "Sign-Up" banner and the Cookie disclaimer.
+#
+#################################################################################
+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@
+
 #################################################################################
 #
 # google: CSS-based block for Google text ads. Also removes