[Privoxy-commits] [privoxy] 01/26: Add new 'allow-autocompletion' filter

User Git git at git.privoxy.org
Mon Jan 18 13:32:09 UTC 2021


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

git pushed a commit to branch master
in repository privoxy.

commit ef43ecd1205ad4efb99194f5070b980a1e7902b1
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Dec 10 21:10:47 2020 +0100

    Add new 'allow-autocompletion' filter
    
    ... which changes autocomplete="off" to "on" on input fields to
    allow autocompletion.
    
    Requested by Jamie Zawinski in #370.
    Filter based on a submission by Aaron Linville.
---
 default.filter | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/default.filter b/default.filter
index 901bb687..031bd17d 100644
--- a/default.filter
+++ b/default.filter
@@ -569,6 +569,16 @@ FILTER: no-ping Removes non-standard ping attributes in <a> and <area> tags.
 s@(<a(?:rea)?[^>]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\
 <strong style="color:white; background-color:red;" title="Privoxy removed ping target '$3'">PING!</strong>\n$1$4 at ig
 
+#################################################################################
+#
+# allow-autocompletion: Changes autocomplete="off" on form and input fields
+#                       to "on" to allow autocompletion.
+#
+#################################################################################
+FILTER: allow-autocompletion Changes autocomplete="off" on form and input fields to "on" to allow autocompletion.
+
+s@(<(?:input|form|select|textarea)\s[^>]+autocomplete=)(['"]?)(?:off|0)\2@$1$2on$2 at igsU
+
 #################################################################################
 #
 # google: CSS-based block for Google text ads. Also removes

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


More information about the Privoxy-commits mailing list