Fix The Hill Times (text)

merge-requests/4/head
magnolia1234 2 years ago
parent fc993aa3d8
commit e5c8ff4426

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix The Hill Times (text)
* v2.6.3.0 (2022-04-03)
Add Diario Cordoba

@ -2731,6 +2731,23 @@ else if (matchDomain('hbrchina.org')) {
div_hidden.removeAttribute('style');
}
else if (matchDomain('hilltimes.com')) {
let paywall = document.querySelector('div.paywallcont');
if (paywall) {
removeDOMElement(paywall);
let json_script = getArticleJsonScript();
if (json_script) {
let json = JSON.parse(json_script.text).filter(x => x.articleBody)[0];
if (json) {
let json_text = json.articleBody.replace(/ /g, '').replace(/(\.|\%)\s{3,}/g, "$&\r\n\r\n");
let content = document.querySelector('div#xorg');
if (json_text && content)
content.innerText = '\r\n' + json_text;
}
}
}
}
else if (matchDomain('hindustantimes.com')) {
let paywall = document.querySelector('.freemium-card');
if (paywall) {

Loading…
Cancel
Save