mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-12 01:10:24 +00:00
Fix Bloomberg (charts)
This commit is contained in:
parent
002f648487
commit
59f44256ad
@ -4,6 +4,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||
Post-release
|
||||
Remove Sueddeutsche Zeitung (obsolete)
|
||||
Fix ABC.es (Evolok)
|
||||
Fix Bloomberg (charts)
|
||||
Fix Business Standard
|
||||
Fix Il Tirreno (GElocal.it)
|
||||
Fix Financial Times (amp)
|
||||
|
@ -1637,6 +1637,17 @@ else if (matchDomain('bloomberg.com')) {
|
||||
hidden_image.setAttribute('src', hidden_image.getAttribute('data-native-src'));
|
||||
hidden_image.style.filter = 'none';
|
||||
}
|
||||
let hidden_charts = document.querySelectorAll('div[data-toaster-id][data-src]');
|
||||
for (let hidden_chart of hidden_charts) {
|
||||
let elem = document.createElement('iframe');
|
||||
Object.assign(elem, {
|
||||
src: hidden_chart.getAttribute('data-src'),
|
||||
frameborder: 0,
|
||||
height: hidden_chart.getAttribute('style').replace('min-height: ', ''),
|
||||
scrolling: 'no'
|
||||
});
|
||||
hidden_chart.parentNode.replaceChild(elem, hidden_chart);
|
||||
}
|
||||
let blur = document.querySelector('div.blur[style]');
|
||||
if (blur) {
|
||||
blur.classList.remove('blur');
|
||||
|
@ -20,7 +20,7 @@
|
||||
<h2>Custom Sites</h2>
|
||||
<div style="width:90%;">
|
||||
To add a new site, enter an unique title/domain (without www.).<br>
|
||||
Select options for useragent (like Googlebot), set referer (ignored when Googlebot is set), block Javascript (on (sub)domain(s) of site and/or external domains), block regular expression (ignored when default site blocks regex) and/or unhide text on amp-page.<br>
|
||||
Select options for useragent (like Googlebot), set referer (ignored when Googlebot is set), block Javascript (on (sub)domain(s) of site and/or external domains), block regular expression and/or unhide text on amp-page.<br>
|
||||
Custom sites are enabled automatically in <small><button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button></small> (cookies will be removed by default unless you enable allow_cookies; cookie settings for default sites are ignored).<br>
|
||||
If you want to use custom sites (for non-listed sites) enable it in <small><button><a href="optin/opt-in.html" style="text-decoration:none;color:inherit">Opt-in</a></button></small>
|
||||
<strong>Custom sites enabled: <span id="custom-enabled"></span></strong><br>
|
||||
|
Loading…
Reference in New Issue
Block a user