From 032e8727ccc4eb06556669614c692203f168e0fc Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Thu, 12 Nov 2020 09:42:58 +1100 Subject: [PATCH] Add Plausible detection --- .../webextension/images/icons/Plausible.svg | 29 +++++++++++++++++++ src/drivers/webextension/js/driver.js | 2 +- src/technologies.json | 17 ++++++++++- 3 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 src/drivers/webextension/images/icons/Plausible.svg diff --git a/src/drivers/webextension/images/icons/Plausible.svg b/src/drivers/webextension/images/icons/Plausible.svg new file mode 100644 index 000000000..d17994cf7 --- /dev/null +++ b/src/drivers/webextension/images/icons/Plausible.svg @@ -0,0 +1,29 @@ + + + + Artboard + Created with Sketch. + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/drivers/webextension/js/driver.js b/src/drivers/webextension/js/driver.js index 9d788e2d1..e1eb75ab9 100644 --- a/src/drivers/webextension/js/driver.js +++ b/src/drivers/webextension/js/driver.js @@ -13,7 +13,7 @@ const { agent, promisify, getOption, setOption, open } = Utils const expiry = 1000 * 60 * 60 * 24 -const hostnameIgnoreList = /((local|dev(elop(ment)?)?|stag(e|ing)?|preprod|test(ing)?|demo(shop)?|admin|cache)[.-]|localhost|wappalyzer|google|facebook|twitter|reddit|yahoo|wikipedia|amazon|youtube|\/admin|\.local|\.test|\.dev|^[0-9.]$)/ +const hostnameIgnoreList = /((local|dev(elop(ment)?)?|stag(e|ing)?|preprod|preview|test(ing)?|demo(shop)?|admin|cache)[.-]|localhost|wappalyzer|google|facebook|twitter|reddit|yahoo|wikipedia|amazon|youtube|\/admin|\.local|\.test|\.dev|^[0-9.]$)/ const Driver = { lastPing: Date.now(), diff --git a/src/technologies.json b/src/technologies.json index ab4b43b3b..7db429d80 100644 --- a/src/technologies.json +++ b/src/technologies.json @@ -5827,6 +5827,21 @@ ], "website": "https://www.google.fr/adsense/start/" }, + "Plausible": { + "cats": [ + 10, + 61 + ], + "cookies": { + }, + "description": "Plausible is an open-source alternative to Google Analytics.", + "icon": "Plausible.svg", + "js": { + "plausible": "" + }, + "scripts": "plausible\\.io/js/plausible\\.js", + "website": "https://plausible.io/" + }, "Google Analytics": { "cats": [ 10, @@ -17827,4 +17842,4 @@ "website": "https://www.xt-commerce.com" } } -} \ No newline at end of file +}