From ef43ecd1205ad4efb99194f5070b980a1e7902b1 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 10 Dec 2020 21:10:47 +0100 Subject: [PATCH] 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 and tags. s@(]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\ PING!\n$1$4@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@igsU + ################################################################################# # # google: CSS-based block for Google text ads. Also removes -- 2.39.2