-
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1010 from keepassxreboot/feature/predefined_sites
Add predefined sites option
- Loading branch information
Showing
17 changed files
with
168 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
'use strict'; | ||
|
||
const PREDEFINED_SITELIST = [ | ||
'https://accounts.google.com/*', | ||
'https://www.paypal.com/*', | ||
'https://*.live.com/*', | ||
'https://www.amazon.com/*', | ||
'https://www.amazon.de/*', | ||
'https://www.amazon.co.uk/*', | ||
'https://signin.aws.amazon.com/*', | ||
'https://www.upwork.com/ab/*', | ||
'https://home.personalcapital.com/*', | ||
'https://auth.services.adobe.com/*', | ||
'https://idmsa.apple.com/*', | ||
'https://*.soundcloud.com/*', | ||
'https://icloud.com/*', | ||
'https://signin.ebay.de/*', | ||
'https://signin.ebay.com/*', | ||
'https://signin.ebay.com.au/*', | ||
'https://signin.ebay.com.cn/*', | ||
'https://signin.ebay.com.hk/*', | ||
'https://signin.ebay.com.my/*', | ||
'https://signin.ebay.com.sg/*', | ||
'https://signin.ebay.it/*', | ||
'https://signin.ebay.co.uk/*', | ||
'https://signin.ebay.ca/*', | ||
'https://signin.ebay.at/*', | ||
'https://signin.ebay.be/*', | ||
'https://signin.ebay.fr/*', | ||
'https://signin.ebay.ie/*', | ||
'https://signin.ebay.nl/*', | ||
'https://signin.ebay.es/*', | ||
'https://signin.ebay.ch/*', | ||
'https://signin.ebay.in/*', | ||
'https://signin.ebay.ph/*', | ||
'https://login.yahoo.com/*', | ||
'https://*.atlassian.com/*' | ||
]; | ||
|
||
const kpxcSites = {}; | ||
kpxcSites.googlePasswordFormUrl = 'https://accounts.google.com/signin/v2/challenge/password'; | ||
kpxcSites.googleUrl = 'https://accounts.google.com'; | ||
kpxcSites.savedForm = undefined; | ||
|
||
// Handles a few exceptions for certain sites where password form is inside a div | ||
// or another element that is not detected directly. Triggered by MutationObserver. | ||
// Returns true if an Element has a matching classList. | ||
kpxcSites.exceptionFound = function(classList) { | ||
if (!classList || classList.length === 0) { | ||
return; | ||
} | ||
|
||
// Apple ID | ||
if (document.location.origin === 'https://idmsa.apple.com' | ||
&& [ 'password', 'form-row', 'show-password' ].every(c => classList.contains(c))) { | ||
return true; | ||
} else if (document.location.origin.startsWith('https://signin.ebay.com') | ||
&& classList.contains('null')) { | ||
return true; | ||
} | ||
|
||
return false; | ||
}; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.