Fix group Tribune Publishing Company (js)
This commit is contained in:
parent
ac38cf75a2
commit
76405c8fc2
@ -263,6 +263,7 @@ Grouped in options:\
|
||||
[The Press-Enterprise](https://www.pe.com)\
|
||||
*Tribune Publishing Company* sites like\
|
||||
[Baltimore Sun](https://www.baltimoresun.com) -
|
||||
[Capital Gazette](https://www.capitalgazette.com) -
|
||||
[Chicago Tribune](https://www.chicagotribune.com) -
|
||||
[Daily Press](https://www.dailypress.com) -
|
||||
[Hartford Courant](https://www.courant.com) -
|
||||
|
@ -635,7 +635,7 @@ var block_js = [
|
||||
function disableJavascriptOnListedSites() {
|
||||
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
|
||||
let header_referer = details.originUrl ? details.originUrl : details.initiator;
|
||||
if (!isSiteEnabled(details) || matchUrlDomain(excludedSites.concat(['asia.nikkei.com']), header_referer)) {
|
||||
if (!isSiteEnabled(details) || matchUrlDomain(excludedSites.concat(['asia.nikkei.com', 'cambridge.org']), header_referer)) {
|
||||
return;
|
||||
}
|
||||
return {
|
||||
|
@ -2,6 +2,8 @@
|
||||
Changelog Bypass Paywalls Clean - Chrome
|
||||
|
||||
Post-release
|
||||
Add Capital Gazette (local USA)
|
||||
Fix group Tribune Publishing Company (js)
|
||||
|
||||
* v2.4.9.0 (2021-12-26)
|
||||
Add El Espectador (Columbia)
|
||||
|
@ -826,13 +826,13 @@ else if (matchDomain('elespanol.com')) {
|
||||
}
|
||||
}
|
||||
|
||||
else if (domain = matchDomain(es_unidad_domains)) {
|
||||
else if (matchDomain(es_unidad_domains)) {
|
||||
let premium = document.querySelector('.ue-c-article__premium');
|
||||
let url = window.location.href;
|
||||
if (!url.includes('/amp.' + domain + '/')) {
|
||||
if (!window.location.hostname.startsWith('amp.')) {
|
||||
if (premium) {
|
||||
removeDOMElement(premium);
|
||||
window.location.href = window.location.href.replace('/www.', '/amp.');
|
||||
window.location.href = url.replace('/www.', '/amp.');
|
||||
}
|
||||
} else {
|
||||
amp_unhide_access_hide('="authorized=true"', '="authorized!=true"');
|
||||
@ -849,8 +849,8 @@ else if (matchDomain('elpais.com')) {
|
||||
} else {
|
||||
let counter = document.querySelector('#counterLayerDiv');
|
||||
removeDOMElement(counter);
|
||||
let video = document.querySelector('div.videoTop')
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
let video = document.querySelector('div.videoTop');
|
||||
let amphtml = document.querySelector('link[rel="amphtml"]');
|
||||
if ((login_register || video) && amphtml) {
|
||||
removeDOMElement(login_register, video);
|
||||
window.location.href = amphtml.href;
|
||||
|
@ -39,5 +39,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.4.9.0"
|
||||
"version": "2.4.9.1"
|
||||
}
|
||||
|
@ -94,6 +94,7 @@
|
||||
"*://*.businessoffashion.com/*",
|
||||
"*://*.cairnspost.com.au/*",
|
||||
"*://*.canberratimes.com.au/*",
|
||||
"*://*.capitalgazette.com/*",
|
||||
"*://*.cen.acs.org/*",
|
||||
"*://*.centralwesterndaily.com.au/*",
|
||||
"*://*.centrepresseaveyron.fr/*",
|
||||
@ -583,7 +584,8 @@
|
||||
"*://*.rndtech.de/*",
|
||||
"*://*.sanoma-sndp.fi/*",
|
||||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
"*://*.wsj.net/*",
|
||||
"*://*.zephr.com/*"
|
||||
],
|
||||
"version": "2.4.9.0"
|
||||
"version": "2.4.9.1"
|
||||
}
|
||||
|
3
sites.js
3
sites.js
@ -1648,6 +1648,7 @@ var defaultSites = {
|
||||
domain: "###_usa_tribune",
|
||||
group: [
|
||||
"baltimoresun.com",
|
||||
"capitalgazette.com",
|
||||
"chicagotribune.com",
|
||||
"courant.com",
|
||||
"dailypress.com",
|
||||
@ -1658,7 +1659,7 @@ var defaultSites = {
|
||||
"sun-sentinel.com"
|
||||
],
|
||||
allow_cookies: 1,
|
||||
block_regex: /\.tribdss\.com\//
|
||||
block_regex: /(\.tribdss\.com\/|\.zephr\.com\/zephr-browser\/.+\/zephr-browser\.umd\.js)/
|
||||
},
|
||||
"Trouw": {
|
||||
domain: "trouw.nl",
|
||||
|
@ -49,5 +49,22 @@
|
||||
"allow_cookies": 1,
|
||||
"amp_unhide": 1,
|
||||
"block_regex": "(\\/indianexpress\\.com\\/.+\\/indianexpress\\/js\\/evolok\\/.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|(sticky-)?ad)-.+\\.js)"
|
||||
},
|
||||
"Tribune Publishing Company": {
|
||||
"domain": "###_usa_tribune",
|
||||
"group": [
|
||||
"baltimoresun.com",
|
||||
"capitalgazette.com",
|
||||
"chicagotribune.com",
|
||||
"courant.com",
|
||||
"dailypress.com",
|
||||
"mcall.com",
|
||||
"nydailynews.com",
|
||||
"orlandosentinel.com",
|
||||
"pilotonline.com",
|
||||
"sun-sentinel.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.tribdss\\.com\\/|\\.zephr\\.com\\/zephr-browser\\/.+\\/zephr-browser\\.umd\\.js)"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user