diff --git a/changelog.txt b/changelog.txt index f85569da..73458e19 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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) diff --git a/manifest.json b/manifest.json index b859e775..c37257bd 100644 --- a/manifest.json +++ b/manifest.json @@ -554,5 +554,5 @@ "*://*.wallkit.net/*", "*://*.wsj.net/*" ], - "version": "2.3.4.6" + "version": "2.3.5.0" } \ No newline at end of file diff --git a/options/options.js b/options/options.js index 091694b0..0768b01a 100644 --- a/options/options.js +++ b/options/options.js @@ -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); diff --git a/updates.json b/updates.json index 04d15eee..0656fc90 100644 --- a/updates.json +++ b/updates.json @@ -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" } ] } }