Release v2.3.5.0

This commit is contained in:
magnolia1234 2021-08-29 19:59:07 +02:00
parent 9d958ada0f
commit f43196a470
4 changed files with 9 additions and 7 deletions

View file

@ -2,6 +2,8 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
* v2.3.5.0 (2021-08-29)
Add Forbes
Add Law360 (free articles only)
Fix Bloomberg (graphics)

View file

@ -554,5 +554,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.3.4.6"
"version": "2.3.5.0"
}

View file

@ -46,7 +46,7 @@ function renderOptions() {
inputEl.type = 'checkbox';
inputEl.dataset.key = key;
inputEl.dataset.value = value;
inputEl.checked = Object.keys(sites).some(title => keyCompare(title, key)) && !sites_excluded.includes(value);
inputEl.checked = Object.keys(sites).some(title => compareKey(title, key)) && !sites_excluded.includes(value);
if (value !== '###') {
labelEl.appendChild(inputEl);
} else {
@ -73,7 +73,7 @@ function renderOptions() {
inputEl.type = 'checkbox';
inputEl.dataset.key = key;
inputEl.dataset.value = domain;
inputEl.checked = Object.keys(sites).some(title => keyCompare(title, key)) && !sites_excluded.includes(domain);
inputEl.checked = Object.keys(sites).some(title => compareKey(title, key)) && !sites_excluded.includes(domain);
if (value !== '' && value !== '###') {
labelEl.appendChild(inputEl);
}
@ -120,8 +120,8 @@ function closeButton() {
open(location).close();
}
function keyCompare(firstStr, secondStr) {
return firstStr.toLowerCase().replace(/\s\(.*\)/, '') === secondStr.toLowerCase().replace(/\s\(.*\)/, '')
function compareKey(firstStr, secondStr) {
return firstStr.toLowerCase().replace(/\s\(.*\)/, '') === secondStr.toLowerCase().replace(/\s\(.*\)/, '');
}
document.addEventListener('DOMContentLoaded', renderOptions);

View file

@ -2,8 +2,8 @@
"addons": {
"magnolia@12.34": {
"updates": [
{ "version": "2.3.4.1",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-2.3.4.1.xpi" }
{ "version": "2.3.5.0",
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-2.3.5.0.xpi" }
]
}
}