Fix Bloomberg

This commit is contained in:
magnolia1234 2022-03-10 19:45:55 +01:00
parent 929af31db2
commit e07260f983
2 changed files with 2 additions and 2 deletions

View file

@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add LaMontagne.fr
Fix American Affairs (js)
Fix Bloomberg
Fix Bloomberg Quint (amp)
Fix Economist (js typo)
Fix LaNouvelleRepublique.fr (js)

View file

@ -2306,9 +2306,8 @@ else if (matchDomain('bloomberg.com')) {
removeDOMElement(...shimmering_content);
if (body_transparent)
removeClassesByPrefix(body_transparent, 'nearly-transparent-text-blur');
let premium = document.querySelector('div[data-testid="premium-label"]');
let json_script = document.querySelector('script[data-component-props="ArticleBody"], script[data-component-props="FeatureBody"]');
if (premium && json_script) {
if (json_script) {
let json = JSON.parse(json_script.innerHTML);
if (json) {
let json_text;