From 053ad20ecf29e9de886c361d8b7db9e720ea5191 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Mon, 12 Sep 2022 19:54:50 +0200 Subject: [PATCH] Add Private Equity News --- README.md | 1 + background.js | 2 +- changelog.txt | 1 + custom/sites_custom.json | 4 ---- manifest.json | 1 + sites.js | 4 ++++ sites_updated.json | 4 ++++ 7 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5d99551..27fda1a 100644 --- a/README.md +++ b/README.md @@ -370,6 +370,7 @@ Grouped in options:\ [Irish Independent](https://www.independent.ie) - [London Review of Books](https://www.lrb.co.uk) - [New Left Review](https://newleftreview.org) - +[Private Equity News](https://www.penews.com) - [Prospect Magazine](https://www.prospectmagazine.co.uk) - [The Banker](https://www.thebanker.com) - [The Economist](https://www.economist.com) - diff --git a/background.js b/background.js index 20a86cf..0a5d72c 100644 --- a/background.js +++ b/background.js @@ -1225,7 +1225,7 @@ function updateBadge(activeTab) { ext_api.browserAction.setBadgeText({text: badgeText}); }); } else { - if (matchUrlDomain(customSitesExt, currentUrl)) + if (!badgeText && matchUrlDomain(customSitesExt, currentUrl)) badgeText = '+C'; if (color && badgeText) ext_api.browserAction.setBadgeBackgroundColor({color: color}); diff --git a/changelog.txt b/changelog.txt index 3bea03c..a2dba37 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add Private Equity News Fix Gruppo GEDI.it (login) * v2.8.4.0 (2022-09-11) diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 8c74df5..1d2a2b8 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -136,10 +136,6 @@ "amp_redirect": "div[id^=\"media_paywall\"]", "domain": "nv.ua" }, - "Penews.com": { - "domain": "penews.com", - "useragent": "googlebot" - }, "Physicsworld.com": { "domain": "physicsworld.com" }, diff --git a/manifest.json b/manifest.json index 5e7a7b7..637f0c1 100644 --- a/manifest.json +++ b/manifest.json @@ -468,6 +468,7 @@ "*://*.parool.nl/*", "*://*.pe.com/*", "*://*.pelotonmagazine.com/*", + "*://*.penews.com/*", "*://*.pennlive.com/*", "*://*.petitbleu.fr/*", "*://*.philanthropy.com/*", diff --git a/sites.js b/sites.js index 480fdb2..367dc74 100644 --- a/sites.js +++ b/sites.js @@ -1426,6 +1426,10 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.tinypass\.com\// }, + "Private Equity News": { + domain: "penews.com", + useragent: "googlebot" + }, "Prospect Magazine": { domain: "prospectmagazine.co.uk", allow_cookies: 1 diff --git a/sites_updated.json b/sites_updated.json index 58a3db7..d636eba 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -47,6 +47,10 @@ "block_regex": "js\\.pelcro\\.com\\/", "new_site": 1 }, + "Private Equity News": { + "domain": "penews.com", + "useragent": "googlebot" + }, "The Toronto Star (+ local TorStar sites)": { "domain": "###_ca_torstar", "group": [