Fix CartaCapital.com.br (freemium)

merge-requests/20/head
magnolia1234 7 months ago
parent f014f7771e
commit 4a6dc879b5

@ -1517,7 +1517,7 @@ ext_api.runtime.onMessage.addListener(function (message, sender) {
let custom_domain = message.data.domain; let custom_domain = message.data.domain;
let group = message.data.group; let group = message.data.group;
if (group) { if (group) {
let nofix_groups = ['###_fi_alma_talent', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian']; let nofix_groups = ['###_fi_alma_talent', '###_fi_kaleva', '###_it_citynews', '###_nl_vmnmedia', '###_substack_custom', '###_uk_delinian'];
if (!custom_flex_domains.includes(custom_domain)) { if (!custom_flex_domains.includes(custom_domain)) {
if (!nofix_groups.includes(group)) { if (!nofix_groups.includes(group)) {
if (custom_flex[group]) if (custom_flex[group])

@ -7,6 +7,7 @@ Add 3 more Gannett sites
Add CH Media (opt-in to custom sites for unlisted) Add CH Media (opt-in to custom sites for unlisted)
Add Sourcing Journal (Penske) Add Sourcing Journal (Penske)
Fix Advance Local (json) Fix Advance Local (json)
Fix CartaCapital.com.br (freemium)
Fix Groupe ESH Medias (iframely) Fix Groupe ESH Medias (iframely)
Fix Grupo Vocento (limit amp-redirect) Fix Grupo Vocento (limit amp-redirect)
Fix Kurier.at (js & css) Fix Kurier.at (js & css)

@ -3258,6 +3258,7 @@ else if (matchDomain('cambiocolombia.com')) {
} }
else if (matchDomain('cartacapital.com.br')) { else if (matchDomain('cartacapital.com.br')) {
if (!window.location.pathname.endsWith('/amp/')) {
let paywall = document.querySelector('aside.paywall'); let paywall = document.querySelector('aside.paywall');
if (paywall) { if (paywall) {
removeDOMElement(paywall); removeDOMElement(paywall);
@ -3279,7 +3280,18 @@ else if (matchDomain('cartacapital.com.br')) {
console.log(err); console.log(err);
} }
} }
} else {
let content_soft = document.querySelector('div.contentSoft');
if (content_soft) {
content_soft.removeAttribute('class');
let freemium = document.querySelectorAll('div[class^="s-freemium"], div.maggazine-add');
removeDOMElement(...freemium);
}
} }
let ads = document.querySelectorAll('div.div_ros_topo');
hideDOMElement(...ads);
} else
ampToHtml();
} }
else if (matchDomain('crusoe.com.br')) { else if (matchDomain('crusoe.com.br')) {
@ -3508,7 +3520,7 @@ else if (window.location.hostname.endsWith('.cl') && document.querySelector('hea
else else
csDone = true; csDone = true;
} else {//other (like com/org & not at/be/br/ch/cl/de/dk/fi/fr/es/ie/nl/no/pe/pt/se/uk)) } else {//other (like com/org & not ar/at/au/be/br/cat/ch/cl/de/dk/fi/fr/es/ie/nl/pe/pt/se/uk/uy))
if (matchDomain(usa_adv_local_domains)) { if (matchDomain(usa_adv_local_domains)) {
if (window.location.search.startsWith('?outputType=amp')) { if (window.location.search.startsWith('?outputType=amp')) {

@ -84,6 +84,8 @@ window.setTimeout(function () {
} else if (hostname.endsWith('.fi')) { } else if (hostname.endsWith('.fi')) {
if (document.querySelector('head > link[href^="https://assets.almatalent.fi"]')) if (document.querySelector('head > link[href^="https://assets.almatalent.fi"]'))
group = '###_fi_alma_talent';// no fix group = '###_fi_alma_talent';// no fix
else if (document.querySelector('head[prefix*=".kalevamedia.fi/"]'))
group = '###_fi_kaleva';// no fix
} else if (hostname.endsWith('.fr')) { } else if (hostname.endsWith('.fr')) {
if (document.querySelector('head > meta[name="google-play-app"][content^="app-id=com.centrefrance"]')) if (document.querySelector('head > meta[name="google-play-app"][content^="app-id=com.centrefrance"]'))
group = '###_fr_gcf'; group = '###_fr_gcf';

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.5.5.6" "version": "3.5.5.7"
} }

@ -730,6 +730,11 @@
"block_regex": "\\.tinypass\\.com", "block_regex": "\\.tinypass\\.com",
"domain": "supchina.com" "domain": "supchina.com"
}, },
"T3n.de": {
"allow_cookies": 1,
"domain": "t3n.de",
"ld_json": "div.c-pro-wall__wrapper|div.pro-blur>p"
},
"Tamedia.ch (refresh)": { "Tamedia.ch (refresh)": {
"add_ext_link": "div#piano-premium|p[class^='ArticleParagraph_root_']", "add_ext_link": "div#piano-premium|p[class^='ArticleParagraph_root_']",
"add_ext_link_type": "google_search_tool", "add_ext_link_type": "google_search_tool",
@ -823,6 +828,11 @@
"block_regex": "\\/thenationalpulse\\.com\\/wp-content\\/.+\\/assets\\/js\\/national-pulse\\.js", "block_regex": "\\/thenationalpulse\\.com\\/wp-content\\/.+\\/assets\\/js\\/national-pulse\\.js",
"domain": "thenationalpulse.com" "domain": "thenationalpulse.com"
}, },
"Theqt.online": {
"allow_cookies": 1,
"domain": "theqt.online",
"ld_json_url": "section.elementor-section|div.post_center_side_text"
},
"Thestage.co.uk": { "Thestage.co.uk": {
"add_ext_link": "div#ao-MeteringDNAllow|div[class*='-Teaser']", "add_ext_link": "div#ao-MeteringDNAllow|div[class*='-Teaser']",
"add_ext_link_type": "archive.is", "add_ext_link_type": "archive.is",

@ -859,5 +859,5 @@
"*://archive.vn/*", "*://archive.vn/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.5.5.6" "version": "3.5.5.7"
} }

@ -18,6 +18,12 @@
"block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)", "block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)",
"upd_version": "3.2.7.1" "upd_version": "3.2.7.1"
}, },
"CartaCapital": {
"domain": "cartacapital.com.br",
"allow_cookies": 1,
"cs_code": "[{\"cond\":\"div.contentSoft\", \"rm_attrib\":\"class\"}]",
"upd_version": "3.5.5.7"
},
"Daily Mail UK": { "Daily Mail UK": {
"domain": "dailymail.co.uk", "domain": "dailymail.co.uk",
"allow_cookies": 1, "allow_cookies": 1,

Loading…
Cancel
Save