mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:17:46 +01:00
Fix The Hill Times (text)
This commit is contained in:
parent
fc993aa3d8
commit
e5c8ff4426
2 changed files with 18 additions and 0 deletions
|
@ -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…
Reference in a new issue