Fix NyTeknik.se

This commit is contained in:
magnolia1234 2023-10-10 17:39:26 +02:00
parent 6dace6e5ad
commit 0fb95e66ad
8 changed files with 37 additions and 20 deletions

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release Post-release
Fix NyTeknik.se
Fix Tuttosport (image) Fix Tuttosport (image)
* v3.3.7.0 (2023-10-08) * v3.3.7.0 (2023-10-08)
@ -1264,7 +1265,7 @@ Fix Gestion & El Comercio (Peru)
Fix Handelsblatt (only non-premium articles) Fix Handelsblatt (only non-premium articles)
Fix Il Fatto Quotidiano Fix Il Fatto Quotidiano
Fix Il Secolo XIX (mobile) Fix Il Secolo XIX (mobile)
Fix NyTeknik (images) Fix NyTeknik.se (images)
Fix NzHerald Fix NzHerald
Fix shz.de & svz.de Fix shz.de & svz.de
@ -1438,12 +1439,12 @@ Add La Nazione (Italy)
Add The Athletic Add The Athletic
Remove Rheinische Post Mediengruppe (fix obsolete) Remove Rheinische Post Mediengruppe (fix obsolete)
Fix Madsack Mediengruppe (opt-in to custom sites for unlisted) Fix Madsack Mediengruppe (opt-in to custom sites for unlisted)
Fix NyTeknik (images) Fix NyTeknik.se (images)
Fix Repubblica.it Fix Repubblica.it
Update block TinyPass (cdn only) Update block TinyPass (cdn only)
* v2.1.7.0 (2021-04-18) * v2.1.7.0 (2021-04-18)
Add NyTeknik (Sweden) Add NyTeknik.se
Add Reuters Add Reuters
Fix Crain's Chicago Business Fix Crain's Chicago Business
Fix The Diplomat (magazine) Fix The Diplomat (magazine)

View file

@ -1394,17 +1394,6 @@ if (matchDomain('etc.se')) {
} }
} }
else if (matchDomain('nyteknik.se')) {
let locked_article = document.querySelector('div.locked-article');
if (locked_article)
locked_article.classList.remove('locked-article');
window.setTimeout(function () {
let hidden_images = document.querySelectorAll('img[src=""][data-proxy-image]');
for (let hidden_image of hidden_images)
hidden_image.setAttribute('src', hidden_image.getAttribute('data-proxy-image').replace('_320', '_640'));
}, 2000);
}
else if (matchDomain('suomensotilas.fi')) { else if (matchDomain('suomensotilas.fi')) {
let obscured = document.querySelector('div.epfl-pw-obscured'); let obscured = document.querySelector('div.epfl-pw-obscured');
if (obscured) if (obscured)

View file

@ -51,5 +51,5 @@
"webRequestBlocking", "webRequestBlocking",
"*://*/*" "*://*/*"
], ],
"version": "3.3.7.1" "version": "3.3.7.2"
} }

View file

