Merge pull request #2351 from keepassxreboot/fix/predefined_sites

Fix Predefined Sites for some pages
This commit is contained in:
Sami Vänttinen 2024-10-01 17:20:13 +03:00 committed by GitHub
commit 69e2986ad6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -35,7 +35,8 @@ const PREDEFINED_SITELIST = [
];
const IMPROVED_DETECTION_PREDEFINED_SITELIST = [
'https://secure.chase.com/*'
'https://secure.chase.com/*',
'https://www.icloud.com/'
];
const googleUrl = 'https://accounts.google.com';
@ -87,7 +88,8 @@ kpxcSites.exceptionFound = function(identifier, field) {
|| document.location.origin.startsWith('https://mail.protonmail.com')
&& identifier === 'mailboxPassword') {
return true;
} else if (document.location.origin === 'https://www.patreon.com' && field?.name === 'current-password') {
} else if (document.location.origin === 'https://www.patreon.com' &&
(field?.name === 'current-password' || field?.innerHTML?.includes('current-password'))) {
return true;
} else if (document.location.origin === 'https://wordpress.com' && identifier?.value === 'login__form-password') {
return true;

View file

@ -105,7 +105,7 @@ kpxcFields.getSegmentedTOTPFields = function(inputs, combinations) {
totpInputs.length === DEFAULT_SEGMENTED_TOTP_FIELDS) &&
totpInputs.every(
input =>
(input.inputMode === 'numeric' && input.pattern.includes('0-9')) ||
((input.inputMode === 'numeric' || input.inputMode === '') && input.pattern.includes('0-9')) ||
((input.type === 'text' || input.type === 'number') && input.maxLength === 1) ||
input.type === 'tel'
)