Add Fresno Bee (USA)

This commit is contained in:
magnolia1234 2020-09-05 16:59:14 +02:00
parent 6bdc8771cc
commit b181833ccf
6 changed files with 10 additions and 6 deletions

View file

@ -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) -

View file

@ -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/,

View file

@ -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');

View file

@ -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"
}

View file

@ -40,5 +40,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.8.3.1"
"version": "1.8.3.2"
}

View file

@ -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",