Fix-update Folha de S. Paulo (MatherAnalytics)

This commit is contained in:
magnolia1234 2020-11-12 09:23:13 +01:00
parent cbd73db75a
commit d437eb9e64
5 changed files with 7 additions and 3 deletions

View file

@ -196,7 +196,7 @@ var blockedRegexes = {
'elmundo.es': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
'folha.uol.com.br': /(.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js|js\.matheranalytics\.com\/.+)/,
'gelocal.it': /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
'globo.com': /.+\.tinypass\.com\/.+/,
'foreignaffairs.com': /.+\.foreignaffairs\.com\/sites\/default\/files\/js\/js_P9zr.+\.js/,

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix-update Folha de S. Paulo (MatherAnalytics)
Fix-update WSJ (mobile layout)
Update custom sites: allow_cookies

View file

@ -341,5 +341,5 @@
"webRequest",
"webRequestBlocking"
],
"version": "1.9.4.2"
"version": "1.9.4.3"
}

View file

@ -7,6 +7,7 @@
<style>
body {
font-size: 100%;
text-align: center;
}
div {
margin: 10px;

View file

@ -15,7 +15,8 @@ fetch(manifest_new)
var version_new = json['version'];
if (version_new.substring(0, version_len) > manifestData.version.substring(0, version_len)) {
var versionString_new = document.getElementById('version_new');
versionString_new.appendChild(document.createTextNode(' * '));
versionString_new.setAttribute('style', 'font-weight: bold;');
versionString_new.appendChild(document.createTextNode('* '));
var anchorEl = document.createElement('a');
anchorEl.text = 'New release v' + version_new;
if (manifestData.applications.gecko.id.includes('magnolia'))
@ -24,6 +25,7 @@ fetch(manifest_new)
anchorEl.href = 'https://addons.mozilla.org/en-US/firefox/addon/bypass-paywalls-clean';
anchorEl.target = '_blank';
versionString_new.appendChild(anchorEl);
versionString_new.appendChild(document.createTextNode(' *'));
if (manifestData.name.includes('(lp')) {
let par = document.createElement('p');
par.innerHTML = "<strong>Limited permissions version is no longer updated (check BitBucket)</strong>";