From 8dc02ccd7073eb5b25dd70b3b6a8241c764cefee Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Thu, 1 Oct 2020 16:11:39 +0200 Subject: [PATCH] Update link changelog (raw/text) Plus some readme updates --- README.md | 24 +++++++++++++++--------- changelog.txt | 16 ++++++++-------- contentScript.js | 6 +++--- options.html | 2 +- popup.html | 2 +- 5 files changed, 28 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 9dae851..fdad579 100755 --- a/README.md +++ b/README.md @@ -11,27 +11,33 @@ ### Installation instructions Due to [Google internal policy](https://developer.chrome.com/webstore/program_policies), the extension is not available on the Chrome Web Store. -The following instructions are needed to install third-party extensions in [Chromium](https://en.wikipedia.org/wiki/Chromium_(web_browser))-based browsers: -#### Chrome (Windows, MacOS, Linux), Microsoft Edge (Chromium)/Brave/Yandex (or 'whitelist' extension and install automatically updating crx-file; see below) -1. Download this repository as a [ZIP file from BitBucket](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/get/master.zip). +The following instructions are needed to install third-party extensions in [Chromium](https://en.wikipedia.org/wiki/Chromium_(web_browser))-based desktop browsers. +In extension developer mode you can always install BPC by `Load unpacked` (no automatic updates) or by crx-file (automatic updates, but possible 'whitelisting' of extension is needed). + +#### Load unpacked: Chrome (Windows, MacOS, Linux), Microsoft Edge (Chromium)/Brave/Yandex +Or 'whitelist' extension and install automatically updating crx-file (see next section) +1. Download this repository as a [ZIP-file from BitBucket](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/get/master.zip). 2. Unzip the file and you should have a folder named `magnolia1234-bypass-paywalls-chrome-clean-master`. 3. Move the folder to a permanent location on your computer (do not delete the folder after installation). * replace manifest.json with the one in lp-folder if you want to use the limited permissions version (custom sites will not be working though). 4. Go to the extensions page (`chrome://extensions` or `edge://extensions`). 5. Enable Developer Mode. 6. Click `Load unpacked` and select the extension folder. + * in Chrome/Opera/Brave disable the developer mode extensions popup by enabling the extensions toolbar menu under (experimental) chrome flags: chrome://flags/#extensions-toolbar-menu If you're familiar with Git(Hub)-clients you can also clone this repo and update the extension that way (load unpacked folder used by Git(Hub)-client). -#### Other Chromium browsers (Opera/Vivaldi) or add extension to 'whitelist' for Chrome, MS Edge, Brave or Yandex (see instructions below for Windows) -1. Download the extension as a .crx file from the [download page](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/downloads). +#### CRX-file: other Chromium browsers (Opera/Vivaldi) +Or add extension to 'whitelist' for Chrome, MS Edge, Brave or Yandex (see instructions below for Windows) +1. Download the extension as a crx-file from the [download page](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean/downloads). 2. In your browser go to the extensions page. 3. Enable Developer Mode. -4. Drag your .crx file anywhere on the page to import it. -5. If dragging crx does not work, try Chrome procedure (above). -* In Windows 'whitelist' BPC (run as administrator one of the files in [whitelist-downloads](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean-whitelist/downloads) -If you already have 'whitelisted' extensions than you should change "1" to a new key (and change name in HLM-key for beta/developer versions of browsers). +4. Drag your crx-file anywhere on the page to import it. +5. If dragging crx-file does not work, try Chrome procedure (above). + +* In Windows 'whitelist' BPC (run as administrator one of the reg-files in [whitelist-downloads](https://bitbucket.org/magnolia1234/bypass-paywalls-chrome-clean-whitelist/downloads) +If you already have 'whitelisted' extensions than you should change "1" to a new key (also change name of HLM-key for beta/developer versions of browsers). Example Chrome-regfile: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallWhitelist] diff --git a/changelog.txt b/changelog.txt index 2c2012f..5c46e9c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -50,7 +50,7 @@ Add general paywall-script Cxense * v1.8.3.0 (2020-08-30) Add Chronicle of Higher Education Add Diario Financiero (Chile) -Add El Mercurio de Valparaíso (Chile) +Add El Mercurio de Valparaiso (Chile) Fix-update MIT Technology Review Remove copy-notice in copied text of Financial Times (ft.com) Update show options on update (now optional) @@ -80,7 +80,7 @@ Update installation instructions Add CharlieHebdo.fr Add La Segunda (Chile) Add LeSoir.be -Add Süddeutsche Zeitung (amp for plus) +Add Sueddeutsche Zeitung (amp for plus) Fix-update elMercurio Legal (Chile) Fix-update Fd.nl (modal/newsletter query string) Fix-update Inkl (cookies) @@ -90,7 +90,7 @@ Fix-update LesEchos.fr (lp-version) * v1.7.9.0 (2020-07-15) Fix-update Clarin (block MatherAnalytics) Fix-update El Mercurio (Chile) -Fix-update Neue Zürcher Zeitung +Fix-update Neue Zuercher Zeitung Fix-update NY Times (incognito mode) Fix-update The Hindu (cookies) Fix-update ValeursActuelles.fr (Qiota) @@ -193,7 +193,7 @@ Maintenance Ad.nl (regional) Sort-button custom sites * v1.7.0.2 (2020-04-05) -Add Gestión (Peru) & fix El Comercio +Add Gestion (Peru) & fix El Comercio Add LeScienze.it Add Science & Vie Fix Barron's links to sign in/read more articles @@ -206,7 +206,7 @@ Fix-update Telegraaf.nl (FF meta-refresh) Add El Comercio (Peru) Add L'Opinion.fr Add LiveMint (India) -Add Neue Zürcher Zeitung +Add Neue Zuercher Zeitung Add The New Republic Remove ET Prime (obsolete) Fix Telegraaf.nl @@ -260,7 +260,7 @@ Update Options - new release check * v1.6.3.1 (2020-02-20) Add Australian Community Media daily newspapers -Add Clarín (Argentina) +Add Clarin (Argentina) Add WAtoday (Australia) Fix-update TheNation paywall-script block Refresh tab after saved options @@ -305,11 +305,11 @@ Fix London Review of Books (allow cookies) * v1.6.1.5 (2020-01-19) Add Challenges.fr Add Digiday -Add El País +Add El Pais Add Folha de S. Paulo, O Globo, Valor Econômico, O Estado de S. Paulo, Exame (Brazil) Add Fortune (magazine) Add LaStampa.it -Add Libération.fr +Add Liberation.fr Add Miami Herald Add ValeursActuelles.fr Fix json-bug at install/options (when not saving options) diff --git a/contentScript.js b/contentScript.js index 5a2cbe7..bb6e07e 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1,4 +1,4 @@ -"use strict"; +//"use strict"; var ext_api = (typeof browser === 'object') ? browser : chrome; var domain; @@ -940,7 +940,7 @@ else if (matchDomain("noordhollandsdagblad.nl")) { if (auth_body_par_count.length < 2) { let url = window.location.href; let html = document.documentElement.outerHTML; - let split1 = html.split('window["__PRELOADED_STATE_GRAPH__')[1]; + let split1 = html.split('window["__PRELOADED_STATE_GRAPH__')[1].split(/=(.+)/)[1]; let split2 = split1.split('')[0].trim(); let split3 = split2.split('"body":')[1]; let state = split3.split('},"')[0] + '}'; @@ -948,7 +948,7 @@ else if (matchDomain("noordhollandsdagblad.nl")) { let data = JSON.parse(state); let article = data.json; auth_body.innerHTML = ''; - let par_html, par_dom, par_elem, par_div; + let par_html, par_dom, par_elem, par_div, par_key; let parser = new DOMParser(); for (let par of article) { for (let key in par) { diff --git a/options.html b/options.html index f6693ff..489d844 100644 --- a/options.html +++ b/options.html @@ -15,7 +15,7 @@

Options |

-
Changelog +
Changelog
Selected sites will have their cookies cleared and referer set to Google. You should uncheck sites you have an account with or else you will be logged out at every visit.
diff --git a/popup.html b/popup.html index f8ba851..e0a3891 100644 --- a/popup.html +++ b/popup.html @@ -9,7 +9,7 @@ Custom | BitBucket | -
Changelog +
Changelog