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