@ -43,7 +43,7 @@ var usa_outside_mag_domains = ["backpacker.com", "betamtb.com", "betternutrition
var usa _tribune _domains = [ 'baltimoresun.com' , 'chicagotribune.com' , 'courant.com' , 'dailypress.com' , 'mcall.com' , 'nydailynews.com' , 'orlandosentinel.com' , 'pilotonline.com' , 'sun-sentinel.com' ] ;
// clean local storage of sites (with an exemption for hold-list)
var arr _localstorage _hold = [ 'aachener-nachrichten.de' , 'aachener-zeitung.de' , 'allgaeuer-zeitung.de' , 'augsburger-allgemeine.de' , 'barrons.com' , 'businessoffashion.com' , 'businesspost.ie' , 'challenges.fr' , 'charliehebdo.fr' , 'cmjornal.pt' , 'corriere.it' , 'corrieredellosport.it' , 'cyclingtips.com' , 'dvhn.nl' , 'economictimes.com' , 'eldiario.es' , 'elespanol.com' , 'elle.fr' , 'elpais.com' , 'elperiodico.com' , 'enotes.com' , 'estadao.com.br' , 'forbes.com' , 'fortune.com' , 'freiepresse.de' , 'ilfoglio.it' , 'inc42.com' , 'indianexpress.com' , 'ksta.de' , 'kurier.at' , 'lanouvellerepublique.fr' , 'latimes.com' , 'lc.nl' , 'lesechos.fr' , 'livemint.com' , 'mid-day.com' , 'nationalreview.com' , 'nknews.org' , 'nw.de' , 'nytimes.com' , 'nzherald.co.nz' , 'r undschau-online.de', 'sandiegouniontribune.com' , 'scmp.com' , 'seekingalpha.com' , 'telegraph.co.uk' , 'tes.com' , 'theatlantic.com' , 'thebulletin.org' , 'thecritic.co.uk' , 'thetimes.co.uk' , 'uol.com.br' , 'wsj.com' ] . concat ( ca _gcm _domains , de _funke _medien _domains , de _westfalen _medien _domains , es _epiberica _domains , es _epiberica _custom _domains , es _grupo _vocento _domains , es _unidad _domains , fr _groupe _ebra _domains , fr _groupe _la _depeche _domains , fr _groupe _nice _matin _domains , it _gedi _domains , it _quotidiano _domains , ca _gcm _domains , nl _dpg _media _domains , no _nhst _media _domains , timesofindia _domains , usa _hearst _comm _domains , usa _mcc _domains ) ;
var arr _localstorage _hold = [ 'aachener-nachrichten.de' , 'aachener-zeitung.de' , 'allgaeuer-zeitung.de' , 'augsburger-allgemeine.de' , 'barrons.com' , 'businessoffashion.com' , 'businesspost.ie' , 'challenges.fr' , 'charliehebdo.fr' , 'cmjornal.pt' , 'corriere.it' , 'corrieredellosport.it' , 'cyclingtips.com' , 'dvhn.nl' , 'economictimes.com' , 'eldiario.es' , 'elespanol.com' , 'elle.fr' , 'elpais.com' , 'elperiodico.com' , 'enotes.com' , 'estadao.com.br' , 'forbes.com' , 'fortune.com' , 'freiepresse.de' , 'ilfoglio.it' , 'inc42.com' , 'indianexpress.com' , 'ksta.de' , 'kurier.at' , 'lanouvellerepublique.fr' , 'latimes.com' , 'lc.nl' , 'lesechos.fr' , 'livemint.com' , 'mid-day.com' , 'nationalreview.com' , 'nknews.org' , 'nw.de' , 'nytimes.com' , 'nzherald.co.nz' , 'r ecord.pt', 'r undschau-online.de', 'sandiegouniontribune.com' , 'scmp.com' , 'seekingalpha.com' , 'telegraph.co.uk' , 'tes.com' , 'theatlantic.com' , 'thebulletin.org' , 'thecritic.co.uk' , 'thetimes.co.uk' , 'uol.com.br' , 'wsj.com' ] . concat ( ca _gcm _domains , de _funke _medien _domains , de _westfalen _medien _domains , es _epiberica _domains , es _epiberica _custom _domains , es _grupo _vocento _domains , es _unidad _domains , fr _groupe _ebra _domains , fr _groupe _la _depeche _domains , fr _groupe _nice _matin _domains , it _gedi _domains , it _quotidiano _domains , ca _gcm _domains , nl _dpg _media _domains , no _nhst _media _domains , timesofindia _domains , usa _hearst _comm _domains , usa _mcc _domains ) ;
if ( ! matchDomain ( arr _localstorage _hold ) ) {
window . localStorage . clear ( ) ;
}
@ -1197,7 +1197,6 @@ if (matchDomain(['ara.cat', 'arabalears.cat'])) {
else if ( matchDomain ( [ 'cmjornal.pt' , 'record.pt' ] ) ) {
let paywall = document . querySelector ( '.bloqueio_exclusivos, .container_assinatura' ) ;
console . log ( paywall ) ;
let amphtml = document . querySelector ( 'link[rel="amphtml"]' ) ;
let url = window . location . href ;
if ( ! url . includes ( '/amp/' ) ) {
@ -1206,7 +1205,7 @@ else if (matchDomain(['cmjornal.pt', 'record.pt'])) {
window . location . href = amphtml . href ;
}
} else {
amp _unhide _subscr _section ( 'amp-ad, amp-embed, amp-consent ') ;
amp _unhide _subscr _section ( 'amp-ad, amp-embed, amp-consent , .detalheAds, .exclusivos_bar ') ;
let amp _links = document . querySelectorAll ( 'a[href^="https://www-cmjornal-pt.cdn.ampproject.org/c/s/"]' ) ;
for ( let amp _link of amp _links )
amp _link . href = amp _link . href . replace ( 'www-cmjornal-pt.cdn.ampproject.org/c/s/' , '' ) ;
@ -1857,7 +1856,7 @@ else if (matchDomain('gazzetta.it')) {
else if ( matchDomain ( 'ilfattoquotidiano.it' ) ) {
let url = window . location . href ;
if ( url . includes ( '/amp/' ) ) {
amp _unhide _subscr _section ( 'amp-ad, div#_4sVideoContainer') ;
amp _unhide _subscr _section ( 'amp-ad, amp-embed, div#_4sVideoContainer') ;
let comments = document . querySelector ( 'div.content.comments' ) ;
removeDOMElement ( comments ) ;
} else if ( url . split ( '?' ) [ 0 ] . match ( /\/\d{4}\/\d{2}\/\d{2}\// ) ) {
@ -4586,6 +4585,9 @@ else if ((domain = matchDomain(usa_mcc_domains)) ||
} , 500 ) ;
} else if ( url . includes ( 'amp.' + domain + '/' ) ) {
amp _unhide _subscr _section ( 'amp-ad, amp-embed' , false ) ;
let subscriptions _action = document . querySelector ( 'div[subscriptions-action][subscriptions-display="NOT data.hasError"]' ) ;
if ( subscriptions _action )
subscriptions _action . removeAttribute ( 'subscriptions-action' ) ;
let subscr _tag = document . querySelector ( 'div#subscriber-exclusive-tag' ) ;
let amp _players = document . querySelectorAll ( 'amp-connatix-player' ) ;
removeDOMElement ( subscr _tag , ... amp _players ) ;
@ -4781,8 +4783,8 @@ function amp_iframes_replace(weblink = false, source = '') {
}
function amp _unhide _subscr _section ( amp _ads _sel = 'amp-ad, .ad' , replace _iframes = true , amp _iframe _link = false , source = '' ) {
let preview = document . querySelector ( '[subscriptions-section="content-not-granted"]' ) ;
removeDOMElement ( preview ) ;
let preview = document . querySelector All ( '[subscriptions-section="content-not-granted"]' ) ;
removeDOMElement ( ... preview ) ;
let subscr _section = document . querySelectorAll ( '[subscriptions-section="content"]' ) ;
for ( let elem of subscr _section )
elem . removeAttribute ( 'subscriptions-section' ) ;