diff --git a/README.md b/README.md index c28d90a0..f6ea54bc 100644 --- a/README.md +++ b/README.md @@ -786,6 +786,7 @@ Grouped in options:\ [Mid-Day](https://www.mid-day.com) - [Outlook](https://www.outlookindia.com) - [Outlook Business](https://www.outlookbusiness.com) - +[The Caravan](https://caravanmagazine.in) - [The Economic Times (ET Prime)](https://economictimes.indiatimes.com) - [The Financial Express](https://www.financialexpress.com) - [The Hindu](https://www.thehindu.com) - diff --git a/changelog.txt b/changelog.txt index a4f1ba61..8446a8e0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ Changelog Bypass Paywalls Clean - Firefox Post-release +Add CaravanMagazine.in Fix L'Express.fr Fix MIT Sloan Management Review Fix Noz.de (no amp) diff --git a/contentScript.js b/contentScript.js index 877789a2..409047da 100644 --- a/contentScript.js +++ b/contentScript.js @@ -2759,6 +2759,19 @@ else if (matchDomain(ca_torstar_domains)) { }, 500); } +else if (matchDomain('caravanmagazine.in')) { + if (!window.location.href.startsWith('/amp/')) { + let paywall = document.querySelector('div.subscribe-plan'); + let amphtml = document.querySelector('link[rel="amphtml"]'); + if (!amphtml) + amphtml = {href: '/amp' + window.location.pathname}; + if (paywall && amphtml) { + removeDOMElement(paywall); + window.location.href = amphtml.href; + } + } +} + else if (matchDomain('cen.acs.org')) { let meteredBar = document.querySelector('.meteredBar'); removeDOMElement(meteredBar); @@ -4298,7 +4311,7 @@ else if ((domain = matchDomain(usa_mcc_domains)) || window.location.href = 'https://amp.' + domain + '/article' + url.split('resume=')[1].split(/[#&]/)[0] + '.html'; }, 500); } else if (url.includes('amp.' + domain + '/')) { - amp_unhide_subscr_section(); + amp_unhide_subscr_section('amp-ad, amp-embed', false); let subscr_tag = document.querySelector('div#subscriber-exclusive-tag'); let amp_players = document.querySelectorAll('amp-connatix-player'); removeDOMElement(subscr_tag, ...amp_players); diff --git a/manifest.json b/manifest.json index 31af98ac..feea7006 100644 --- a/manifest.json +++ b/manifest.json @@ -124,6 +124,7 @@ "*://*.calgaryherald.com/*", "*://*.canberratimes.com.au/*", "*://*.capitalgazette.com/*", + "*://*.caravanmagazine.in/*", "*://*.causeur.fr/*", "*://*.cen.acs.org/*", "*://*.centralwesterndaily.com.au/*", @@ -713,5 +714,5 @@ "*://*.wallkit.net/*", "*://webcache.googleusercontent.com/*" ], - "version": "2.9.7.8" + "version": "2.9.7.9" } diff --git a/options/optin/opt-in.js b/options/optin/opt-in.js index 328f654f..d5e97c73 100644 --- a/options/optin/opt-in.js +++ b/options/optin/opt-in.js @@ -62,7 +62,7 @@ window.addEventListener("load", function () { document.querySelector('#custom-disable').addEventListener('click', function (event) { ext_api.permissions.remove({ - origins: ["", "*://*/*"] + origins: ["*://*/*"] }, function (removed) { if (removed) { custom_enabled.innerText = 'NO'; diff --git a/sites.js b/sites.js index 2f29e7f4..064f5cf2 100644 --- a/sites.js +++ b/sites.js @@ -1784,6 +1784,10 @@ var defaultSites = { allow_cookies: 1, block_regex: /(\.businessoffashion\.com\/zephr\/feature|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/ }, + "The Caravan": { + domain: "caravanmagazine.in", + allow_cookies: 1 + }, "The Christian Science Monitor": { domain: "csmonitor.com", allow_cookies: 1 @@ -2374,4 +2378,4 @@ init_custom_flex_domains(); var au_news_corp_nofix_domains = ['cairnspost.com.au', 'geelongadvertiser.com.au', 'goldcoastbulletin.com.au', 'thechronicle.com.au', 'townsvillebulletin.com.au', 'weeklytimesnow.com.au']; var be_mediahuis_nofix_domains = ['gva.be', 'hbvl.be']; var it_gedi_nofix_domains = ['gelocal.it', 'huffingtonpost.it', 'ilsecoloxix.it', 'lastampa.it', 'limesonline.com']; -var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains); +var nofix_sites = ['africaintelligence.com', 'africaintelligence.fr', 'aftenposten.no', 'badische-zeitung.de', 'bild.de', 'borsen.dk', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'courrierinternational.com', 'dn.se', 'elordenmundial.com', 'epw.in', 'expresso.pt', 'ftchinese.com', 'golem.de', 'heise.de', 'hs.fi', 'ilsole24ore.com', 'jacobinmag.com', 'jeuneafrique.com', 'kurier.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.com', 'leconomiste.com', 'lefigaro.fr', 'lemonde.fr', 'lepoint.fr', 'letemps.ch', 'liberation.fr', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mondediplo.com', 'moneycontrol.com', 'nature.com', 'nbr.co.nz', 'nn.de', 'ouest-france.fr', 'philonomist.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'republic.ru', 'saechsische.de', 'schwarzwaelder-bote.de', 'statnews.com', 'stern.de', 'straitstimes.com', 'stuttgarter-nachrichten.de', 'stuttgarter-zeitung.de', 'suedkurier.de', 'swp.de', 'tagesanzeiger.ch', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'themorningcontext.com', 'theparisreview.org', 'thewirechina.com', 'weser-kurier.de', 'worldpoliticsreview.com', 'ynet.co.il', 'zerohedge.com'].concat(au_news_corp_nofix_domains, be_mediahuis_nofix_domains, it_gedi_nofix_domains);