From c92beaf387e39266f79716328314388e47104f03 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Wed, 13 Nov 2019 18:08:38 +0100 Subject: [PATCH] inject: detect username by autocomplete=email --- src/inject.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/inject.js b/src/inject.js index 845c52b..aa76271 100644 --- a/src/inject.js +++ b/src/inject.js @@ -20,6 +20,7 @@ "input[class*=email i]", "input[class*=alias i]", "input[type=email i]", + "input[autocomplete=email i]", "input[type=text i]", "input[type=tel i]" ], @@ -263,7 +264,8 @@ if ( rect.x + rect.width < 0 || rect.y + rect.height < 0 || - (rect.x > window.innerWidth || rect.y > window.innerHeight) + rect.x > window.innerWidth || + rect.y > window.innerHeight ) { continue; }