diff --git a/README.md b/README.md index 502d00b..a592715 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ So don't update to Firefox 79 or use F-droid's [Fennec-release](https://f-droid. [SunSentinel](https://www.sun-sentinel.com) - [The Boston Globe](https://www.bostonglobe.com) - [The Denver Post](https://www.denverpost.com) - +[The Fresno Bee](https://www.fresnobee.com) - [The Mercury News](https://www.mercurynews.com) - [The Morning Call](https://www.mcall.com) - [The Seattle Times](https://www.seattletimes.com) - diff --git a/background.js b/background.js index fcd7aa0..9e7ba04 100644 --- a/background.js +++ b/background.js @@ -169,6 +169,7 @@ var blockedRegexes = { 'fortune.com': /.+\.tinypass\.com\/.+/, 'ft.com': /.+\.ft\.com\/__assets\/hashed\/page-kit\/shared\.volatile\..+\.bundle\.js/, 'ftm.nl': /.+\.ftm\.nl\/js\/routing\?/, +'fresnobee.com': /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/, 'gestion.pe': /gestion\.pe\/pf\/dist\/template\/gestion-noticia.+\.js/, 'globes.co.il': /.+\.tinypass\.com\/.+/, 'haaretz.co.il': /haaretz\.co\.il\/htz\/js\/inter\.js/, diff --git a/contentScript.js b/contentScript.js index 3b21a8b..0dbbe57 100644 --- a/contentScript.js +++ b/contentScript.js @@ -1026,13 +1026,13 @@ else if (matchDomain("discovermagazine.com")) { removeDOMElement(banner); } -else if (matchDomain("sacbee.com")) { +else if (domain = matchDomain(["fresnobee.com", "sacbee.com"])) { let url = window.location.href; - if (url.includes('account.sacbee.com/paywall/')) { + if (url.includes('account.' + domain + '/paywall/')) { window.setTimeout(function () { - window.location.href = 'https://amp.sacbee.com/article' + url.split('resume=')[1].split('#')[0] + '.html'; + window.location.href = 'https://amp.' + domain + '/article' + url.split('resume=')[1].split('#')[0] + '.html'; }, 500); // Delay (in milliseconds) - } else if (url.includes('amp.sacbee.com')) { + } else if (url.includes('amp.' + domain)) { let subscr_sections = document.querySelectorAll('div[subscriptions-section="content"]'); for (let subscr_section of subscr_sections) { subscr_section.removeAttribute('subscriptions-section'); diff --git a/lp/manifest.json b/lp/manifest.json index 9ce88c0..58cc557 100644 --- a/lp/manifest.json +++ b/lp/manifest.json @@ -103,6 +103,7 @@ "*://*.foreignpolicy.com/*", "*://*.fortune.com/*", "*://*.frasercoastchronicle.com.au/*", + "*://*.fresnobee.com/*", "*://*.ft.com/*", "*://*.ftm.nl/*", "*://*.geelongadvertiser.com.au/*", @@ -303,5 +304,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.3.1" + "version": "1.8.3.2" } \ No newline at end of file diff --git a/manifest.json b/manifest.json index 54f3be9..0408938 100644 --- a/manifest.json +++ b/manifest.json @@ -40,5 +40,5 @@ "webRequest", "webRequestBlocking" ], - "version": "1.8.3.1" + "version": "1.8.3.2" } \ No newline at end of file diff --git a/sites.js b/sites.js index 16e5245..5d1a413 100644 --- a/sites.js +++ b/sites.js @@ -156,6 +156,7 @@ var defaultSites = "The Denver Post": "denverpost.com", "The Diplomat": "thediplomat.com", "The Economist": "economist.com", + "The Fresno Bee": "fresnobee.com", "The Globe and Mail": "theglobeandmail.com", "The Hindu": "thehindu.com", "The Irish Times": "irishtimes.com",