From c1d03c8436fa6468cdd877446b4db2ebe60aa524 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Wed, 3 Jan 2024 08:39:14 +0100 Subject: [PATCH] Remove Bhaskar --- README.md | 1 - background.js | 1 - changelog.txt | 1 + contentScript.js | 6 ------ custom/sites_custom.json | 2 +- manifest.json | 1 - sites.js | 7 +------ 7 files changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index e4492533..e8fa371b 100644 --- a/README.md +++ b/README.md @@ -910,7 +910,6 @@ Grouped in options:\ ##### India [Bar and Bench](https://www.barandbench.com) - -[Bhaskar](https://www.bhaskar.com) - [BQ Prime](https://www.bqprime.com) - [Business Standard](https://www.business-standard.com) - [Hindu Tamil Thisai](https://www.hindutamil.in) - diff --git a/background.js b/background.js index d44c73b5..5d0ac0f6 100644 --- a/background.js +++ b/background.js @@ -20,7 +20,6 @@ var blocked_referer = false; // defaultSites are loaded from sites.js at installation extension var restrictions = { - 'bhaskar.com': /^((?!\.bhaskar\.com\/(.+\/)?video(s(\/)?$|\/)).)*$/, 'bloomberg.com': /^((?!\.bloomberg\.com\/news\/terminal\/).)*$/, 'bloombergadria.com': /^((?!\.bloombergadria\.com\/video\/).)*$/, 'dailywire.com': /^((?!\.dailywire\.com\/(episode|show|videos|watch)).)*$/, diff --git a/changelog.txt b/changelog.txt index 23811393..3fd1c9a8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Post-release +Remove Bhaskar (fix obsolete) Fix Haaretz Group (Semrushbot) Fix The Diplomat (magazine) diff --git a/contentScript.js b/contentScript.js index 927f4488..def5a0f8 100644 --- a/contentScript.js +++ b/contentScript.js @@ -3572,12 +3572,6 @@ else if (matchDomain('barrons.com')) { } } -else if (matchDomain('bhaskar.com')) { - let paywall = document.querySelector('div > img[alt="LockIcon"]'); - if (paywall) - refreshCurrentTab_bg(); -} - else if (matchDomain('billboard.com')) { if (window.location.pathname.endsWith('/amp/')) { amp_unhide_subscr_section('amp-ad, amp-embed'); diff --git a/custom/sites_custom.json b/custom/sites_custom.json index a8b16d04..7974bcf0 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -637,7 +637,7 @@ "Taxscan.in": { "allow_cookies": 1, "domain": "taxscan.in", - "ld_json": "div.pmpro_content_message|div.singlepost_container>p" + "ld_json": "div.pmpro_content_message|div.the-content>p" }, "Tetu.com": { "allow_cookies": 1, diff --git a/manifest.json b/manifest.json index f49f1365..0ea4f6f1 100644 --- a/manifest.json +++ b/manifest.json @@ -107,7 +107,6 @@ "*://*.betamtb.com/*", "*://*.betternutrition.com/*", "*://*.betterprogramming.pub/*", - "*://*.bhaskar.com/*", "*://*.bicycling.com/*", "*://*.bild.de/*", "*://*.billboard.com/*", diff --git a/sites.js b/sites.js index b34007e8..60527168 100644 --- a/sites.js +++ b/sites.js @@ -252,11 +252,6 @@ var defaultSites = { allow_cookies: 1, useragent: "bingbot" }, - "Bhaskar": { - domain: "bhaskar.com", - allow_cookies: 1, - block_regex: /\.bhaskar\.com\/assets\/js\/react-.+\.bundle\.js/ - }, "Bild (link to archive.is)": { domain: "bild.de", allow_cookies: 1, @@ -2944,4 +2939,4 @@ var fr_groupe_ebra_nofix_domains = ['bienpublic.com', 'dna.fr', 'estrepublicain. var fr_indigo_nofix_domains = ['africaintelligence.com', 'africaintelligence.fr', 'glitz.paris', 'intelligenceonline.com', 'intelligenceonline.fr', 'lalettre.fr']; var it_gedi_nofix_domains = ['gelocal.it', 'limesonline.com']; var nl_mediahuis_region_nofix_domains = ['gooieneemlander.nl', 'haarlemsdagblad.nl', 'ijmuidercourant.nl', 'leidschdagblad.nl', 'noordhollandsdagblad.nl']; -var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.com', 'aviationweek.com', 'badische-zeitung.de', 'bloomberglaw.com', 'bloombergtax.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'courrierinternational.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'expresso.pt', 'falter.at', 'finance.si', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'streetinsider.com', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); +var nofix_sites = ['11freunde.de', 'aamulehti.fi', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'asahi.com', 'asiatimes.com', 'autosport.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnn.de', 'borsen.dk', 'businessinsider.de', 'businessinsider.jp', 'businesslive.co.za', 'businesstimes.com.sg', 'caixin.com', 'caixinglobal.com', 'caravanmagazine.in', 'catalyst-journal.com', 'chegg.com', 'codesports.com.au', 'compactmag.com', 'courrierinternational.com', 'coursehero.com', 'deutsche-wirtschafts-nachrichten.de', 'die-glocke.de', 'dn.no', 'dn.se', 'elordenmundial.com', 'entrepreneur.com', 'epw.in', 'expresso.pt', 'falter.at', 'finance.si', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hln.be', 'hs.fi', 'ilsole24ore.com', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefilmfrancais.com', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'limburger.nl', 'main-echo.de', 'mainpost.de', 'manager-magazin.de', 'medianama.com', 'mediapart.fr', 'milanofinanza.it', 'mittelbayerische.de', 'monde-diplomatique.fr', 'mondediplo.com', 'money.it', 'moneycontrol.com', 'moodys.com', 'morningstar.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'schwarzwaelder-bote.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'straitstimes.com', 'stratfor.com', 'streetinsider.com', 'substack.com', 'suedkurier.de', 'swp.de', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'wiwo.de', 'worldpoliticsreview.com', 'ynet.co.il'].concat(be_mediahuis_nofix_domains, de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains);