From 1ca39b53e086f71184883ff6a535fa33438dd76d Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Tue, 5 Mar 2024 12:40:14 +0100 Subject: [PATCH] Remove Puck.news --- README.md | 20 +++++++++----------- changelog.txt | 1 + contentScript.js | 15 +-------------- custom/manifest.json | 2 +- custom/sites_custom.json | 24 ++++++++++++++++++++++++ manifest.json | 3 +-- options/popup.html | 2 +- sites.js | 7 +------ sites_updated.json | 7 +++++++ 9 files changed, 46 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index d71ba3cb..013fb12c 100644 --- a/README.md +++ b/README.md @@ -19,21 +19,20 @@ Weekly updates are released for fixes and new sites. ### Installation You can install the add-on from [GitLab releases](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases)\ -Download the [latest release by xpi-file](https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-latest.xpi), go to downloads and install the add-on (or drag it from your file-manager anywhere on a page/tab in Firefox).\ -Or go to Tools > Add-ons (about:addons) > Extensions > Settings/Cogwheel - Install Add-on from File\ -You can add/pin the add-on icon to the toolbar with the toolbar extensions menu (jigsaw puzzle shaped icon).\ -Custom xpi-file has host permissions for all sites.\ -Minumum browser requirement: Firefox 86+. +Download the [latest release by xpi-file (regular version)](https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-latest.xpi), go to downloads and install the add-on (or drag it from your file-manager anywhere on a page/tab in Firefox).\ +You can also go to Tools > Add-ons (about:addons) > Extensions > Settings/Cogwheel - Install Add-on from File\ -PS although add-on was removed from [Mozilla's add-on store (AMO)](https://addons.mozilla.org) (because of DMCA Takedown Notice) the add-on is still signed and checked for security by Mozilla ('minor' delays can in reality be a few days or up to a week though): -> Please be aware of a recent change to AMO’s review process: All extension submissions with a significantly large number of users are now subject to human review by the add-ons review team before approval. This may, occasionally, result in minor delays publishing new versions of your extension on AMO. We’ve made this change to provide Firefox users with even greater security assurances for some of AMO’s most popular extensions. +By default BPC has limited host permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for unlisted sites). Or just request host permissions for the custom sites you've added yourself (or click *clear cookies* (BPC-icon) to ask for host permission for current site).\ +You can also install the custom add-on version (with host permissions for all sites). + +For easier access to the add-on options/settings you can add/pin the add-on icon to the toolbar with the toolbar extensions menu (jigsaw puzzle shaped icon).\ +Minimum browser requirement: Firefox 86+. + +PS although the add-on was removed from [Mozilla's add-on store (AMO)](https://addons.mozilla.org) (because of DMCA Takedown Notice) it's still signed and manually checked for security by Mozilla (hence the delay in signing). If you want to permanently install the latest [master ZIP-file from GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/archive/master/bypass-paywalls-firefox-clean-master.zip) (with post-release fixes) use a Firefox browser which allows using unsigned add-ons like Firefox Developer Portable (go to about:config and set xpinstall.signatures.required to false) or LibreWolf (for both no automatic updates of add-on).\ Or load a temporary add-on in regular Firefox (go to about:debugging#/runtime/this-firefox & load manifest.json from unpacked (master-zip) folder). -By default BPC has limited host permissions, but you can opt-in to enable custom sites (and also clear cookies/block general paywall-scripts for unlisted sites). You can also just request host permissions for the custom sites you've added yourself (or click *clear cookies* (BPC-icon) to ask for host permission for current site).\ -You can also install the custom add-on version (with host permissions for all sites). - ### Update Add-on will automatically update or you can do a manual check for updates (in about:addons).\ Either way you have to allow host permissions for newly supported sites (else no update will be installed).\ @@ -213,7 +212,6 @@ Grouped in options:\ [Newsweek](https://www.newsweek.com) - [Outdoor Life](https://www.outdoorlife.com) - [Project Syndicate](https://www.project-syndicate.org) - -[Puck.news](https://puck.news) - [Slate](https://slate.com) - [SofRep](https://sofrep.com) - [Stereogum](https://www.stereogum.com) - diff --git a/changelog.txt b/changelog.txt index c40c43e1..6e775828 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 Puck.news (fix obsolete) Fix Boersen-zeitung.de (timing) * v3.5.8.0 (2024-03-03) diff --git a/contentScript.js b/contentScript.js index 41918820..adb7ceba 100644 --- a/contentScript.js +++ b/contentScript.js @@ -4792,19 +4792,6 @@ else if (matchDomain('project-syndicate.org')) { } } -else if (matchDomain('puck.news')) { - if (dompurify_loaded) - getJsonUrl('div[class*="paywall"]', '', 'div.entry-content', {art_append: true}); - let modal = document.querySelector('div#paywall-modal'); - removeDOMElement(modal); - let overlay = document.querySelector('body.paywall-active'); - if (overlay) - overlay.classList.remove('paywall-active'); - let article_style = document.querySelector('article[style]'); - if (article_style) - article_style.removeAttribute('style'); -} - else if (matchDomain('quora.com')) { let overlays = document.querySelectorAll('div[class*="_overlay"]'); removeDOMElement(...overlays); @@ -6542,7 +6529,7 @@ function googleWebcacheLink(url, text_fail = 'BPC > Try for full article text:\r return externalLink(['webcache.googleusercontent.com'], 'https://{domain}/search?q=cache:{url}', url, text_fail); } -function googleSearchToolLink(url, text_fail = 'BPC > Full article text (test url & copy html (tab) code to [https://codebeautify.org/htmlviewer]:\r\n') { +function googleSearchToolLink(url, text_fail = 'BPC > Full article text (test url & copy html (tab) code to [https://codebeautify.org/htmlviewer]):\r\n') { return externalLink(['search.google.com'], 'https://search.google.com/test/rich-results?url={url}', encodeURIComponent(url), text_fail); } diff --git a/custom/manifest.json b/custom/manifest.json index 19f62cfa..e8793864 100644 --- a/custom/manifest.json +++ b/custom/manifest.json @@ -51,5 +51,5 @@ "webRequestBlocking", "*://*/*" ], - "version": "3.5.8.0" + "version": "3.5.8.1" } diff --git a/custom/sites_custom.json b/custom/sites_custom.json index 38886ced..3e81672f 100644 --- a/custom/sites_custom.json +++ b/custom/sites_custom.json @@ -70,6 +70,12 @@ "block_regex": "\\.tinypass\\.com", "domain": "blick.ch" }, + "Bm-online.de": { + "add_ext_link": "div.plenigo-teaser|div.entry-content", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "bm-online.de" + }, "Bostonmagazine.com": { "allow_cookies": 1, "domain": "bostonmagazine.com", @@ -106,6 +112,12 @@ "block_regex": "\\.piano\\.io", "domain": "businessinsider.de" }, + "Businesslive.co.za": { + "add_ext_link": "div#comment-shield|div.article-info-container", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "businesslive.co.za" + }, "Businessnews.com.au": { "allow_cookies": 1, "domain": "businessnews.com.au", @@ -751,6 +763,12 @@ "block_regex": "\\.tinypass\\.com", "domain": "supchina.com" }, + "Swp.de": { + "add_ext_link": "div.swpPayWall|section.paywall", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "swp.de" + }, "T3n.de": { "allow_cookies": 1, "domain": "t3n.de", @@ -880,6 +898,12 @@ "block_regex": "\\.tinypass\\.com", "domain": "washingtontimes.com" }, + "Wissenschaft.de": { + "add_ext_link": "div.plenigo-teaser|div.entry-content", + "add_ext_link_type": "google_search_tool", + "allow_cookies": 1, + "domain": "wissenschaft.de" + }, "Wuv.de": { "allow_cookies": 1, "domain": "wuv.de", diff --git a/manifest.json b/manifest.json index e2948fe7..a238fed7 100644 --- a/manifest.json +++ b/manifest.json @@ -568,7 +568,6 @@ "*://*.project-syndicate.org/*", "*://*.prospectmagazine.co.uk/*", "*://*.public.fr/*", - "*://*.puck.news/*", "*://*.pzc.nl/*", "*://*.quora.com/*", "*://*.quotidiano.net/*", @@ -844,5 +843,5 @@ "*://archive.vn/*", "*://webcache.googleusercontent.com/*" ], - "version": "3.5.8.0" + "version": "3.5.8.1" } diff --git a/options/popup.html b/options/popup.html index 2f2e421a..14f937b9 100644 --- a/options/popup.html +++ b/options/popup.html @@ -19,7 +19,7 @@
Options | Custom | Help | -Twitter
+X (Twitter)
Changelog | |
diff --git a/sites.js b/sites.js index 6c732510..1790ee86 100644 --- a/sites.js +++ b/sites.js @@ -1988,11 +1988,6 @@ var defaultSites = { allow_cookies: 1, block_regex: /\.poool\.fr\// }, - "Puck.news": { - domain: "puck.news", - allow_cookies: 1, - cs_dompurify: 1 - }, "Quartz (newsletter)": { domain: "qz.com", allow_cookies: 1, @@ -3050,4 +3045,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', 'abendblatt.de', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.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', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', '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', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'suedkurier.de', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'techcrunch.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_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', 'abendblatt.de', 'aftenposten.no', 'aftonbladet.se', 'allgaeuer-zeitung.de', 'arkansasonline.com', 'asahi.com', 'asiatimes.com', 'aviationweek.com', 'badische-zeitung.de', 'bhaskar.com', 'bloomberglaw.com', 'bloombergtax.com', 'bnef.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', 'ewmagazine.nl', 'falter.at', 'finance.si', 'franc-tireur.fr', 'ftchinese.com', 'ftchineselive.com', 'gamestar.de', 'geo.de', 'golem.de', 'gp.se', 'gva.be', 'handelsblatt.com', 'hbrarabic.com', 'hbrchina.org', 'hbrfrance.fr', 'heise.de', 'hs.fi', 'information.dk', 'investors.com', 'iltalehti.fi', 'jacobin.com', 'jeuneafrique.com', 'jungefreiheit.de', 'kleinezeitung.at', 'krone.at', 'laverita.info', 'lavie.fr', 'lavozdegalicia.es', 'law360.co.uk', 'law360.com', 'le1hebdo.fr', 'leconomiste.com', 'lefigaro.fr', 'lefilmfrancais.com', 'lemonde.fr', 'lequipe.fr', 'lesjours.fr', 'letemps.ch', 'liberation.fr', 'libertiesjournal.com', 'lr-online.de', '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', 'motorsport.com', 'moz.de', 'nachrichten.at', 'nationaljournal.com', 'nature.com', 'nbr.co.nz', 'newcriterion.com', 'news24.com', 'newslaundry.com', 'nn.de', 'nwzonline.de', 'observador.pt', 'on3.com', 'ouest-france.fr', 'philonomist.com', 'pnp.de', 'politicopro.com', 'politiken.dk', 'pressreader.com', 'publico.pt', 'puck.news', 'quillette.com', 'rbc.ru', 'republic.ru', 'rheinpfalz.de', 'risk.net', 'rnz.de', 'saechsische.de', 'sciencedirect.com', 'springer.com', 'statnews.com', 'stern.de', 'stimme.de', 'streetinsider.com', 'substack.com', 'suedkurier.de', 'swp.de', 'taxation.co.uk', 'taxjournal.com', 'the-ken.com', 'theinformation.com', 'theinitium.com', 'themorningcontext.com', 'theparisreview.org', 'thestar.com.my', 'thewirechina.com', 'timeslive.co.za', 'weltwoche.ch', 'weltwoche.de', 'wissenschaft.de', 'worldpoliticsreview.com', 'wz.de', 'zaobao.com.sg'].concat(de_funke_medien_nofix_domains, de_rp_aachen_medien_nofix_domains, de_westfalen_medien_nofix_domains, fr_be_groupe_rossel_nofix_domains, fr_groupe_ebra_nofix_domains, fr_indigo_nofix_domains, it_gedi_nofix_domains, nl_mediahuis_region_nofix_domains); diff --git a/sites_updated.json b/sites_updated.json index 35667512..73ada846 100644 --- a/sites_updated.json +++ b/sites_updated.json @@ -108,6 +108,13 @@ "cs_code": "[{\"cond\":\"div.cg-article-salebox\", \"rm_elem\":1, \"elems\":[{\"cond\":\"div.cg_article_meat>[style]\", \"rm_attrib\":\"style\"}, {\"cond\":\"article.article_status-cut\", \"rm_class\":\"article_status-cut\"}]}]", "upd_version": "3.5.6.6" }, + "Puck.news (removed)": { + "domain": "puck.news", + "allow_cookies": 1, + "cs_block": 1, + "nofix": 1, + "upd_version": "3.5.8.1" + }, "SPH Media": { "domain": "###_sg_sph_media", "group": [