Fix-update Corriere Della Sera (redirect preview)

This commit is contained in:
magnolia1234 2020-11-22 15:25:28 +01:00
parent 9b35bae0f9
commit 3f6f161d3f
5 changed files with 18 additions and 6 deletions

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 - Firefox
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

@ -347,7 +347,6 @@
"*://*.htmedia.in/*",
"*://*.jsdelivr.net/*",
"*://*.lightboxcdn.com/*",
"*://*.lp4.io/*",
"*://*.mppglobal.com/*",
"*://*.nyt.com/*",
"*://*.pasedigital.cl/*",
@ -356,5 +355,5 @@
"*://*.repstatic.it/*",
"*://*.userzoom.com/*"
],
"version": "1.9.6.2"
"version": "1.9.6.3"
}

View file

@ -20,9 +20,12 @@ fetch(proxyurl + manifest_new)
versionString_new.appendChild(document.createTextNode('* '));
var anchorEl = document.createElement('a');
anchorEl.text = 'New release v' + version_new;
if (manifestData.applications.gecko.id.includes('magnolia'))
anchorEl.href = 'https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases';
else
if (manifestData.applications.gecko.id.includes('magnolia')) {
if (installType === 'development')
anchorEl.href = 'https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean';
else
anchorEl.href = 'https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases';
} else
anchorEl.href = 'https://addons.mozilla.org/en-US/firefox/addon/bypass-paywalls-clean';
anchorEl.target = '_blank';
versionString_new.appendChild(anchorEl);