Fix Scientific American (js)

This commit is contained in:
magnolia1234 2023-08-30 17:44:20 +02:00
parent 21646f8db1
commit d7d4259fe4
7 changed files with 10 additions and 117 deletions

View file

@ -67,7 +67,7 @@ Use adblocker with custom (content)filter & userscript (manager): https://gitlab
* If a site doesn't work, first try to turn off your adblocker (or other extension) and refresh page.
* Make sure the (new) site is checked under Options.
* Clear cookies by add-on's icon and grant permission for site (or opt-in to custom sites)
* You will be logged out for most of the sites you have enabled.
* You will be logged out for some of the sites you have enabled.
* Make sure you're running the latest version of Bypass Paywalls Clean.
* Some sites need to redirect to an amp-page (add an exception in your `Redirect AMP to HTML` or `DuckDuckGo Privacy Essentials` add-on).
* If none of these work, you can [submit an issue](https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/issues).

View file

@ -162,7 +162,7 @@ function check_sites_updated() {
if (response.ok) {
response.json().then(json => {
json = filterObject(json, function (val, key) {
let domain_filter = ['###_usa_genomeweb', '###_usa_theathletic'];
let domain_filter = ['###_usa_theathletic'];
return (val.domain && !domain_filter.includes(val.domain) && !(val.new_site || (val.upd_version && (val.upd_version <= ext_version))))
});
expandSiteRules(json, true);

View file

@ -4,6 +4,7 @@ Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywal
Post-release
Fix Forbes (menu)
Fix Scientific American (js)
Fix Star Tribune (css)
Fix WSJ (amp live coverage)
Maintenance background tab

View file

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.3.1.3"
"version": "3.3.1.4"
}

View file

@ -792,5 +792,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.3.1.3"
"version": "3.3.1.4"
}

View file

@ -1887,7 +1887,7 @@ var defaultSites = {
"Scientific American": {
domain: "scientificamerican.com",
allow_cookies: 1,
remove_cookies: 1
block_regex: /\.scientificamerican\.com\/api\/tinypass\.min\.js/
},
"Seeking Alpha": {
domain: "seekingalpha.com",

View file

@ -5,18 +5,6 @@
"block_regex": "(\\.cm\\.bloomberg\\.com\\/|assets\\.bwbx\\.io\\/s\\d\\/javelin\\/.+\\/transporter\\/)",
"upd_version": "3.2.7.1"
},
"Ciel & espace": {
"domain": "cieletespace.fr",
"allow_cookies": 1,
"ld_google_webcache": "div.article-content__subscribe|div.article-content",
"upd_version": "3.2.9.8"
},
"Crusoe.com.br": {
"domain": "crusoe.com.br",
"allow_cookies": 1,
"block_regex": "\\.crusoe\\.com\\.br\\/assets\\/js\\/swg-wallcontent-crusoe\\.js",
"upd_version": "3.2.9.8"
},
"Fast Company": {
"domain": "fastcompany.com",
"allow_cookies": 1,
@ -30,27 +18,6 @@
"block_regex": "(\\.tinypass\\.com|\\.blueconic\\.net)",
"upd_version": "3.3.0.8"
},
"GenomeWeb": {
"domain": "###_usa_genomeweb",
"group": [
"360dx.com",
"genomeweb.com"
],
"allow_cookies": 1,
"block_regex": "\\.com\\/.+\\/js\\/js_.+\\.js",
"upd_version": "3.2.9.5"
},
"Harvard Business Review": {
"domain": "hbr.org",
"block_regex": "cdn\\.cxense\\.com",
"upd_version": "3.2.8.2"
},
"La Stampa": {
"domain": "lastampa.it",
"block_js_inline": "\\.lastampa\\.it",
"remove_cookies_select_drop": ["blaize_session"],
"upd_version": "3.2.8.8"
},
"LeTemps.ch": {
"domain": "letemps.ch",
"allow_cookies": 1,
@ -68,25 +35,11 @@
"cs_dompurify": 1,
"upd_version": "3.3.0.1"
},
"Piano.io (+ TinyPass)": {
"domain": "piano.io",
"Scientific American": {
"domain": "scientificamerican.com",
"allow_cookies": 1,
"block_regex_general": "\\.piano\\.io\\/xbuilder\\/experience\\/execute",
"excluded_domains": ["piano.io", "asia.nikkei.com", "hbr.org", "japantimes.co.jp", "kurier.at", "onet.pl"],
"upd_version": "3.2.8.2"
},
"Pensions & Investments": {
"domain": "pionline.com",
"allow_cookies": 1,
"block_regex": "\\.pionline\\.com\\/.+\\/js\\/js_.+\\.js",
"cs_code": "[{\"cond\":\"body[class]\", \"rm_attrib\":\"class\"}]",
"upd_version": "3.2.9.5"
},
"Precision Medicine Online": {
"domain": "precisionmedicineonline.com",
"allow_cookies": 1,
"block_regex": "\\.precisionmedicineonline\\.com\\/.+\\/js\\/js_.+\\.js",
"upd_version": "3.2.9.5"
"block_regex": "\\.scientificamerican\\.com\\/api\\/tinypass\\.min\\.js",
"upd_version": "3.3.1.4"
},
"The Athletic": {
"domain": "###_usa_theathletic",
@ -97,18 +50,6 @@
"block_regex": "(\\/theathletic\\.com\\/_next\\/static\\/chunks\\/pages\\/article\\/.+\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|subscriptions)-.+\\.js)",
"upd_version": "3.2.1.1"
},
"The Economic Times (ET Prime)": {
"domain": "###_economictimes",
"group": [
"economictimes.com",
"economictimes.indiatimes.com"
],
"allow_cookies": 1,
"useragent": "googlebot",
"cs_dompurify": 1,
"cs_code": "[{\"cond\":\"div.article_wrap[style]\", \"rm_attrib\":\"style\"}]",
"upd_version": "3.2.8.9"
},
"The Economist": {
"domain": "economist.com",
"allow_cookies": 1,
@ -122,54 +63,5 @@
"block_regex": "(\\.nytimes\\.com\\/meter\\.js|mwcm\\.nyt\\.com\\/.+\\.js|cooking\\.nytimes\\.com\\/api\\/.+\\/access)",
"useragent": "googlebot",
"upd_version": "3.1.4.0"
},
"The Toronto Star (+ local TorStar sites)": {
"domain": "###_ca_torstar",
"group": [
"niagarafallsreview.ca",
"stcatharinesstandard.ca",
"thepeterboroughexaminer.com",
"therecord.com",
"thespec.com",
"thestar.com",
"wellandtribune.ca"
],
"allow_cookies": 1,
"block_regex": "(\\.(com|ca)\\/shared-content\\/art\\/tncms\\/api\\/access\\.js|cdn\\.ampproject\\.org\\/v\\d\\/amp-access-.+\\.js)",
"cs_dompurify": 1,
"upd_version": "3.2.8.3"
},
"The Week - UK": {
"domain": "theweek.co.uk",
"allow_cookies": 1,
"useragent": "googlebot",
"upd_version": "3.2.8.5"
},
"The Week - USA": {
"domain": "theweek.com",
"allow_cookies": 1,
"useragent": "googlebot",
"upd_version": "3.2.8.5"
},
"Times of India": {
"domain": "###_timesofindia",
"group": [
"timesofindia.com",
"timesofindia.indiatimes.com"
],
"allow_cookies": 1,
"useragent": "googlebot",
"exception": [{
"domain": "timesofindia.indiatimes.com",
"allow_cookies": 1,
"amp_redirect": "div[id^='story-blocker]"
}
],
"upd_version": "3.2.8.4"
},
"TownNews sites (Blox CMS)": {
"domain": "###_usa_townnews",
"block_regex_general": "\\/shared-content\\/art\\/tncms\\/api\\/access\\.js",
"upd_version": "3.2.8.3"
}
}