diff --git a/src/apps.json b/src/apps.json index fc0715d45..7df4efa4a 100644 --- a/src/apps.json +++ b/src/apps.json @@ -734,7 +734,10 @@ "js": { "AmazonPayments": "" }, - "script": "/amazonpayments(?:\\.min)?\\.js", + "script": [ + "/amazonpayments(?:\\.min)?\\.js", + "static-[^.]\\.payments-amazon\\.com/OffAmazonPayments" + ], "website": "https://pay.amazon.com" }, "Amazon S3": { @@ -3873,6 +3876,16 @@ "script": "//connect\\.facebook\\.net/[^/]*/[a-z]*\\.js", "website": "http://facebook.com" }, + "Login with Amazon": { + "cats": [ + 69 + ], + "icon": "Amazon.svg", + "js": { + "onAmazonLoginReady": "" + }, + "website": "https://developer.amazon.com/apps-and-games/login-with-amazon" + }, "Facebook Sign-in": { "cats": [ 69 diff --git a/src/drivers/webextension/css/styles.css b/src/drivers/webextension/css/styles.css index 73ffbd927..45bd52ab3 100644 --- a/src/drivers/webextension/css/styles.css +++ b/src/drivers/webextension/css/styles.css @@ -167,6 +167,10 @@ a:hover { display: none } +.category__heading { + white-space: nowrap; +} + .category__heading:hover .category__pin { visibility: visible; } diff --git a/src/drivers/webextension/images/icons/Amazon.svg b/src/drivers/webextension/images/icons/Amazon.svg new file mode 100644 index 000000000..77a47d394 --- /dev/null +++ b/src/drivers/webextension/images/icons/Amazon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/drivers/webextension/js/popup.js b/src/drivers/webextension/js/popup.js index b1e316775..4eac92913 100644 --- a/src/drivers/webextension/js/popup.js +++ b/src/drivers/webextension/js/popup.js @@ -162,18 +162,20 @@ const Popup = { */ categorise(technologies) { return Object.values( - technologies.reduce((categories, technology) => { - technology.categories.forEach((category) => { - categories[category.id] = categories[category.id] || { - ...category, - technologies: [] - } - - categories[category.id].technologies.push(technology) - }) + technologies + .filter(({ confidence }) => confidence >= 50) + .reduce((categories, technology) => { + technology.categories.forEach((category) => { + categories[category.id] = categories[category.id] || { + ...category, + technologies: [] + } + + categories[category.id].technologies.push(technology) + }) - return categories - }, {}) + return categories + }, {}) ) },