Fix Google password input (#2861)

This commit is contained in:
Sami Vänttinen 2026-02-07 06:58:44 +02:00 committed by GitHub
parent 6414dd24b7
commit 89cc1bb40d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -106,6 +106,8 @@ kpxcSites.exceptionFound = function(identifier, field) {
} else if (document.location.origin === 'https://login.dei.gr' && } else if (document.location.origin === 'https://login.dei.gr' &&
identifier?.value?.includes('show-reveal-password')) { identifier?.value?.includes('show-reveal-password')) {
return true; return true;
} else if (document.location.origin === 'https://accounts.google.com' && field?.id === 'password') {
return true;
} }
return false; return false;

View file

@ -108,6 +108,14 @@ kpxcFields.getExistingCombination = function(combination) {
existingCombination.passwordInputs.push(combination.password); existingCombination.passwordInputs.push(combination.password);
} }
// Exception for Google. They replace the username input with password input using identical className.
// If detected, remove the username from the combination.
if (existingCombination?.username?.className?.length > 0
&& existingCombination?.password?.className?.length > 0
&& existingCombination?.username?.className === existingCombination?.password?.className) {
existingCombination.username = null;
}
return existingCombination; return existingCombination;
} }