mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:11:56 +01:00
Fix Expresso.pt (json)
Fix The Athletic (scroll)
This commit is contained in:
parent
f6f0664d65
commit
6961b0693c
6 changed files with 13 additions and 43 deletions
|
@ -3,6 +3,8 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
|
||||
|
||||
Post-release
|
||||
Fix Expresso.pt (json)
|
||||
Fix The Athletic (scroll)
|
||||
|
||||
* v3.6.0.0 (2024-03-17)
|
||||
Add Courrier international
|
||||
|
|
|
@ -1712,11 +1712,14 @@ else if (matchDomain('expresso.pt')) {
|
|||
try {
|
||||
article.innerHTML = '';
|
||||
let json = JSON.parse(html.split(/window\.__INITIAL_DATA__\s?=\s?/)[1].split(';window.')[0].replace(/":undefined([,}])/g, "\":\"undefined\"$1")).nodes;
|
||||
let pars;
|
||||
let pars = [];
|
||||
for (let elem in json) {
|
||||
let item = json[elem];
|
||||
if (item.type === 'Layout' && item.nodes[0].type === 'MainBody') {
|
||||
pars = item.nodes[0].nodes[0].data.content.contents;
|
||||
if (item.type === 'Layout') {
|
||||
for (let elem of item.nodes) {
|
||||
if (elem.type === 'MainBody')
|
||||
pars = elem.nodes[0].data.content.contents;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -5285,6 +5288,7 @@ else if (matchDomain('theathletic.com')) {
|
|||
if (body) {
|
||||
body.style.overflow = 'visible';
|
||||
body.style.position = 'relative';
|
||||
window.scrollTo(0, 1000);
|
||||
}
|
||||
}
|
||||
waitDOMElement('div[id^="slideup-"]', 'DIV', theathletic_func);
|
||||
|
|
|
@ -51,5 +51,5 @@
|
|||
"webRequestBlocking",
|
||||
"*://*/*"
|
||||
],
|
||||
"version": "3.6.0.0"
|
||||
"version": "3.6.0.1"
|
||||
}
|
||||
|
|
|
@ -860,5 +860,5 @@
|
|||
"*://archive.vn/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "3.6.0.0"
|
||||
"version": "3.6.0.1"
|
||||
}
|
||||
|
|
|
@ -30,19 +30,6 @@
|
|||
"ld_archive_is": "div#paywall-container|article",
|
||||
"upd_version": "3.5.8.3"
|
||||
},
|
||||
"Haaretz Group": {
|
||||
"domain": "###_il_haaretz_group",
|
||||
"group": [
|
||||
"haaretz.co.il",
|
||||
"haaretz.com",
|
||||
"themarker.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "\\.co(m|\\.il)\\/.+\\/magazine\\/page-.+\\.js",
|
||||
"cs_dompurify": 1,
|
||||
"useragent_custom": "Mozilla/5.0 (Java) outbrain",
|
||||
"upd_version": "3.5.7.2"
|
||||
},
|
||||
"Hearst Communications (newspapers)": {
|
||||
"domain": "###_usa_hearst_comm",
|
||||
"group": [
|
||||
|
@ -58,24 +45,12 @@
|
|||
"cs_code": "[{\"cond\":\"div#modals\", \"rm_elem\":1}, {\"cond\":\"body[style]\", \"rm_attrib\":\"style\"}]",
|
||||
"upd_version": "3.5.8.5"
|
||||
},
|
||||
"Il Sole 24 Ore": {
|
||||
"domain": "ilsole24ore.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.ilsole24ore\\.com\\/zephr\\/feature|\\.cloudfront\\.net\\/embed\\/widget\\/subx.+\\.js)",
|
||||
"upd_version": "3.5.7.7"
|
||||
},
|
||||
"LeMoniteur.fr": {
|
||||
"domain": "lemoniteur.fr",
|
||||
"allow_cookies": 1,
|
||||
"ld_google_webcache": "div.blocPasEncoreAbonne|div.articleContent",
|
||||
"upd_version": "3.5.9.7"
|
||||
},
|
||||
"Medscape (regwall)": {
|
||||
"domain": "medscape.com",
|
||||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.medscapestatic\\.com\\/.+\\/medscape-library|\\.wbmdstatic\\.com\\/.+\\/chunk-vendors\\..+)\\.js",
|
||||
"upd_version": "3.5.7.6"
|
||||
},
|
||||
"Mid-Day": {
|
||||
"domain": "mid-day.com",
|
||||
"allow_cookies": 1,
|
||||
|
@ -116,17 +91,6 @@
|
|||
"nofix": 1,
|
||||
"upd_version": "3.5.8.1"
|
||||
},
|
||||
"SPH Media": {
|
||||
"domain": "###_sg_sph_media",
|
||||
"group": [
|
||||
"straitstimes.com"
|
||||
],
|
||||
"allow_cookies": 1,
|
||||
"add_ext_link": "div#nocx_paywall_area|main#content",
|
||||
"add_ext_link_type": "archive.is",
|
||||
"ld_archive_is": "div#nocx_paywall_area|main#content",
|
||||
"upd_version": "3.5.7.1"
|
||||
},
|
||||
"Südkurier": {
|
||||
"domain": "suedkurier.de",
|
||||
"allow_cookies": 1,
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
"addons": {
|
||||
"magnolia@12.34": {
|
||||
"updates": [
|
||||
{ "version": "3.5.9.0",
|
||||
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.5.9.0.xpi" }
|
||||
{ "version": "3.6.0.0",
|
||||
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.6.0.0.xpi" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue