Fix-update Corriere Della Sera (redirect preview)

master
magnolia1234 2020-11-22 15:25:12 +01:00
parent 8f49d5b593
commit ef24e0b8b9
6 changed files with 22 additions and 6 deletions

View File

@ -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.

View File

@ -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\/.+/,

View File

@ -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)

View File

@ -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) {

View File

@ -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"
}

View File

@ -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(' *'));