Fix Google password input

This commit is contained in:
varjolintu 2026-02-06 21:36:21 +02:00
parent 6414dd24b7
commit 1f87cbb8bb
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' &&
identifier?.value?.includes('show-reveal-password')) {
return true;
} else if (document.location.origin === 'https://accounts.google.com' && field?.id === 'password') {
return true;
}
return false;

View file

@ -108,6 +108,14 @@ kpxcFields.getExistingCombination = function(combination) {
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;
}