diff --git a/README.md b/README.md index 7ed50c3..330e73f 100755 --- a/README.md +++ b/README.md @@ -14,7 +14,9 @@ Due to [Google internal policy](https://developer.chrome.com/webstore/program_po 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)) +#### Load unpacked: Chrome (desktop), 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 GitLab](https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/archive/master/bypass-paywalls-chrome-clean-master.zip). 2. Unzip the file and you should have a folder named `magnolia1234-bypass-paywalls-chrome-clean-(commit-hash)`. 3. Move the folder to a permanent location on your computer (do not delete the folder after installation). @@ -27,7 +29,9 @@ In extension developer mode you can always install BPC by `Load unpacked` (no au 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). -#### CRX-file: other Chromium browsers (Opera/Vivaldi) (or add extension to 'whitelist' for Chrome, MS Edge, Brave or Yandex (see instructions below for Windows)) +#### 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 [releases page](https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/releases). 2. In your browser go to the extensions page. 3. Enable Developer Mode. diff --git a/background.js b/background.js index 49ef55b..fa8ce21 100755 --- a/background.js +++ b/background.js @@ -183,7 +183,7 @@ var blockedRegexes = { 'chicagotribune.com': /.+:\/\/.+\.tribdss\.com\/.+/, 'chronicle.com': /(.+\.blueconic\.net\/.+|assets\.login\.chronicle\.com\/common\/che-auth0-user\.js)/, 'clarin.com': /js\.matheranalytics\.com\/.+/, - 'corriere.it': /(\.rcsobjects\.it\/(rcs_cpmt|rcs_tracking-service)\/|\.corriereobjects\.it\/.+\/js\/(_paywall\.sjs|tracking\/)|\.userzoom\.com\/files\/js\/|\.lp4\.io\/app\/)/, + 'corriere.it': /(cdn\.tinypass\.com\/.+|\.rcsobjects\.it\/(rcs_cpmt|rcs_tracking-service)\/|\.corriereobjects\.it\/.+\/js\/(_paywall\.sjs|tracking\/)|\.userzoom\.com\/files\/js\/)/, 'digiday.com': /cdn\.tinypass\.com\/.+/, 'dvhn.nl': /.+\.evolok\.net\/.+\/authorize\/.+/, 'economist.com': /cdn\.tinypass\.com\/.+/, diff --git a/changelog.txt b/changelog.txt index d1e2f5e..03f1e56 100644 --- a/changelog.txt +++ b/changelog.txt @@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome Post-release Add Grupo Vocento (Spain, regional daily) +Fix-update Corriere Della Sera (redirect preview) Update block general paywall script (Pelcro) Update grouped sites (init rules) diff --git a/contentScript.js b/contentScript.js index 34d9165..74bf8e1 100755 --- a/contentScript.js +++ b/contentScript.js @@ -1657,6 +1657,15 @@ else if (matchDomain(es_grupo_vocento_domains)) { } } +else if (matchDomain("corriere.it")) { + let url = window.location.href; + if (url.includes('_preview.shtml')) { + window.setTimeout(function () { + window.location.href = url.replace('_preview.shtml', '.shtml').split('?')[0]; + }, 500); // Delay (in milliseconds) + } +} + // General Functions function removeDOMElement(...elements) { for (let element of elements) { diff --git a/manifest.json b/manifest.json index 4be7d26..b34ee26 100644 --- a/manifest.json +++ b/manifest.json @@ -334,7 +334,6 @@ "*://*.htmedia.in/*", "*://*.jsdelivr.net/*", "*://*.lightboxcdn.com/*", - "*://*.lp4.io/*", "*://*.mppglobal.com/*", "*://*.nyt.com/*", "*://*.pasedigital.cl/*", @@ -343,5 +342,5 @@ "*://*.repstatic.it/*", "*://*.userzoom.com/*" ], - "version": "1.9.6.2" + "version": "1.9.6.3" } \ No newline at end of file diff --git a/version.js b/version.js index eb55f56..5696a41 100644 --- a/version.js +++ b/version.js @@ -20,7 +20,10 @@ fetch(proxyurl + manifest_new) versionString_new.appendChild(document.createTextNode('* ')); var anchorEl = document.createElement('a'); anchorEl.text = 'New release v' + version_new; - anchorEl.href = 'https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/releases'; + if (installType === 'development') + anchorEl.href = 'https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean'; + else + anchorEl.href = 'https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/releases'; anchorEl.target = '_blank'; versionString_new.appendChild(anchorEl); versionString_new.appendChild(document.createTextNode(' *'));