Fix Tiroler Tageszeitung (json)

Fix Exame
This commit is contained in:
magnolia1234 2024-04-07 10:31:08 +02:00
parent cd15094eb4
commit db90158966
3 changed files with 195 additions and 170 deletions

View file

@ -9,11 +9,13 @@ Add Crain's Grand Rapids Business
Add Hln.be (fetch from archive.is) Add Hln.be (fetch from archive.is)
Add Nordwest Zeitung Add Nordwest Zeitung
Add Spektrum.de Add Spektrum.de
Fix Exame
Fix LeMonde.fr (view more) Fix LeMonde.fr (view more)
Fix MediaNews Group (ld_json_url) Fix MediaNews Group (ld_json_url)
Fix Nzz.ch (css) Fix Nzz.ch (css)
Fix Reuters (videos) Fix Reuters (videos)
Fix Seeking Alpha (xhr) Fix Seeking Alpha (xhr)
Fix Tiroler Tageszeitung (json)
* v3.6.2.0 (2024-04-01) * v3.6.2.0 (2024-04-01)
Add American Purpose Add American Purpose

View file

@ -714,8 +714,8 @@ else if (matchDomain(['arcinfo.ch', 'lacote.ch', 'lenouvelliste.ch'])) {// Group
} }
} }
} }
let ads = document.querySelectorAll('div[class*="ads_type_"]'); let ads = 'div[class*="ads_type_"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('augsburger-allgemeine.de')) { else if (matchDomain('augsburger-allgemeine.de')) {
@ -729,8 +729,8 @@ else if (matchDomain('augsburger-allgemeine.de')) {
} else { } else {
amp_unhide_subscr_section(); amp_unhide_subscr_section();
} }
let banners = document.querySelectorAll('div.piano-article, div.p-ad'); let ads = 'div.piano-article, div.p-ad';
hideDOMElement(...banners); hideDOMStyle(ads);
} }
else if (matchDomain('automobilwoche.de')) { else if (matchDomain('automobilwoche.de')) {
@ -819,8 +819,8 @@ else if (matchDomain(['beobachter.ch', 'handelszeitung.ch'])) {
} }
} }
} }
let ads = document.querySelectorAll('div.ad-wrapper, div[id^="apn-ad-slot-"]'); let ads = 'div.ad-wrapper, div[id^="apn-ad-slot-"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('berliner-zeitung.de')) { else if (matchDomain('berliner-zeitung.de')) {
@ -860,8 +860,8 @@ else if (matchDomain('cicero.de')) {
let teasered_content_fader = document.querySelector('.teasered-content-fader'); let teasered_content_fader = document.querySelector('.teasered-content-fader');
let btn_read_more = document.querySelector('.btn--read-more'); let btn_read_more = document.querySelector('.btn--read-more');
removeDOMElement(teasered_content_fader, btn_read_more); removeDOMElement(teasered_content_fader, btn_read_more);
let amp_ads = document.querySelectorAll('amp-ad'); let ads = 'amp-ad';
hideDOMElement(...amp_ads); hideDOMStyle(ads);
} }
let urban_ad_sign = document.querySelectorAll('.urban-ad-sign'); let urban_ad_sign = document.querySelectorAll('.urban-ad-sign');
removeDOMElement(...urban_ad_sign); removeDOMElement(...urban_ad_sign);
@ -996,9 +996,8 @@ else if (matchDomain('faz.net')) {
console.log(err); console.log(err);
} }
} }
let lay_paysocial = document.querySelector('div.lay-PaySocial'); let ads = 'div.lay-PaySocial, div.iqadtile_wrapper';
let ads = document.querySelectorAll('div.iqadtile_wrapper'); hideDOMStyle(ads);
hideDOMElement(lay_paysocial, ...ads);
} }
} }
@ -1019,8 +1018,8 @@ else if (matchDomain('freiepresse.de')) {
} }
getGoogleWebcache(url, 'div.article-teaser', '', 'article'); getGoogleWebcache(url, 'div.article-teaser', '', 'article');
} }
let ads = document.querySelectorAll('div.rgt-content'); let ads = 'div.rgt-content';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('freitag.de')) { else if (matchDomain('freitag.de')) {
@ -1177,8 +1176,8 @@ else if (matchDomain(['ksta.de', 'rundschau-online.de'])) {
} }
} }
}, 2000); }, 2000);
let banners = document.querySelectorAll('div.dm-slot'); let banners = 'div.dm-slot';
hideDOMElement(...banners); hideDOMStyle(banners);
} }
else if (matchDomain('kurier.at')) { else if (matchDomain('kurier.at')) {
@ -1191,8 +1190,8 @@ else if (matchDomain('kurier.at')) {
div_hidden.removeAttribute('style'); div_hidden.removeAttribute('style');
} }
} }
let banners = document.querySelectorAll('div[data-outbrain]'); let ads = 'div[data-outbrain]';
hideDOMElement(...banners); hideDOMStyle(ads);
} }
else if (matchDomain('motorradonline.de')) { else if (matchDomain('motorradonline.de')) {
@ -1261,16 +1260,16 @@ else if (matchDomain('profil.at')) {
if (paywall) { if (paywall) {
paywall.removeAttribute('class'); paywall.removeAttribute('class');
paywall.removeAttribute('style'); paywall.removeAttribute('style');
let fade = document.querySelector('div#cfs-paywall-container'); let fade = 'div#cfs-paywall-container';
hideDOMElement(fade); hideDOMStyle(fade);
} }
let overlay = document.querySelector('div.consentOverlay'); let overlay = 'div.consentOverlay';
hideDOMElement(overlay); hideDOMStyle(overlay, 2);
} }
else if (matchDomain('rhein-zeitung.de')) { else if (matchDomain('rhein-zeitung.de')) {
let ads = document.querySelectorAll('div[class$="board"]'); let ads = 'div[class$="board"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('schwaebische.de')) { else if (matchDomain('schwaebische.de')) {
@ -1285,10 +1284,8 @@ else if (matchDomain('schwaebische.de')) {
body.removeAttribute('style'); body.removeAttribute('style');
waitDOMAttribute('body', 'body', 'style', node => node.removeAttribute('style'), true); waitDOMAttribute('body', 'body', 'style', node => node.removeAttribute('style'), true);
} }
window.setTimeout(function () { let ads = 'div.fp-ad-placeholder';
let ads = document.querySelectorAll('div.fp-ad-placeholder'); hideDOMStyle(ads);
hideDOMElement(...ads);
}, 1000);
} }
else if (matchDomain('schweizermonat.ch')) { else if (matchDomain('schweizermonat.ch')) {
@ -1333,8 +1330,8 @@ else if (matchDomain('springermedizin.de')) {
} }
else if (matchDomain(['stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'schwarzwaelder-bote.de']) || matchDomain(de_mhs_custom_domains)) { else if (matchDomain(['stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'schwarzwaelder-bote.de']) || matchDomain(de_mhs_custom_domains)) {
let banners = document.querySelectorAll('div.mod-paywall, div.Billboard'); let banners = 'div.mod-paywall, div.Billboard';
hideDOMElement(...banners); hideDOMStyle(banners);
} }
else if (matchDomain('sueddeutsche.de')) { else if (matchDomain('sueddeutsche.de')) {
@ -1369,11 +1366,47 @@ else if (matchDomain('tagesspiegel.de')) {
} }
else if (matchDomain('tt.com')) { else if (matchDomain('tt.com')) {
let div_hidden = document.querySelectorAll('.exclusive-elem'); let paywall = document.querySelector('div#piano-logwall');
for (let elem of div_hidden) if (paywall && dompurify_loaded) {
elem.classList.remove('exclusive-elem'); removeDOMElement(paywall);
let ads = document.querySelectorAll('div[class*="ads-container"], div.adblock-warning'); let article = document.querySelector('div[data-io-article-url]');
hideDOMElement(...ads); if (article) {
let json_script = document.querySelector('script#tt-com-www-state');
if (json_script) {
try {
let json_articles = JSON.parse(json_script.text).TT_COM_WWW_GLOBAL_STATE.articles;
let json_article_id = json_articles.ids[0];
if (json_article_id && !window.location.pathname.includes(json_article_id))
refreshCurrentTab();
let parser = new DOMParser();
let pars = json_articles.entities[json_article_id].articleData.article.elements;
for (let par of pars) {
let elem;
if (['body', 'subheadline1'].includes(par.type)) {
if (par.content) {
let doc = parser.parseFromString('<p>' + DOMPurify.sanitize(par.content, dompurify_options) + '</p>', 'text/html');
elem = doc.querySelector('p');
if (par.type === 'subheadline1')
elem.style = 'font-weight: bold;';
}
} else if (par.type.match(/^x-im\//)) {
if (par.url) {
elem = document.createElement('a');
elem.href = elem.innerText = par.url;
elem.target = '_blank';
}
}
if (elem)
article.appendChild(elem);
}
} catch (err) {
console.log(err);
}
}
}
}
let ads = 'div[class*="ads-container"], div.adblock-warning';
hideDOMStyle(ads);
} }
else if (matchDomain('vn.at')) { else if (matchDomain('vn.at')) {
@ -1435,8 +1468,8 @@ else if (matchDomain('vol.at')) {
} }
} }
}, 500); }, 500);
let banners = document.querySelectorAll('div[id^="rm-adslot-"], div[id^="piano_rec"]'); let ads = 'div[id^="rm-adslot-"], div[id^="piano_rec"]';
hideDOMElement(...banners); hideDOMStyle(ads);
} else } else
ampToHtml(); ampToHtml();
} }
@ -1444,20 +1477,20 @@ else if (matchDomain('vol.at')) {
else if (matchDomain('welt.de')) { else if (matchDomain('welt.de')) {
let url = window.location.href; let url = window.location.href;
getArchive(url, 'div.contains_walled_content', '', 'article'); getArchive(url, 'div.contains_walled_content', '', 'article');
let ads = document.querySelectorAll('div[data-component="Outbrain"], div[class*="c-ad"]'); let ads = 'div[data-component="Outbrain"], div[class*="c-ad"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('weser-kurier.de')) { else if (matchDomain('weser-kurier.de')) {
let ads = document.querySelectorAll('div.ad-wrapper, div.anyad'); let ads = 'div.ad-wrapper, div.anyad';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('wiwo.de')) { else if (matchDomain('wiwo.de')) {
let url = window.location.href; let url = window.location.href;
getArchive(url, 'div.o-paywall', '', 'article'); getArchive(url, 'div.o-paywall', '', 'article');
let banner = document.querySelector('div.c-overscroller'); let banner = 'div.c-overscroller';
hideDOMElement(banner); hideDOMStyle(banner);
} }
else if (matchDomain('zeit.de')) { else if (matchDomain('zeit.de')) {
@ -1470,8 +1503,8 @@ else if (matchDomain('zeit.de')) {
else if (matchDomain(de_funke_medien_domains)) { else if (matchDomain(de_funke_medien_domains)) {
let url = window.location.href; let url = window.location.href;
getArchive(url, 'div#paywall-container', '', 'article'); getArchive(url, 'div#paywall-container', '', 'article');
let ads = document.querySelectorAll('aside.ad-slot-wrapper'); let ads = 'aside.ad-slot-wrapper';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain(de_lv_domains)) { else if (matchDomain(de_lv_domains)) {
@ -1485,23 +1518,23 @@ else if (matchDomain(de_lv_domains)) {
div_hidden.removeAttribute('style'); div_hidden.removeAttribute('style');
} }
} }
let ads = document.querySelectorAll('div.adZone'); let ads = 'div.adZone';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain(de_madsack_domains) || document.querySelector('head > link[href*=".rndtech.de/"]')) { else if (matchDomain(de_madsack_domains) || document.querySelector('head > link[href*=".rndtech.de/"]')) {
// plus code in contentScript_once_var.js (timing) // plus code in contentScript_once_var.js (timing)
if (!window.location.search.startsWith('?outputType=valid_amp')) { if (!window.location.search.startsWith('?outputType=valid_amp')) {
let ads = document.querySelectorAll('div[class^="Adstyled__AdWrapper"]'); let ads = 'div[class^="Adstyled__AdWrapper"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} else { } else {
ampToHtml(); ampToHtml();
} }
} }
else if (matchDomain(de_motor_presse_domains)) { else if (matchDomain(de_motor_presse_domains)) {
let ads = document.querySelectorAll('div#ads-container, div.va-sponsored, div.mps_markAd'); let ads = 'div#ads-container, div.va-sponsored, div.mps_markAd';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('ruhrnachrichten.de') || document.querySelector('a.mgw-logo[href^="https://mgw.de"]')) { else if (matchDomain('ruhrnachrichten.de') || document.querySelector('a.mgw-logo[href^="https://mgw.de"]')) {
@ -1547,8 +1580,8 @@ if (matchDomain('etc.se')) {
let footer = document.querySelector('section > footer'); let footer = document.querySelector('section > footer');
removeDOMElement(footer.parentNode); removeDOMElement(footer.parentNode);
} }
let ads = document.querySelectorAll('div[class$="-ad"]'); let ads = 'div[class$="-ad"]';
hideDOMElement(...ads); hideDOMStyle(ads);
let video_iframes = document.querySelectorAll('div.embed-block > iframe[width][height]'); let video_iframes = document.querySelectorAll('div.embed-block > iframe[width][height]');
for (let elem of video_iframes) { for (let elem of video_iframes) {
if (elem.width > 1000) { if (elem.width > 1000) {
@ -1573,8 +1606,8 @@ else
if (matchDomain(['ara.cat', 'arabalears.cat'])) { if (matchDomain(['ara.cat', 'arabalears.cat'])) {
if (!window.location.pathname.endsWith('.amp.html')) { if (!window.location.pathname.endsWith('.amp.html')) {
amp_redirect('div.paywall'); amp_redirect('div.paywall');
let ads = document.querySelectorAll('div.advertising'); let ads = 'div.advertising';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -1593,8 +1626,8 @@ else if (matchDomain('elconfidencial.com')) {
let premium = document.querySelector('div.newsType__content--closed'); let premium = document.querySelector('div.newsType__content--closed');
if (premium) if (premium)
premium.classList.remove('newsType__content--closed'); premium.classList.remove('newsType__content--closed');
let ads = document.querySelectorAll('div[id^="mega_"], div[id^="roba_"]'); let ads = 'div[id^="mega_"], div[id^="roba_"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('eldiario.es')) { else if (matchDomain('eldiario.es')) {
@ -1602,8 +1635,8 @@ else if (matchDomain('eldiario.es')) {
amp_unhide_access_hide('^="access"', '="NOT access"'); amp_unhide_access_hide('^="access"', '="NOT access"');
} else { } else {
amp_redirect('aside.paywall'); amp_redirect('aside.paywall');
let ads = document.querySelectorAll('div.edi-advertising, div.header-ad'); let ads = 'div.edi-advertising, div.header-ad';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -1613,8 +1646,8 @@ else if (matchDomain('elespanol.com')) {
} else { } else {
let paywall = document.querySelector('div.full-suscriptor-container'); let paywall = document.querySelector('div.full-suscriptor-container');
removeDOMElement(paywall); removeDOMElement(paywall);
let ads = document.querySelectorAll('[id*="superior"], [class*="adv"]'); let ads = '[id*="superior"], [class*="adv"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -1650,8 +1683,6 @@ else if (matchDomain('elpais.com')) {
} else { } else {
let paywall = document.querySelector('div#ctn_freemium_article, div#ctn_premium_article'); let paywall = document.querySelector('div#ctn_freemium_article, div#ctn_premium_article');
removeDOMElement(paywall); removeDOMElement(paywall);
let ads = document.querySelectorAll('div.ad');
hideDOMElement(...ads);
} }
} }
@ -1697,8 +1728,8 @@ else if (matchDomain(es_epiberica_domains) || matchDomain(es_epiberica_custom_do
let paywall = document.querySelector('div.ft-helper-closenews'); let paywall = document.querySelector('div.ft-helper-closenews');
if (paywall) if (paywall)
paywall.removeAttribute('class'); paywall.removeAttribute('class');
let ads = document.querySelectorAll('div.commercial-up-full__wrapper, aside.ft-ad, div[class^="_mo_recs"]'); let ads = 'div.commercial-up-full__wrapper, aside.ft-ad, div[class^="_mo_recs"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -1801,16 +1832,15 @@ else if (matchDomain('expresso.pt')) {
} }
else if (matchDomain(['lavanguardia.com', 'mundodeportivo.com'])) { else if (matchDomain(['lavanguardia.com', 'mundodeportivo.com'])) {
let ads = document.querySelectorAll('span.content-ad, span.hidden-ad, span.ad-unit, div.ad-div'); let ads = 'span.content-ad, span.hidden-ad, span.ad-unit, div.ad-div';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('observador.pt')) { else if (matchDomain('observador.pt')) {
let ads = document.querySelectorAll('div.obs-ad-placeholder'); let ads = 'div.obs-ad-placeholder';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('politicaexterior.com')) { else if (matchDomain('politicaexterior.com')) {
let paywall = document.querySelector('div[class^="paywall-"]'); let paywall = document.querySelector('div[class^="paywall-"]');
if (paywall) { if (paywall) {
@ -1849,8 +1879,8 @@ else if (matchDomain('atlantico.fr')) {
} }
else if (matchDomain('autoplus.fr')) { else if (matchDomain('autoplus.fr')) {
let ads = document.querySelectorAll('div.placeholder-pub_dfp'); let ads = 'div.placeholder-pub_dfp';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('capital.fr')) { else if (matchDomain('capital.fr')) {
@ -1876,8 +1906,6 @@ else if (matchDomain(['challenges.fr', 'sciencesetavenir.fr'])) {
if (window.location.pathname.endsWith('.amp')) { if (window.location.pathname.endsWith('.amp')) {
amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"'); amp_unhide_access_hide('="paywall.access OR cha.access"', '="NOT (paywall.access OR cha.access)"');
} else { } else {
let amorce = document.querySelector('div.amorce.manual');
hideDOMElement(amorce);
let content = document.querySelectorAll('.user-paying-content'); let content = document.querySelectorAll('.user-paying-content');
for (let elem of content) { for (let elem of content) {
elem.classList.remove('user-paying-content'); elem.classList.remove('user-paying-content');
@ -1885,8 +1913,9 @@ else if (matchDomain(['challenges.fr', 'sciencesetavenir.fr'])) {
} }
let paywall = document.querySelector('.temp-paywall'); let paywall = document.querySelector('.temp-paywall');
removeDOMElement(paywall); removeDOMElement(paywall);
let ads = document.querySelectorAll('div[class^="pub-container"], div[id^="moneytag-"]'); let amorce = 'div.amorce.manual';
hideDOMElement(...ads); let ads = 'div[class^="pub-container"], div[id^="moneytag-"]';
hideDOMStyle(amorce + ', ' + ads);
} }
} }
@ -1915,8 +1944,8 @@ else if (matchDomain('elle.fr')) {
let subscription_bar = document.querySelector('.tc-subscription-bar'); let subscription_bar = document.querySelector('.tc-subscription-bar');
removeDOMElement(subscription_bar); removeDOMElement(subscription_bar);
} }
let ads = document.querySelectorAll('div[class*="--placeholder"]'); let ads = 'div[class*="--placeholder"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain(fr_groupe_la_depeche_domains)) { else if (matchDomain(fr_groupe_la_depeche_domains)) {
@ -1965,8 +1994,8 @@ else if (matchDomain(fr_groupe_nice_matin_domains)) {
if (paywall) if (paywall)
paywall.removeAttribute('id'); paywall.removeAttribute('id');
} }
let ads = document.querySelectorAll('div[class^="ad-slot-"], div#poool-widget-content, div[class*="Rhoo"]'); let ads = 'div[class^="ad-slot-"], div#poool-widget-content, div[class*="Rhoo"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('humanite.fr')) { else if (matchDomain('humanite.fr')) {
@ -1990,12 +2019,12 @@ else if (matchDomain('journaldunet.com')) {
else if (matchDomain('la-croix.com')) { else if (matchDomain('la-croix.com')) {
let url = window.location.href; let url = window.location.href;
if (!url.includes('la-croix.com/amp/')) { if (!url.includes('la-croix.com/amp/')) {
let ads = document.querySelectorAll('div[class^="ads-wrapper-"], div#poool-widget'); let ads = 'div[class^="ads-wrapper-"], div#poool-widget';
hideDOMElement(...ads); hideDOMStyle(ads);
} else { } else {
let paywall_block = document.querySelector('#paywall_block'); let paywall_block = '#paywall_block';
let amp_ads = document.querySelectorAll('amp-ad, amp-embed'); let ads = 'amp-ad, amp-embed';
hideDOMElement(paywall_block, ...amp_ads); hideDOMStyle(paywall_block + ', ' + ads);
} }
} }
@ -2043,10 +2072,9 @@ else if (matchDomain('legrandcontinent.eu')) {
} }
else if (matchDomain(['lejdd.fr', 'parismatch.com', 'public.fr'])) { else if (matchDomain(['lejdd.fr', 'parismatch.com', 'public.fr'])) {
let poool_banners = document.querySelectorAll('#poool-container, #poool-widget-content, #poool-widget'); let banners = '#poool-container, #poool-widget-content, #poool-widget, .forbidden';
let forbidden = document.querySelector('.forbidden'); let ads = 'div[class^="lmn-"], div.premium-hidden, div.p-aside--placeholder';
let ads = document.querySelectorAll('div[class^="lmn-"], div.premium-hidden, div.p-aside--placeholder'); hideDOMStyle(banners + ', ' + ads);
hideDOMElement(...poool_banners, forbidden, ...ads);
let bottom_hide = document.querySelector('.cnt[data-poool-mode="hide"]'); let bottom_hide = document.querySelector('.cnt[data-poool-mode="hide"]');
if (bottom_hide) { if (bottom_hide) {
bottom_hide.removeAttribute('data-poool-mode'); bottom_hide.removeAttribute('data-poool-mode');
@ -2086,8 +2114,8 @@ else if (matchDomain('lemonde.fr')) {
else if (matchDomain('lemoniteur.fr')) { else if (matchDomain('lemoniteur.fr')) {
let url = window.location.href; let url = window.location.href;
getGoogleWebcache(url, 'div.blocPasEncoreAbonne', '', 'div.articleContent'); getGoogleWebcache(url, 'div.blocPasEncoreAbonne', '', 'div.articleContent');
let ads = document.querySelectorAll('div[data-ad-id], div.ad2hsBox'); let ads = 'div[data-ad-id], div.ad2hsBox';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('leparisien.fr')) { else if (matchDomain('leparisien.fr')) {
@ -2139,10 +2167,8 @@ else if (matchDomain('lepoint.fr')) {
removeDOMElement(...paywall); removeDOMElement(...paywall);
insert_script(lepoint_main); insert_script(lepoint_main);
} }
window.setTimeout(function () { let ads = 'div[id*="WRAP_"], div#StickyPaywall, div#paywall-sticky, div.slotpub, div.sticky-block';
let ads = document.querySelectorAll('div[id*="WRAP_"], div#StickyPaywall, div#paywall-sticky, div.slotpub, div.sticky-block'); hideDOMStyle(ads);
hideDOMElement(...ads);
}, 1000);
} else { } else {
let url = window.location.href; let url = window.location.href;
getArchive(url, 'div.accnt-cmp', '', 'article'); getArchive(url, 'div.accnt-cmp', '', 'article');
@ -2197,8 +2223,8 @@ else if (matchDomain('lesechos.fr')) {
} }
} }
} }
let ads = document.querySelectorAll('[class*="jzxvkd"]'); let ads = '[class*="jzxvkd"]';
hideDOMElement(...ads); hideDOMStyle(ads);
}, 500); }, 500);
} }
} }
@ -2217,13 +2243,13 @@ else if (matchDomain('letelegramme.fr')) {
let paywall = document.querySelectorAll('div.tlg-paywalled'); let paywall = document.querySelectorAll('div.tlg-paywalled');
for (let elem of paywall) for (let elem of paywall)
elem.classList.remove('tlg-paywalled'); elem.classList.remove('tlg-paywalled');
let ads = document.querySelectorAll('div[id^="pub_"]'); let ads = 'div[id^="pub_"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('lexpress.fr')) { else if (matchDomain('lexpress.fr')) {
let ads = document.querySelectorAll('div[class^="block_pub"], div.bottom-bar-full, div.tead, div.ban-bottom, div.placeholder--ban-atf'); let ads = 'div[class^="block_pub"], div.bottom-bar-full, div.tead, div.ban-bottom, div.placeholder--ban-atf';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('loeildelaphotographie.com')) { else if (matchDomain('loeildelaphotographie.com')) {
@ -2259,8 +2285,8 @@ else if (matchDomain('marianne.net')) {
article_source.removeAttribute('data-content-src'); article_source.removeAttribute('data-content-src');
} }
} }
let ads = document.querySelectorAll('div[class*="--placeholder"]'); let ads = 'div[class*="--placeholder"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('nouvelobs.com')) { else if (matchDomain('nouvelobs.com')) {
@ -2269,8 +2295,8 @@ else if (matchDomain('nouvelobs.com')) {
let fade = document.querySelector('div.paywall--gradient-top'); let fade = document.querySelector('div.paywall--gradient-top');
if (fade) if (fade)
fade.classList.remove('paywall--gradient-top'); fade.classList.remove('paywall--gradient-top');
let ads = document.querySelectorAll('section.slice--ad'); let ads = 'section.slice--ad';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('pourleco.com')) { else if (matchDomain('pourleco.com')) {
@ -2310,11 +2336,9 @@ else if (matchDomain(['sudouest.fr', 'charentelibre.fr', 'larepubliquedespyrenee
for (let elem of visible_premium) for (let elem of visible_premium)
elem.classList.remove('visible-premium'); elem.classList.remove('visible-premium');
} }
window.setTimeout(function () { let footer_premium = '.footer-premium';
let footer_premium = document.querySelector('.footer-premium'); let ads = 'div.pub, div.ph-easy-subscription';
let ads = document.querySelectorAll('div.pub, div.ph-easy-subscription'); hideDOMStyle(footer_premium + ', ' + ads);
hideDOMElement(footer_premium, ...ads);
}, 500);
} }
else if (matchDomain('lamontagne.fr') || document.querySelector('head > meta[name="google-play-app"][content^="app-id=com.centrefrance"]')) {// Groupe Centre France else if (matchDomain('lamontagne.fr') || document.querySelector('head > meta[name="google-play-app"][content^="app-id=com.centrefrance"]')) {// Groupe Centre France
@ -2358,11 +2382,11 @@ if (matchDomain('corriere.it')) {
else if (matchDomain('corrieredellosport.it')) { else if (matchDomain('corrieredellosport.it')) {
if (!window.location.pathname.startsWith('/amp/')) { if (!window.location.pathname.startsWith('/amp/')) {
amp_redirect('div[class^="MainTextTruncated_paragraph__"]'); amp_redirect('div[class^="MainTextTruncated_paragraph__"]');
let ads = document.querySelectorAll('div[class^="AdUnit_placeholder"]'); let ads = 'div[class^="AdUnit_placeholder"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} else { } else {
let ads = document.querySelectorAll('amp-ad, amp-embed'); let ads = 'amp-ad, amp-embed';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -2435,8 +2459,8 @@ else if (matchDomain('ilfoglio.it')) {
amp_unhide_subscr_section('amp-ad, [class^="adv-"], div#gmpVideoContainer'); amp_unhide_subscr_section('amp-ad, [class^="adv-"], div#gmpVideoContainer');
} else { } else {
amp_redirect('div.paywall'); amp_redirect('div.paywall');
let ads = document.querySelectorAll('.advertisement'); let ads = '.advertisement';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -2503,8 +2527,8 @@ else if (matchDomain(it_ilmessaggero_domains)) {
let noscroll = document.querySelector('html[style]'); let noscroll = document.querySelector('html[style]');
if (noscroll) if (noscroll)
noscroll.removeAttribute('style'); noscroll.removeAttribute('style');
let ads = document.querySelectorAll('div.adv_banner, div.inread_adv, div#outbrain'); let ads = 'div.adv_banner, div.inread_adv, div#outbrain';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -2513,8 +2537,8 @@ else if (matchDomain(it_quotidiano_domains)) {
amp_unhide_access_hide('="c.customGranted"', '="NOT c.customGranted"', 'amp-ad, amp-embed, amp-fx-flying-carpet, .watermark-adv, .amp__watermark'); amp_unhide_access_hide('="c.customGranted"', '="NOT c.customGranted"', 'amp-ad, amp-embed, amp-fx-flying-carpet, .watermark-adv, .amp__watermark');
} else { } else {
amp_redirect('div[data-testid="paywall-container"], div[class^="Paywall_paywall_"]', '', window.location.pathname + '/amp'); amp_redirect('div[data-testid="paywall-container"], div[class^="Paywall_paywall_"]', '', window.location.pathname + '/amp');
let ads = document.querySelectorAll('div[id^="div-gpt-ad"]'); let ads = 'div[id^="div-gpt-ad"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -2567,8 +2591,8 @@ else if (matchDomain(it_gedi_domains)) {
} else } else
ampToHtml(); ampToHtml();
} }
let ads = document.querySelectorAll('div[id^="adv"]'); let ads = 'div[id^="adv"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('tuttosport.com')) { else if (matchDomain('tuttosport.com')) {
@ -2596,11 +2620,11 @@ else if (matchDomain('tuttosport.com')) {
} }
} }
} }
let ads = document.querySelectorAll('div[class^="AdUnit_"]'); let ads = 'div[class^="AdUnit_"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} else { } else {
let ads = document.querySelectorAll('amp-ad, amp-embed'); let ads = 'amp-ad, amp-embed';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -2619,8 +2643,8 @@ if (matchDomain(be_groupe_ipm_domains)) {
div_hidden.classList.remove('is-hidden'); div_hidden.classList.remove('is-hidden');
}, 1000); }, 1000);
} }
let ads = document.querySelectorAll('div.ap-AdContainer, div.ap-Outbrain'); let ads = 'div.ap-AdContainer, div.ap-Outbrain';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain(be_mediahuis_domains.concat(['limburger.nl']))) { else if (matchDomain(be_mediahuis_domains.concat(['limburger.nl']))) {
@ -2641,8 +2665,8 @@ else if (matchDomain(be_mediahuis_domains.concat(['limburger.nl']))) {
let button_close = document.querySelector('span[data-testid="button-close"]'); let button_close = document.querySelector('span[data-testid="button-close"]');
if (button_close) if (button_close)
button_close.click(); button_close.click();
let banners = document.querySelectorAll('div.paywall--titel'); let banners = 'div.paywall--titel';
hideDOMElement(...banners); hideDOMStyle(banners);
}, 1500); }, 1500);
} }
@ -2762,13 +2786,13 @@ else if (matchDomain(be_roularta_domains)) {
} }
} }
} }
let ads = document.querySelectorAll('div.rmgAd, div.c-header__ad'); let ads = 'div.rmgAd, div.c-header__ad';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('head > link[href*=".ndcmediagroep.nl/"]')) { else if (matchDomain(['lc.nl', 'dvhn.nl']) || document.querySelector('head > link[href*=".ndcmediagroep.nl/"]')) {
let ads = document.querySelectorAll('div.top__ad, div.marketingblock-article'); let ads = 'div.top__ad, div.marketingblock-article';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain(nl_dpg_adr_domains.concat(['hln.be']))) { else if (matchDomain(nl_dpg_adr_domains.concat(['hln.be']))) {
@ -2782,9 +2806,8 @@ else if (matchDomain(nl_dpg_adr_domains.concat(['hln.be']))) {
} }
else if (matchDomain(nl_dpg_media_domains)) { else if (matchDomain(nl_dpg_media_domains)) {
let banners = document.querySelectorAll('div[data-temptation-position^="PAGE_"], div[class^="ad--"], div[id^="article_paragraph_"]'); let banners = 'aside[data-temptation-position^="ARTICLE_"], div[data-temptation-position^="PAGE_"], div[class^="ad--"], div[id^="article_paragraph_"]';
let paywall = document.querySelectorAll('aside[data-temptation-position^="ARTICLE_"]'); hideDOMStyle(banners);
removeDOMElement(...banners, ...paywall);
} }
else if (matchDomain('nrc.nl')) { else if (matchDomain('nrc.nl')) {
@ -3381,17 +3404,17 @@ if (matchDomain('abril.com.br')) {
if (window.location.pathname.endsWith('/amp/')) { if (window.location.pathname.endsWith('/amp/')) {
let paywall = document.querySelector('.piano-modal'); let paywall = document.querySelector('.piano-modal');
removeDOMElement(paywall); removeDOMElement(paywall);
let amp_ads = document.querySelectorAll('amp-ad, amp-embed'); let ads = 'amp-ad, amp-embed';
hideDOMElement(...amp_ads); hideDOMStyle(ads);
} else { } else {
let ads = document.querySelectorAll('div.ads, div[class^="ads-"], div.MGID'); let ads = 'div.ads, div[class^="ads-"], div.MGID';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
else if (matchDomain(ar_grupo_clarin_domains)) { else if (matchDomain(ar_grupo_clarin_domains)) {
let ads = document.querySelectorAll('div.ad-slot, div.box-adv, div.wrapperblock, div.banner, div[id^="div-gpt-ad-flotante"]'); let ads = 'div.ad-slot, div.box-adv, div.wrapperblock, div.banner, div[id^="div-gpt-ad-flotante"]';
hideDOMElement(...ads); hideDOMStyle(ads);
let ads_inline = document.querySelectorAll('div > div.sticky, div > div[id^="div-gpt-ad-inread"], div > div[id^="div-gpt-ad-caja"], div > div[id^="div-gpt-ad-horizontal"]'); let ads_inline = document.querySelectorAll('div > div.sticky, div > div[id^="div-gpt-ad-inread"], div > div[id^="div-gpt-ad-caja"], div > div[id^="div-gpt-ad-horizontal"]');
for (let ad of ads_inline) for (let ad of ads_inline)
hideDOMElement(ad.parentNode); hideDOMElement(ad.parentNode);
@ -3440,8 +3463,8 @@ else if (matchDomain('cartacapital.com.br')) {
removeDOMElement(...freemium); removeDOMElement(...freemium);
} }
} }
let ads = document.querySelectorAll('div.div_ros_topo'); let ads = 'div.div_ros_topo';
hideDOMElement(...ads); hideDOMStyle(ads);
} else } else
ampToHtml(); ampToHtml();
} }
@ -3460,8 +3483,8 @@ else if (matchDomain(pe_grupo_elcomercio_domains)) {
if (fade) if (fade)
fade.classList.remove('story-contents--fade'); fade.classList.remove('story-contents--fade');
} }
let ads = document.querySelectorAll('div[class^="content_gpt"]'); let ads = 'div[class^="content_gpt"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('elespectador.com')) { else if (matchDomain('elespectador.com')) {
@ -3535,8 +3558,8 @@ else if (matchDomain('eltribuno.com')) {
else if (matchDomain('em.com.br')) { else if (matchDomain('em.com.br')) {
if (!window.location.pathname.endsWith('/amp.html')) { if (!window.location.pathname.endsWith('/amp.html')) {
amp_redirect('.news-blocked-content'); amp_redirect('.news-blocked-content');
let ads = document.querySelectorAll('div.ads, div.containerads'); let ads = 'div.ads, div.containerads';
hideDOMElement(...ads); hideDOMStyle(ads);
} else { } else {
amp_unhide_subscr_section('amp-ad, amp-embed, amp-fx-flying-carpet'); amp_unhide_subscr_section('amp-ad, amp-embed, amp-fx-flying-carpet');
let compress_text = document.querySelector('div.compress-text'); let compress_text = document.querySelector('div.compress-text');
@ -3551,14 +3574,15 @@ else if (matchDomain('estadao.com.br')) {
} else { } else {
let paywall = document.getElementById('paywall-wrapper-iframe-estadao'); let paywall = document.getElementById('paywall-wrapper-iframe-estadao');
removeDOMElement(paywall); removeDOMElement(paywall);
let ads = document.querySelectorAll('div[class^="styles__Container-sc-"]'); let ads = 'div[class^="styles__Container-sc-"]';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
else if (matchDomain('exame.com')) { else if (matchDomain('exame.com')) {
let ads = document.querySelectorAll('div[id^="ads_"]'); window.localStorage.removeItem('pywllcount');
hideDOMElement(...ads); let ads = 'div[id^="ads_"]';
hideDOMStyle(ads);
} }
else if (matchDomain('folha.uol.com.br')) { else if (matchDomain('folha.uol.com.br')) {
@ -3586,16 +3610,16 @@ else if (matchDomain('gauchazh.clicrbs.com.br')) {
refreshCurrentTab(); refreshCurrentTab();
} }
}, 2000); }, 2000);
let ads = document.querySelectorAll('div.ad-banner'); let ads = 'div.ad-banner';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('gazetadopovo.com.br')) { else if (matchDomain('gazetadopovo.com.br')) {
if (window.location.pathname.endsWith('/amp/')) { if (window.location.pathname.endsWith('/amp/')) {
amp_unhide_subscr_section('div.ads-amp, amp-embed, div.tpl-wrapper', false); amp_unhide_subscr_section('div.ads-amp, amp-embed, div.tpl-wrapper', false);
} else { } else {
let ads = document.querySelectorAll('div.c-ads'); let ads = 'div.c-ads';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -3610,8 +3634,8 @@ else if (matchDomain('globo.com')) {
} else if (window.location.pathname.includes('/amp/')) } else if (window.location.pathname.includes('/amp/'))
ampToHtml(); ampToHtml();
if (!window.location.pathname.includes('/amp/')) { if (!window.location.pathname.includes('/amp/')) {
let ads = document.querySelectorAll('div[id^="ad-container"], div.content-ads, div[class^="block__advertising"], div#pub-in-text-wrapper'); let ads = 'div[id^="ad-container"], div.content-ads, div[class^="block__advertising"], div#pub-in-text-wrapper';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
} }
@ -3626,8 +3650,8 @@ else if (matchDomain('ladiaria.com.uy')) {
} }
else if (matchDomain('lanacion.com.ar')) { else if (matchDomain('lanacion.com.ar')) {
let ads = document.querySelectorAll('div.mod-banner'); let ads = 'div.mod-banner';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('latercera.com')) { else if (matchDomain('latercera.com')) {
@ -3980,11 +4004,11 @@ else if (matchDomain('cnbc.com')) {
} }
else if (matchDomain('cnn.com')) { else if (matchDomain('cnn.com')) {
for (let item in window.localStorage) let regwall_keys = Object.keys(window.localStorage).filter(x => x.match(/reg_?wall/i));
if (item.match(/reg_?wall/i)) for (let item of regwall_keys)
window.localStorage.removeItem(item); window.localStorage.removeItem(item);
let ads = document.querySelectorAll('div[class^="ad-slot-"], div.container__ads'); let ads = 'div[class^="ad-slot-"], div.container__ads';
hideDOMElement(...ads); hideDOMStyle(ads);
} }
else if (matchDomain('columbian.com')) { else if (matchDomain('columbian.com')) {
@ -6752,8 +6776,7 @@ function amp_unhide_subscr_section(amp_ads_sel = 'amp-ad', replace_iframes = tru
let subscr_section = document.querySelectorAll('[subscriptions-section="content"]'); let subscr_section = document.querySelectorAll('[subscriptions-section="content"]');
for (let elem of subscr_section) for (let elem of subscr_section)
elem.removeAttribute('subscriptions-section'); elem.removeAttribute('subscriptions-section');
let amp_ads = document.querySelectorAll(amp_ads_sel); hideDOMStyle(amp_ads_sel, 5);
hideDOMElement(...amp_ads);
if (replace_iframes) if (replace_iframes)
amp_iframes_replace(amp_iframe_link, source); amp_iframes_replace(amp_iframe_link, source);
} }
@ -6766,8 +6789,7 @@ function amp_unhide_access_hide(amp_access = '', amp_access_not = '', amp_ads_se
let amp_access_not_dom = document.querySelectorAll('[amp-access' + amp_access_not + ']'); let amp_access_not_dom = document.querySelectorAll('[amp-access' + amp_access_not + ']');
removeDOMElement(...amp_access_not_dom); removeDOMElement(...amp_access_not_dom);
} }
let amp_ads = document.querySelectorAll(amp_ads_sel); hideDOMStyle(amp_ads_sel, 6);
hideDOMElement(...amp_ads);
if (replace_iframes) if (replace_iframes)
amp_iframes_replace(amp_iframe_link, source); amp_iframes_replace(amp_iframe_link, source);
} }

View file

@ -2784,7 +2784,8 @@ var defaultSites = {
"Tiroler Tageszeitung": { "Tiroler Tageszeitung": {
domain: "tt.com", domain: "tt.com",
allow_cookies: 1, allow_cookies: 1,
block_regex: /\.piano\.io\/xbuilder\/experience\/execute/ block_regex: /\.piano\.io\/xbuilder\/experience\/execute/,
cs_dompurify: 1
}, },
"Tribune Publishing Company": { "Tribune Publishing Company": {
domain: "###_usa_tribune", domain: "###_usa_tribune",