mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 01:11:04 +00:00
Fix The Wrap (ld_json_url)
This commit is contained in:
parent
2f5d68c040
commit
a9ab7929c2
@ -7,6 +7,7 @@ Fix Inc42 (js)
|
|||||||
Fix Puck.news (ld_json_url)
|
Fix Puck.news (ld_json_url)
|
||||||
Fix Tes Magazine (css)
|
Fix Tes Magazine (css)
|
||||||
Fix The Diplomat (magazine)
|
Fix The Diplomat (magazine)
|
||||||
|
Fix The Wrap (ld_json_url)
|
||||||
Update block general paywall script (fix Ippen.space)
|
Update block general paywall script (fix Ippen.space)
|
||||||
|
|
||||||
* v3.3.2.0 (2023-09-03)
|
* v3.3.2.0 (2023-09-03)
|
||||||
|
@ -5122,9 +5122,32 @@ else if (matchDomain('theverge.com')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('thewrap.com')) {
|
else if (matchDomain('thewrap.com')) {
|
||||||
let paywall = document.querySelector('.wrappro-paywall');
|
let paywall = document.querySelector('div#zephr-payment-form-root');
|
||||||
if (paywall)
|
if (paywall && dompurify_loaded) {
|
||||||
paywall.classList.remove('wrappro-paywall');
|
removeDOMElement(paywall);
|
||||||
|
let json_url_dom = document.querySelector('link[rel="alternate"][type="application/json"][href]');
|
||||||
|
if (json_url_dom) {
|
||||||
|
let json_url = json_url_dom.href;
|
||||||
|
fetch(json_url)
|
||||||
|
.then(response => {
|
||||||
|
if (response.ok) {
|
||||||
|
response.json().then(json => {
|
||||||
|
let json_text = json.content.rendered;
|
||||||
|
let content = document.querySelector('div.entry-content');
|
||||||
|
if (json_text && content) {
|
||||||
|
let parser = new DOMParser();
|
||||||
|
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(json_text) + '</div>', 'text/html');
|
||||||
|
content.innerHTML = '';
|
||||||
|
let content_new = doc.querySelector('div');
|
||||||
|
content.appendChild(content_new, content);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
let fade = document.querySelector('div.content-area div[style*="background-image: linear-gradient"]');
|
||||||
|
removeDOMElement(fade);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('timeshighereducation.com')) {
|
else if (matchDomain('timeshighereducation.com')) {
|
||||||
@ -5648,11 +5671,12 @@ function amp_iframes_replace(weblink = false, source = '') {
|
|||||||
elem = document.createElement('iframe');
|
elem = document.createElement('iframe');
|
||||||
Object.assign(elem, {
|
Object.assign(elem, {
|
||||||
src: amp_iframe.getAttribute('src'),
|
src: amp_iframe.getAttribute('src'),
|
||||||
sandbox: amp_iframe.getAttribute('sandbox'),
|
|
||||||
height: amp_iframe.getAttribute('height'),
|
height: amp_iframe.getAttribute('height'),
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
style: 'border: 0px;'
|
style: 'border: 0px;'
|
||||||
});
|
});
|
||||||
|
if (amp_iframe.getAttribute('sandbox'))
|
||||||
|
elem.sandbox = amp_iframe.getAttribute('sandbox');
|
||||||
amp_iframe.parentNode.replaceChild(elem, amp_iframe);
|
amp_iframe.parentNode.replaceChild(elem, amp_iframe);
|
||||||
} else {
|
} else {
|
||||||
par = document.createElement('p');
|
par = document.createElement('p');
|
||||||
|
@ -51,5 +51,5 @@
|
|||||||
"webRequestBlocking",
|
"webRequestBlocking",
|
||||||
"*://*/*"
|
"*://*/*"
|
||||||
],
|
],
|
||||||
"version": "3.3.2.4"
|
"version": "3.3.2.5"
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,12 @@
|
|||||||
"domain": "businessnews.com.au",
|
"domain": "businessnews.com.au",
|
||||||
"useragent": "googlebot"
|
"useragent": "googlebot"
|
||||||
},
|
},
|
||||||
|
"Cambiocolombia.com": {
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"amp_redirect": "div#require-access",
|
||||||
|
"amp_unhide": 1,
|
||||||
|
"domain": "cambiocolombia.com"
|
||||||
|
},
|
||||||
"Capital.bg": {
|
"Capital.bg": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"domain": "capital.bg",
|
"domain": "capital.bg",
|
||||||
@ -113,6 +119,11 @@
|
|||||||
"block_regex": "\\.tinypass\\.com",
|
"block_regex": "\\.tinypass\\.com",
|
||||||
"domain": "dailyherald.com"
|
"domain": "dailyherald.com"
|
||||||
},
|
},
|
||||||
|
"Dealstreetasia.com": {
|
||||||
|
"allow_cookies": 1,
|
||||||
|
"domain": "dealstreetasia.com",
|
||||||
|
"ld_json_next": "div.subscribe-now|article"
|
||||||
|
},
|
||||||
"Diabeteshealth.co.in": {
|
"Diabeteshealth.co.in": {
|
||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"domain": "diabeteshealth.co.in",
|
"domain": "diabeteshealth.co.in",
|
||||||
|
@ -796,5 +796,5 @@
|
|||||||
"*://*.wyleex.com/*",
|
"*://*.wyleex.com/*",
|
||||||
"*://webcache.googleusercontent.com/*"
|
"*://webcache.googleusercontent.com/*"
|
||||||
],
|
],
|
||||||
"version": "3.3.2.4"
|
"version": "3.3.2.5"
|
||||||
}
|
}
|
||||||
|
4
sites.js
4
sites.js
@ -2353,8 +2353,8 @@ var defaultSites = {
|
|||||||
},
|
},
|
||||||
"The Wrap": {
|
"The Wrap": {
|
||||||
domain: "thewrap.com",
|
domain: "thewrap.com",
|
||||||
allow_cookies: 1,
|
remove_cookies_select_drop: ["blaize_session"],
|
||||||
block_regex: /\.wallkit\.net\/js\//
|
cs_dompurify: 1
|
||||||
},
|
},
|
||||||
"Times Higher Education": {
|
"Times Higher Education": {
|
||||||
domain: "timeshighereducation.com",
|
domain: "timeshighereducation.com",
|
||||||
|
@ -135,5 +135,11 @@
|
|||||||
"allow_cookies": 1,
|
"allow_cookies": 1,
|
||||||
"cs_code": "[{\"cond\":\"div.paywall\", \"rm_class\":\"paywall\", \"elems\":[{\"cond\":\"div.gated-fader\", \"rm_elem\": 1}, {\"cond\":\"div#Modal\", \"rm_elem\": 1}]}]",
|
"cs_code": "[{\"cond\":\"div.paywall\", \"rm_class\":\"paywall\", \"elems\":[{\"cond\":\"div.gated-fader\", \"rm_elem\": 1}, {\"cond\":\"div#Modal\", \"rm_elem\": 1}]}]",
|
||||||
"upd_version": "3.3.1.8"
|
"upd_version": "3.3.1.8"
|
||||||
|
},
|
||||||
|
"The Wrap": {
|
||||||
|
"domain": "thewrap.com",
|
||||||
|
"remove_cookies_select_drop": ["blaize_session"],
|
||||||
|
"ld_json_url": "div#zephr-payment-form-root|div.entry-content|1",
|
||||||
|
"upd_version": "3.3.2.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
"addons": {
|
"addons": {
|
||||||
"magnolia@12.34": {
|
"magnolia@12.34": {
|
||||||
"updates": [
|
"updates": [
|
||||||
{ "version": "3.3.1.0",
|
{ "version": "3.3.2.0",
|
||||||
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.3.1.0.xpi" }
|
"update_link": "https://gitlab.com/magnolia1234/bpc-uploads/-/raw/master/bypass_paywalls_clean-3.3.2.0.xpi" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user