Fix The Hill Times (text)

master
magnolia1234 2022-04-05 18:04:57 +02:00
parent 6f4d62028a
commit 2298571e38
2 changed files with 18 additions and 0 deletions

View File

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

View File

@ -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) {