Fix The Hill Times (text)

This commit is contained in:
magnolia1234 2022-04-05 18:05:13 +02:00
parent fc993aa3d8
commit e5c8ff4426
2 changed files with 18 additions and 0 deletions

View file

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

View file

@ -2731,6 +2731,23 @@ else if (matchDomain('hbrchina.org')) {
div_hidden.removeAttribute('style'); 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')) { else if (matchDomain('hindustantimes.com')) {
let paywall = document.querySelector('.freemium-card'); let paywall = document.querySelector('.freemium-card');
if (paywall) { if (paywall) {