Fix Bloomberg (timing)

This commit is contained in:
magnolia1234 2022-01-06 16:40:57 +01:00
parent e432983269
commit 5a889d4e38
3 changed files with 4 additions and 3 deletions

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Fix Bloomberg (timing)
Fix Handelsblatt (no amp)
Fix trimmed referer (restrictions)

View file

@ -2034,12 +2034,12 @@ else if (matchDomain('bloomberg.com')) {
}
let shimmering_content = document.querySelectorAll('div.shimmering-text');
let body_transparent = document.querySelector('div[class*="nearly-transparent-text-blur"]');
if (shimmering_content.length || body_transparent) {
if ((shimmering_content.length || body_transparent) && dompurify_loaded) {
removeDOMElement(...shimmering_content);
if (body_transparent)
removeClassesByPrefix(body_transparent, 'nearly-transparent-text-blur');
let json_script = document.querySelector('script[data-component-props="ArticleBody"], script[data-component-props="FeatureBody"]');
if (json_script && dompurify_loaded) {
if (json_script) {
let json = JSON.parse(json_script.innerHTML);
if (json) {
let json_text;

View file

@ -605,5 +605,5 @@
"*://*.wsj.net/*",
"*://*.zephr.com/*"
],
"version": "2.5.0.2"
"version": "2.5.0.3"
}