diff --git a/README.md b/README.md index b727d345..c5c15a9e 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,6 @@ Grouped in options:\ [Substack](https://substack.com) - [The Art Newspaper](https://www.theartnewspaper.com) - [The Athletic](https://theathletic.com) - -[The Banker](https://www.thebanker.com) - [The Intercept](https://theintercept.com) - [The Daily Beast](https://www.thedailybeast.com) - [The Daily Wire](https://www.dailywire.com) - @@ -363,13 +362,14 @@ Grouped in options:\ [London Review of Books](https://www.lrb.co.uk) - [New Left Review](https://newleftreview.org) - [Prospect Magazine](https://www.prospectmagazine.co.uk) - +[The Banker](https://www.thebanker.com) [The Economist](https://www.economist.com) - [The Independent](https://www.independent.co.uk) - [The Irish Times](https://www.irishtimes.com) - [The New Statesman](https://www.newstatesman.com) - [The Spectator](https://www.spectator.co.uk) - [The Telegraph](https://www.telegraph.co.uk) - -[The Times](https://www.thetimes.co.uk) - +[The Times (link to archive.today)](https://www.thetimes.co.uk) - [The Times Literary Supplement](https://www.the-tls.co.uk) - [UnHerd](https://unherd.com) @@ -477,22 +477,17 @@ Grouped in options:\ [Sud Ouest](https://www.sudouest.fr) ##### Germany/Austria -[Aachener Nachrichten](https://www.aachener-nachrichten.de) - -[Aachener Zeitung](https://www.aachener-zeitung.de) - [Allgäuer Zeitung](https://www.allgaeuer-zeitung.de) - [Augsburger Allgemeine](https://www.augsburger-allgemeine.de) - [Automobilwoche](https://www.automobilwoche.de) - [Badische Neueste Nachrichten](https://www.bnn.de) - [Berliner Zeitung](https://www.berliner-zeitung.de) - [Cicero](https://www.cicero.de) - -[Der Spiegel](https://www.spiegel.de) - -[Der Tagesspiegel](https://www.tagesspiegel.de) - +[Der Spiegel (link to archive.today)](https://www.spiegel.de) - [Die Rheinpfalz](https://www.rheinpfalz.de) - -[Die Welt](https://www.welt.de) - [Die Zeit](https://www.zeit.de) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Freie Presse](https://www.freiepresse.de) - -[Golem.de](https://www.golem.de) - [Kölner Stadt-Anzeiger](https://www.ksta.de) - [Kölnische Rundschau](https://www.rundschau-online.de) - [Krautreporter](https://krautreporter.de) - @@ -505,8 +500,7 @@ Grouped in options:\ [Schleswig-Holsteinischer Zeitungsverlag](https://www.shz.de) - [Schweriner Volkszeitung](https://www.svz.de) - [Volksstimme](https://www.volksstimme.de) - -[Westdeutsche Zeitung](https://www.wz.de) - -[WirtschaftsWoche](https://www.wiwo.de) +[Westdeutsche Zeitung](https://www.wz.de) Grouped in options:\ *Funke Mediengruppe* sites like (opt-in to custom sites for unlisted)\ @@ -569,7 +563,6 @@ Grouped in options:\ [La Nazione](https://www.lanazione.it) ##### Netherlands/Flanders -[De Limburger](https://www.limburger.nl) - [De Tijd](https://www.tijd.be) - [Financieele Dagblad](https://fd.nl) - [Follow the Money](https://www.ftm.nl) - @@ -588,7 +581,6 @@ Grouped in options:\ [Parool](https://www.parool.nl) - [Trouw](https://www.trouw.nl)\ *Mediahuis België* sites like\ -[De Standaard](https://www.standaard.be) - [Gazet van Antwerpen](https://www.gva.be) - [Het Belang van Limburg](https://www.hbvl.be) - [Het Nieuwsblad](https://www.nieuwsblad.be)\ diff --git a/background.js b/background.js index c6b8c6d7..538cca4b 100644 --- a/background.js +++ b/background.js @@ -6,7 +6,7 @@ var ext_name = manifestData.name; var ext_version = manifestData.version; const cs_limit_except = ['elespanol.com', 'faz.net', 'nation.africa', 'nationalgeographic.com'].concat(de_westfalen_medien_domains); -const dompurify_sites = ['aachener-nachrichten.de', 'aachener-zeitung.de', 'asiatimes.com', 'bloomberg.com', 'cicero.de', 'golem.de', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lesechos.fr', 'limburger.nl', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'spiegel.de', 'stratfor.com', 'tagesspiegel.de', 'techinasia.com', 'thetimes.co.uk', 'timesofindia.com', 'vn.nl', 'welt.de', 'wiwo.de'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains); +const dompurify_sites = ['asiatimes.com', 'bloomberg.com', 'cicero.de', 'hs.fi', 'ilmanifesto.it', 'iltalehti.fi', 'iltirreno.it', 'ipolitics.ca', 'italiaoggi.it', 'lanuovasardegna.it', 'lesechos.fr', 'marianne.net', 'newleftreview.org', 'nzherald.co.nz', 'outlookbusiness.com', 'prospectmagazine.co.uk', 'stratfor.com', 'techinasia.com', 'timesofindia.com', 'vn.nl'].concat(be_mediahuis_domains, nl_mediahuis_region_domains, no_nhst_media_domains); var currentTabUrl = ''; var csDone = false; var optin_setcookie = false; @@ -26,7 +26,6 @@ var restrictions = { 'lastampa.it': /^((?!\/video\.lastampa\.it\/).)*$/, 'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/, 'science.org': /^((?!\.science\.org\/doi\/).)*$/, - 'standaard.be': /^((?!\.standaard\.be\/plus\/).)*$/, 'timesofindia.com': /\.timesofindia\.com($|\/($|toi-plus(\/.+)?|.+\.cms))/, 'quora.com': /^((?!quora\.com\/search\?q=).)*$/, 'repubblica.it': /^((?!\/video\.repubblica\.it\/).)*$/, diff --git a/changelog.txt b/changelog.txt index f5a312f2..1a26ecbc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,12 +2,13 @@ Changelog Bypass Paywalls Clean - Firefox Post-release -Add Aachener Nachrichten &Zeitung +Remove Limburger.nl & Standaard.be (fix obsolete) +Remove Golem.de, Tagesspiegel.de, Welt.de & Wiwo.de (fix obsolete) Remove World Politics Review (fix obsolete) Fix Australia News Corp (amp-iframe) -Fix Limburger.nl & Mediahuis Belgie (mobile) +Fix Spiegel.de (link to archive.is) Fix The New Republic (js) -Fix TheTimes.co.uk (epaper-fix obsolete) +Fix TheTimes.co.uk (link to archive.is & epaper-fix obsolete) Open options on grouping of (enabled) sites * v2.7.9.0 (2022-08-07) diff --git a/contentScript.js b/contentScript.js index 8b68975a..db6c29c2 100644 --- a/contentScript.js +++ b/contentScript.js @@ -39,7 +39,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', 'abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'economictimes.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'theatlantic.com', 'thehindu.com', 'thetimes.co.uk', 'wsj.com'].concat(de_funke_medien_domains, de_westfalen_medien_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, usa_hearst_comm_domains); +var arr_localstorage_hold = ['abc.es', 'allgaeuer-zeitung.de', 'augsburger-allgemeine.de', 'barrons.com', 'businessoffashion.com', 'challenges.fr', 'charliehebdo.fr', 'cmjornal.pt', 'corriere.it', 'corrieredellosport.it', 'eldiario.es', 'elespanol.com', 'elle.fr', 'elpais.com', 'elperiodico.com', 'enotes.com', 'estadao.com.br', 'forbes.com', 'fortune.com', 'economictimes.com', 'freiepresse.de', 'ilfoglio.it', 'inc42.com', 'lanouvellerepublique.fr', 'lesechos.fr', 'mid-day.com', 'nytimes.com', 'nzherald.co.nz', 'scmp.com', 'seekingalpha.com', 'substack.com', 'telegraph.co.uk', 'theatlantic.com', 'thehindu.com', 'thetimes.co.uk', 'wsj.com'].concat(de_funke_medien_domains, de_westfalen_medien_domains, es_epiberica_domains, es_grupo_vocento_domains, es_unidad_domains, fr_groupe_ebra_domains, fr_groupe_la_depeche_domains, fr_groupe_nice_matin_domains, it_quotidiano_domains, ca_gcm_domains, nl_dpg_media_domains, no_nhst_media_domains, usa_hearst_comm_domains); if (!matchDomain(arr_localstorage_hold)) { window.localStorage.clear(); } @@ -438,18 +438,7 @@ else { } else if (window.location.hostname.match(/\.(de|at|ch)$/) || matchDomain(['faz.net'])) {//germany/austria/switzerland - ch -if (matchDomain(['aachener-nachrichten.de', 'aachener-zeitung.de'])) { - let url = window.location.href; - let paywall = document.querySelectorAll('div.park-article-content > p.text-blurred'); - if (paywall.length) { - removeDOMElement(...paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div.park-article__body'); - } -} - -else if (matchDomain('allgaeuer-zeitung.de')) { +if (matchDomain('allgaeuer-zeitung.de')) { let url = window.location.href; if (!url.includes('?type=amp')) { let paywall = document.querySelector('p.nfy-text-blur'); @@ -608,48 +597,6 @@ else if (matchDomain('freiepresse.de')) { } } -else if (matchDomain('golem.de')) { - let url = window.location.href; - let paywall = document.querySelector('article.golemplus'); - if (paywall) { - paywall.classList.remove('golemplus'); - csDoneOnce = true; - if (url.includes('?page=')) - url = url.replace('.html', '-' + url.split('?page=')[1] + '.html').split('?')[0]; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'article'); - window.setTimeout(function () { - let list_pages = document.querySelectorAll('ol.list-pages > li >a[href]'); - for (let list_page of list_pages) { - let page = list_page.href.match(/-(\d{1,2})\.html/); - if (page && page[1]) { - list_page.href = list_page.href.replace(/-\d{1,2}\.html/, '.html') + '?page=' + page[1]; - } - } - let gallery_images = document.querySelectorAll('ul[class^="golemGallery"] > li > img[data-src]'); - for (let gallery_image of gallery_images) { - if (!gallery_image.src || gallery_image.src.includes('.html')) - removeDOMElement(gallery_image.parentNode); - } - let videos = document.querySelectorAll('figure.gvideofig'); - for (let video of videos) { - let video_text = video.querySelector('div.gvidtext'); - if (!video_text) { - let gwc_link = document.createElement('a'); - gwc_link.href = url_cache; - gwc_link.innerText = 'Watch video on Google webcache'; - gwc_link.target = '_blank'; - video.parentNode.replaceChild(gwc_link, video); - } - } - }, 1000); - } - window.setTimeout(function () { - let ads = document.querySelectorAll('div[id^="iqadtile"], div.wraptusplit'); - removeDOMElement(...ads); - }, 1000); -} - else if (matchDomain('krautreporter.de')) { let paywall = document.querySelector('.js-article-paywall'); if (paywall) { @@ -723,70 +670,9 @@ else if (matchDomain('spiegel.de')) { let paywall = document.querySelector('div[data-area="paywall"]'); if (paywall) { removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div[data-area="body"]'); - window.setTimeout(function () { - let lazy_images = document.querySelectorAll('img.lazyload[src^="data:image/"][data-src]'); - for (let elem of lazy_images) { - elem.src = elem.getAttribute('data-src'); - } - }, 1000); - } -} - -else if (matchDomain('tagesspiegel.de')) { - let url = window.location.href; - let paywall = document.querySelector('div.article--paid > div, .ts-paywall-blurred'); - if (paywall) { - removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'article, [class*="ts-paywall"]'); - window.setTimeout(function () { - let ads = document.querySelectorAll('div[data-mobile-id]'); - for (let elem of ads) - removeDOMElement(elem.parentNode); - }, 1000); - } -} - -else if (matchDomain('welt.de')) { - let url = window.location.href; - let paywall = document.querySelector('div[data-premium-content-loader-id^="spinner-article-"]'); - if (paywall) { - removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div[itemprop="articleBody"]'); - window.setTimeout(function () { - let lazy_images = document.querySelectorAll('img[src*="/lazy-picture-placeholder-"][data-src]'); - for (let elem of lazy_images) { - let source = elem.parentNode.querySelector('source[data-breakpoint="Large"][data-src-template]'); - if (source) - elem.src = source.getAttribute('data-src-template'); - else - elem.src = elem.getAttribute('data-src'); - } - let teaser = document.querySelector('div[data-qa="Article.PremiumContent"] > div.c-article-text'); - let ads = document.querySelectorAll('div[data-component="Outbrain"], div[data-component="OEmbedComponent"]'); - removeDOMElement(teaser, ...ads); - }, 1500); - } -} - -else if (matchDomain('wiwo.de')) { - let url = window.location.href; - let paywall = document.querySelector('div.o-paywall'); - if (paywall) { - removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div.o-article__content'); - window.setTimeout(function () { - let ads = document.querySelectorAll('div[class^="c-advertisment"]'); - removeDOMElement(...ads); - }, 1000); + let article = document.querySelector('div[data-area="body"]'); + if (article) + article.insertBefore(archiveLink(url), article.firstChild); } } @@ -1982,30 +1868,112 @@ else if (matchDomain('ftm.nl')) { removeDOMElement(banner_pp); } -else if (matchDomain(['gva.be', 'hbvl.be', 'nieuwsblad.be', 'standaard.be'])) { - let url = window.location.href; - if (window.location.hostname.startsWith('m.')) - url = url.replace('m.', 'www.'); - let article_selector = 'div[data-mht-block="article-detail__article-main"]'; - if (matchDomain('standaard.be')) - article_selector = 'article'; +else if (matchDomain(['gva.be', 'hbvl.be', 'nieuwsblad.be'])) { let paywall = document.querySelector('div[data-cj-root="subscription-wall"]'); - if (paywall) { - removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, article_selector); - window.setTimeout(function () { - let overlay = document.querySelector('div.cj-root'); - removeDOMElement(overlay); - let noscroll = document.querySelector('html.is-dialog-active'); - if (noscroll) - noscroll.classList.remove('is-dialog-active'); - let consent_overlay = document.querySelector('body.didomi-popup-open'); - if (consent_overlay) - consent_overlay.classList.remove('didomi-popup-open'); - }, 1000); // Delay (in milliseconds) + if (paywall && dompurify_loaded) { + let main_content = document.querySelector('div[data-mht-block="article-detail__article-main"]'); + let json_script = main_content.querySelector('script'); + let json_str = json_script.text.substring(json_script.textContent.indexOf('{')); + try { + let json = JSON.parse(json_str); + if (json) { + let json_text = Object.values(json)[0]['data']['article']['body']; + let parser = new DOMParser(); + let div_content = main_content.querySelector('div'); + let par_elem, par_key, par_li, par_html, par_link; + let head = document.querySelector('head'); + let streamone = false; + let flourish = false; + for (let par of json_text) { + for (let key in par) { + par_elem = document.createElement('p'); + par_key = par[key]; + if (['p', 'subhead'].includes(key)) { + if (par_key.includes('<')) { + par_html = parser.parseFromString('

' + DOMPurify.sanitize(par_key) + '

', 'text/html'); + par_elem = par_html.querySelector('p'); + } else + par_elem.innerText = par_key; + if (key === 'subhead') + par_elem.setAttribute('style', 'font-weight: bold;'); + } else if (key === 'image') { + par_elem = document.createElement('img'); + par_elem.src = par_key.url; + } else if (key === 'bullet_list') { + par_elem = document.createElement('ul'); + for (let bullet of par_key) { + par_html = parser.parseFromString('
  • ' + DOMPurify.sanitize(bullet) + '
  • ', 'text/html'); + par_li = par_html.querySelector('li'); + let bullet_link = par_li.querySelector('a'); + if (bullet_link && bullet_link.href && !bullet_link.innerText) + bullet_link.innerText = bullet_link.href; + par_elem.appendChild(par_li); + } + } else if (key === 'related') { + par_elem = document.createElement('p'); + if (par_key.article && par_key.article.title && par_key.article.webcmsRelativeUrl) { + par_link = document.createElement('a'); + if (par_key.article.label) + par_link.innerText = par_key.article.label; + par_link.innerText += par_key.article.title; + par_link.href = par_key.article.webcmsRelativeUrl; + par_elem.appendChild(par_link); + } + } else if (key === 'iframe_sized') { + par_elem = document.createElement('iframe'); + par_elem.src = par_key.url; + if (par_key.height && par_key.width) { + par_elem.setAttribute('height', par_key.height); + par_elem.setAttribute('width', par_key.width); + } + } else if (key === 'streamone') { + if (!streamone) { + let streamone_script = document.createElement('script'); + streamone_script.setAttribute('src', 'https://shared.mediahuis.be/videoplayers/mediahuis/video-theoplayer.js?v=20220525T184101'); + streamone_script.setAttribute('defer', true); + streamone_script.setAttribute('crossorigin', 'anonymous'); + if (head) + head.appendChild(streamone_script); + streamone = true; + } + let par_key_id = DOMPurify.sanitize(par_key.id); + par_html = parser.parseFromString('
    ', 'text/html'); + par_elem = par_html.querySelector('div'); + } else if (key === 'legacy-ml') { + par_html = parser.parseFromString('
    ' + DOMPurify.sanitize(par_key) + '
    ', 'text/html'); + par_elem = par_html.querySelector('div'); + if (!flourish && par_key.includes('flourish.studio')) { + let flourish_script = document.createElement('script'); + flourish_script.setAttribute('src', 'https://public.flourish.studio/resources/embed.js'); + if (head) + head.appendChild(flourish_script); + flourish = true; + } + } else { + console.log(key); + console.log(par_key); + par_html = parser.parseFromString('

    ' + DOMPurify.sanitize(par_key) + '

    ', 'text/html'); + par_elem = par_html.querySelector('p'); + } + if (!['streamone', 'legacy-ml', 'iframe_sized'].includes(key)) + par_elem.setAttribute('style', 'font-size: 16px;'); + if (par_elem) + div_content.appendChild(par_elem); + } + } + } + } catch (err) { + console.warn('unable to parse text'); + console.warn(err); + } } + window.setTimeout(function () { + let overlay = document.querySelector('div.cj-root'); + removeDOMElement(overlay); + let noscroll = document.querySelector('html.is-dialog-active'); + if (noscroll) + noscroll.classList.remove('is-dialog-active'); + }, 500); // Delay (in milliseconds) } else if (matchDomain(['knack.be', 'kw.be', 'levif.be'])) { @@ -2027,28 +1995,6 @@ else if (matchDomain(['lc.nl', 'dvhn.nl'])) { removeDOMElement(top_ad); } -else if (matchDomain('limburger.nl')) { - let url = window.location.href; - if (window.location.hostname.startsWith('m.')) - url = url.replace('m.', 'www.'); - let paywall = document.querySelector('div[data-cj-root="subscription-wall"]'); - if (paywall) { - removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - replaceDomElementExt(url_cache, true, false, 'div[data-fragment-name="articleDetail"]'); - window.setTimeout(function () { - let overlay = document.querySelector('div.cj-root'); - removeDOMElement(overlay); - let noscroll = document.querySelector('html.is-dialog-active'); - if (noscroll) - noscroll.classList.remove('is-dialog-active'); - let ads = document.querySelectorAll('div.ad'); - removeDOMElement(...ads); - }, 1000); // Delay (in milliseconds) - } -} - else if (matchDomain(nl_mediahuis_region_domains)) { window.setTimeout(function () { let close_button = document.querySelector('button[data-testid="button-close"]'); @@ -2329,32 +2275,18 @@ else if (matchDomain('the-tls.co.uk')) { else if (matchDomain('thetimes.co.uk')) { let url = window.location.href; if (window.location.hostname !== 'epaper.thetimes.co.uk') { + let block = document.querySelector('.subscription-block'); + let adverts = document.querySelectorAll('#ad-article-inline, #sticky-ad-header, div[class*="InlineAdWrapper"], div[class*="NativeAd"], div.gyLkkj'); + removeDOMElement(block, ...adverts); let paywall = document.querySelector('div#paywall-portal-article-footer'); if (paywall && !url.includes('?shareToken=')) { removeDOMElement(paywall); - csDoneOnce = true; - let url_cache = 'https://webcache.googleusercontent.com/search?q=cache:' + url.split('?')[0]; - let article_selector = 'article[class^="responsive__BodyContainer"]'; - replaceDomElementExt(url_cache, true, false, article_selector); - window.setTimeout(function () { - let interactive_containers = document.querySelectorAll('div[class^="responsive__InteractiveContainer-"]'); - if (interactive_containers.length) { - let article = document.querySelector(article_selector); - if (article) - article.insertBefore(archiveLink(url, 'BPC > Full article text (with interactive elements):\r\n'), article.firstChild); - } - let responsive_images = document.querySelectorAll('img[class^="responsive-"][src]'); - for (let elem of responsive_images) { - if (elem.src.includes('?')) { - elem.src = elem.src.split('?')[0]; - elem.parentNode.style = 'padding-bottom:75%'; - } - } - let banners = document.querySelectorAll('.subscription-block, div#paywall-portal-page-footer'); - let ads = document.querySelectorAll('#ad-article-inline, #sticky-ad-header, div[class*="InlineAdWrapper"], div[class*="NativeAd"], div.gyLkkj'); - removeDOMElement(...banners, ...ads); - }, 1500); + let article = document.querySelector('article[class^="responsive__BodyContainer"]'); + if (article) + article.insertBefore(archiveLink(url), article.firstChild); } + let paywall_page = document.querySelector('div#paywall-portal-page-footer'); + removeDOMElement(paywall_page); } } diff --git a/manifest.json b/manifest.json index 8d71dc95..ca9b9abd 100644 --- a/manifest.json +++ b/manifest.json @@ -57,8 +57,6 @@ "webRequest", "webRequestBlocking", "*://*.360dx.com/*", - "*://*.aachener-nachrichten.de/*", - "*://*.aachener-zeitung.de/*", "*://*.aamulehti.fi/*", "*://*.abc.es/*", "*://*.abendblatt.de/*", @@ -247,7 +245,6 @@ "*://*.globes.co.il/*", "*://*.globo.com/*", "*://*.goldcoastbulletin.com.au/*", - "*://*.golem.de/*", "*://*.goodhousekeeping.com/*", "*://*.gooieneemlander.nl/*", "*://*.gq.com/*", @@ -377,7 +374,6 @@ "*://*.levif.be/*", "*://*.lexpress.fr/*", "*://*.liberation-champagne.fr/*", - "*://*.limburger.nl/*", "*://*.limesonline.com/*", "*://*.lindependant.fr/*", "*://*.livelaw.in/*", @@ -530,7 +526,6 @@ "*://*.spglobal.com/*", "*://*.spiegel.de/*", "*://*.sportico.com/*", - "*://*.standaard.be/*", "*://*.standard.net.au/*", "*://*.star-telegram.com/*", "*://*.staradvertiser.com/*", @@ -548,7 +543,6 @@ "*://*.suomensotilas.fi/*", "*://*.svz.de/*", "*://*.syracuse.com/*", - "*://*.tagesspiegel.de/*", "*://*.talouselama.fi/*", "*://*.tampabay.com/*", "*://*.techinasia.com/*", @@ -642,12 +636,10 @@ "*://*.waz.de/*", "*://*.weeklytimesnow.com.au/*", "*://*.wellandtribune.ca/*", - "*://*.welt.de/*", "*://*.westernadvocate.com.au/*", "*://*.westfalen-blatt.de/*", "*://*.winnipegfreepress.com/*", "*://*.wired.com/*", - "*://*.wiwo.de/*", "*://*.wn.de/*", "*://*.womenshealthmag.com/*", "*://*.womensrunning.com/*", @@ -705,5 +697,5 @@ "*://gcm.omerlocdn.com/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.7.9.3" + "version": "2.7.9.4" } diff --git a/sites.js b/sites.js index a4788be7..b53e57a0 100644 --- a/sites.js +++ b/sites.js @@ -1,12 +1,4 @@ var defaultSites = { - "Aachener Nachrichten": { - domain: "aachener-nachrichten.de", - allow_cookies: 1 - }, - "Aachener Zeitung": { - domain: "aachener-zeitung.de", - allow_cookies: 1 - }, "ABC.es": { domain: "abc.es", allow_cookies: 1, @@ -337,10 +329,6 @@ var defaultSites = { "Dark Reading": { domain: "darkreading.com" }, - "De Limburger": { - domain: "limburger.nl", - allow_cookies: 1 - }, "De Tijd": { domain: "tijd.be", referer: "google" @@ -349,10 +337,6 @@ var defaultSites = { domain: "spiegel.de", allow_cookies: 1 }, - "Der Tagesspiegel": { - domain: "tagesspiegel.de", - allow_cookies: 1 - }, "Diario Financiero": { domain: "df.cl", allow_cookies: 1, @@ -363,10 +347,6 @@ var defaultSites = { allow_cookies: 1, useragent: "googlebot" }, - "Die Welt": { - domain: "welt.de", - allow_cookies: 1 - }, "Die Zeit": { domain: "zeit.de", allow_cookies: 1, @@ -611,10 +591,6 @@ var defaultSites = { domain: "globes.co.il", block_regex: /\.tinypass\.com\// }, - "Golem.de": { - domain: "golem.de", - allow_cookies: 1 - }, "Griffith Review": { domain: "griffithreview.com", block_regex: /\.griffithreview\.com\/.+\/leaky-paywall\//, @@ -1173,8 +1149,7 @@ var defaultSites = { group: [ "gva.be", "hbvl.be", - "nieuwsblad.be", - "standaard.be" + "nieuwsblad.be" ], allow_cookies: 1 }, @@ -2008,10 +1983,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /(account\.winnipegfreepress\.com\/api\/v\d\/auth\/identify|cdn\.cxense\.com\/)/ }, - "WirtschaftsWoche": { - domain: "wiwo.de", - allow_cookies: 1 - }, "###_gr_au_nine_domains": { group_rule_domains: ["brisbanetimes.com.au", "smh.com.au", "theage.com.au", "watoday.com.au"], block_regex: /cdn\.ampproject\.org\/v\d\/amp-subscriptions-.+\.js/ @@ -2175,4 +2146,4 @@ var no_nhst_media_domains = grouped_sites['###_no_nhst_media']; // sites with no fix (background) var nl_dpg_media_nofix_domains = ['ad.nl', 'bd.nl', 'bndestem.nl', 'destentor.nl', 'ed.nl', 'gelderlander.nl', 'hln.be', 'pzc.nl', 'tubantia.nl']; -var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.dk', 'publico.pt', 'republic.ru', 'rp-online.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'worldpoliticsreview.com', 'ynet.co.il'].concat(nl_dpg_media_nofix_domains); +var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'cnbc.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'gazzetta.it', 'handelsblatt.com', 'hln.be', 'ilmanifesto.it', 'ilsole24ore.com', 'jacobinmag.com', 'jeunesafrique.com', 'kurier.at', 'lavozdegalicia.es', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'liberation.fr', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nieuwsblad.be', 'nknews.org', 'ouest-france.fr', 'politiken.dk', 'publico.pt', 'republic.ru', 'rp-online.de', 'standaard.be', 'statnews.com', 'stern.de', 'straitstimes.com', 'sueddeutsche.de', 'tagesanzeiger.ch', 'tagesspiegel.de', 'the-ken.com', 'theinformation.com', ' themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'welt.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(nl_dpg_media_nofix_domains);