Fix LaStampa.it (video articles)

Fix WSJ (disable amp-redirect for www)
merge-requests/16/head
magnolia1234 9 months ago
parent d871342357
commit 24927daf33

@ -28,6 +28,7 @@ var restrictions = {
'espn.com': /^((?!espn\.com\/watch).)*$/,
'esquire.com': /^((?!\/classic\.esquire\.com\/).)*$/,
'foreignaffairs.com': /^((?!\/reader\.foreignaffairs\.com\/).)*$/,
'ft.com': /^((?!\/cn\.ft\.com\/).)*$/,
'hilltimes.com': /^((?!hilltimes\.com\/slideshow\/).)*$/,
'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/,
'science.org': /^((?!\.science\.org\/doi\/).)*$/,
@ -1010,7 +1011,7 @@ if (matchUrlDomain(change_headers, details.url) && !ignore_types.includes(detail
!(matchUrlDomain(['economictimes.com', 'economictimes.indiatimes.com'], details.url) && !details.url.split(/\?|#/)[0].endsWith('.cms')) &&
!(matchUrlDomain(au_news_corp_domains, details.url) && (details.url.includes('?amp') || (!matchUrlDomain(au_news_corp_no_amp_fix, details.url) && enabledSites.includes('#options_disable_gb_au_news_corp')))) &&
!(matchUrlDomain('uol.com.br', details.url) && !matchUrlDomain('folha.uol.com.br', details.url)) &&
!(matchUrlDomain('wsj.com', details.url) && (enabledSites.includes('#options_disable_gb_wsj') || (!details.url.match(/((\w)+[%\-]+){3,}/) && details.type === 'main_frame' && mobile)));
!(matchUrlDomain('wsj.com', details.url) && !details.url.match(/((\w)+[%\-]+){3,}/) && details.type === 'main_frame' && mobile);
var bingbotEnabled = matchUrlDomain(use_bing_bot, details.url);
var facebookbotEnabled = matchUrlDomain(use_facebook_bot, details.url);

@ -4,7 +4,9 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Add Cambio Colombia
Fix LaStampa.it (video articles)
Fix South China Morning Post (mobile & amp)
Fix WSJ (disable amp-redirect for www)
* v3.3.3.0 (2023-09-10)
Add PourLaScience.fr

@ -5405,10 +5405,17 @@ else if (matchDomain('wsj.com')) {
let wsj_pro = document.querySelector('meta[name="page.site"][content="wsjpro"]');
if (snippet || wsj_pro) {
removeDOMElement(snippet, wsj_pro);
if (url_article)
window.location.href = window.location.href.replace('wsj.com', 'wsj.com/amp');
else
window.location.href = '/amp/articles/' + path_article[0];
if (!matchDomain('www.wsj.com')) {
if (url_article)
window.location.href = window.location.href.replace('wsj.com', 'wsj.com/amp');
else
window.location.href = '/amp/articles/' + path_article[0];
} else if (window.location.search) {
window.location.href = window.location.pathname;
} else {
let header = document.querySelector('div.article-header, article > div');
header_nofix(header);
}
}
}
}

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.3.2"
"version": "3.3.3.5"
}

@ -277,6 +277,12 @@
"allow_cookies": 1,
"domain": "lefigaro.fr"
},
"Lemonde.fr": {
"add_ext_link": "section.paywall|article",
"add_ext_link_type": "archive.is",
"allow_cookies": 1,
"domain": "lemonde.fr"
},
"Lepoint.fr": {
"add_ext_link": "div.info-paywall|div.ArticleBody>p",
"add_ext_link_type": "archive.is",
@ -617,8 +623,9 @@
},
"Vikatan.com": {
"allow_cookies": 1,
"block_regex": "\\.vikatan\\.com\\/evolok\\/ev-dab\\/ev-em\\.min\\.js",
"domain": "vikatan.com"
"cs_code": "[{\"cond\":\"div[class^='styles-m__story-card-wrapper_']\", \"rm_attrib\":\"class\"}]",
"domain": "vikatan.com",
"ld_json": "div#paywallDisplay|div.story-element>div"
},
"Washingtontimes.com": {
"allow_cookies": 1,

@ -793,5 +793,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.3.2"
"version": "3.3.3.5"
}

@ -961,7 +961,7 @@ var defaultSites = {
useragent: "googlebot",
exception: [{
domain: "lastampa.it",
block_js_inline: /\.lastampa\.it\//,
block_js_inline: /\.lastampa\.it\/.+\/news\//,
remove_cookies_select_drop: ["blaize_session"]
}
]
@ -2335,7 +2335,7 @@ var defaultSites = {
allow_cookies: 1,
cs_dompurify: 1
},
"The Wall Street Journal (when blocked disable Googlebot in BPC-settings)": {
"The Wall Street Journal": {
domain: "wsj.com",
allow_cookies: 1,
block_regex: /(cdn\.cxense\.com\/|cdn\.ampproject\.org\/v\d\/amp-(access|subscriptions)-.+\.js)/,
@ -2648,9 +2648,6 @@ var defaultSites = {
"Barron's - no Googlebot (http error 500)": {
domain: "#options_disable_gb_barrons"
},
"The Wall Street Journal - no Googlebot (http error 500)": {
domain: "#options_disable_gb_wsj"
},
}
if (typeof browser !== 'object') {

@ -2,8 +2,8 @@
"addons": {
"magnolia@12.34": {
"updates": [
{ "version": "3.3.2.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.3.2.0.xpi" }
{ "version": "3.3.3.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.3.3.0.xpi" }
]
}
}

Loading…
Cancel
Save