@ -348,6 +348,13 @@
"block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js", "block_regex": "\\.libraryjournal.com\\.com\\/.+\\/js\\/metering\\.js",
"domain": "libraryjournal.com" "domain": "libraryjournal.com"
}, },
"Limburger.nl": {
"add_ext_link": "div[data-cj-root='subscription-wall']|div[data-testid='article-author']",
"add_ext_link_type": "archive.is",
"allow_cookies": 1,
"cs_code": "[{\"cond\":\"div.cj-root\", \"rm_elem\":1}, {\"cond\":\"html[class]\", \"rm_attrib\":\"class\"}]",
"domain": "limburger.nl"
},
"Limerickpost.ie": { "Limerickpost.ie": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.limerickpost\\.ie\\/.+\\/flip-pay\\.js", "block_regex": "\\.limerickpost\\.ie\\/.+\\/flip-pay\\.js",
@ -420,6 +427,12 @@
"domain": "mining-journal.com", "domain": "mining-journal.com",
"ld_json": "div.article-teaser|div.article-content>p" "ld_json": "div.article-teaser|div.article-content>p"
}, },
"Nacion.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com",
"cs_code": "[{\"cond\":\"div.post\", \"rm_elem\":1, \"elems\": [{\"cond\":\"div.article-body-wrapper__styled[style]\", \"rm_attrib\":\"style\"}]}]",
"domain": "nacion.com"
},
"Nation.africa": { "Nation.africa": {
"allow_cookies": 1, "allow_cookies": 1,
"cs_code": "[{\"cond\":\"div.modal\",\"rm_elem\":1,\"elems\":[{\"cond\":\".nmgp\",\"rm_class\":\"nmgp\"}]}]", "cs_code": "[{\"cond\":\"div.modal\",\"rm_elem\":1,\"elems\":[{\"cond\":\".nmgp\",\"rm_class\":\"nmgp\"}]}]",
@ -541,6 +554,11 @@
"Quickmath.com": { "Quickmath.com": {
"domain": "quickmath.com" "domain": "quickmath.com"
}, },
"Rawstory.com": {
"allow_cookies": 1,
"block_regex": "\\.tinypass\\.com",
"domain": "rawstory.com"
},
"Researchprofessionalnews.com": { "Researchprofessionalnews.com": {
"allow_cookies": 1, "allow_cookies": 1,
"domain": "researchprofessionalnews.com", "domain": "researchprofessionalnews.com",
@ -557,6 +575,9 @@
"allow_cookies": 1, "allow_cookies": 1,
"domain": "rp-online.de" "domain": "rp-online.de"
}, },
"Rp.pl (free articles only)": {
"domain": "rp.pl"
},
"Schwaebische-post.de": { "Schwaebische-post.de": {
"allow_cookies": 1, "allow_cookies": 1,
"block_regex": "\\.schwaebische-post\\.de\\/sub\\/js\\/pc-offer-west\\.js", "block_regex": "\\.schwaebische-post\\.de\\/sub\\/js\\/pc-offer-west\\.js",

View file

@ -803,5 +803,5 @@
"*://*.wyleex.com/*", "*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*" "*://webcache.googleusercontent.com/*"
], ],
"version": "3.3.7.1" "version": "3.3.7.2"
} }

View file

@ -1673,7 +1673,7 @@ var defaultSites = {
"NyTeknik": { "NyTeknik": {
domain: "nyteknik.se", domain: "nyteknik.se",
allow_cookies: 1, allow_cookies: 1,
block_regex: /\.nyteknik\.se\/.+\/static\/js\/site\.min\.js/ useragent: "googlebot"
}, },
"O Estado de S. Paulo": { "O Estado de S. Paulo": {
domain: "estadao.com.br", domain: "estadao.com.br",
@ -2626,7 +2626,7 @@ var defaultSites = {
domain: "piano.io", domain: "piano.io",
allow_cookies: 1, allow_cookies: 1,
block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/, block_regex_general: /\.piano\.io\/xbuilder\/experience\/execute/,
excluded_domains: ["piano.io", "hbr.org", "japantimes.co.jp", "kurier.at", "onet.pl"] excluded_domains: ["piano.io", "hbr.org", "japantimes.co.jp", "kurier.at", "nacion.com", "onet.pl"]
}, },
"Pico.tools": { "Pico.tools": {
domain: "pico.tools", domain: "pico.tools",

View file

@ -80,6 +80,12 @@
"cs_dompurify": 1, "cs_dompurify": 1,
"upd_version": "3.3.6.4" "upd_version": "3.3.6.4"
}, },
"NyTeknik": {
"domain": "nyteknik.se",
"allow_cookies": 1,
"useragent": "googlebot",
"upd_version": "3.3.7.2"
},
"Salzburger Nachrichten": { "Salzburger Nachrichten": {
"domain": "sn.at", "domain": "sn.at",
"allow_cookies": 1, "allow_cookies": 1,

View file

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