Add a github filter
authorFabian Keil <fk@fabiankeil.de>
Mon, 18 Jan 2021 13:49:39 +0000 (14:49 +0100)
committerFabian Keil <fk@fabiankeil.de>
Tue, 19 Jan 2021 13:25:06 +0000 (14:25 +0100)
... that removes the annoying "Sign-Up" banner and the Cookie disclaimer.

default.filter

index 031bd17..b5f5731 100644 (file)
@@ -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