mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 06:27:48 +01:00
Fix Bloomberg (quotes)
This commit is contained in:
parent
04de9ab568
commit
2ccd3f6865
4 changed files with 43 additions and 35 deletions
|
@ -277,7 +277,7 @@ var blockedRegexes = {
|
|||
'belfasttelegraph.co.uk': /(cdn\.flip-pay\.com\/clients\/inm\/flip-pay\.js|cdn\.ampproject\.org\/v\d\/amp-(access|ad|consent)-.+\.js)/,
|
||||
'billboard.com': /(cdn\.cxense\.com\/|\.tinypass\.com\/)/,
|
||||
'bizjournals.com': /(assets\.bizjournals\.com\/static\/js\/app\/cxense\.js|cdn\.cxense\.com\/)/,
|
||||
'bloomberg.com': /(\.tinypass\.com\/|assets\.bwbx\.io\/s3\/fence\/)/,
|
||||
'bloomberg.com': /\.tinypass\.com\//,
|
||||
'bostonglobe.com': /\.blueconic\.net\//,
|
||||
'businessinsider.com': /\.tinypass\.com\//,
|
||||
'challenges.fr': /\.poool\.fr\//,
|
||||
|
|
|
@ -3,7 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Add Inc42 (India)
|
||||
Fix Bloomberg (blurred images)
|
||||
Fix Bloomberg (quotes/blurred images)
|
||||
Fix Telegraaf.nl
|
||||
|
||||
* v2.3.1.0 (2021-08-01)
|
||||
|
|
|
@ -1394,7 +1394,7 @@ else if (matchDomain('telegraaf.nl')) {
|
|||
let json_article_id = json.split('uid\":')[1].split(',\"')[0];
|
||||
if (json_article_id && json_article_id !== article_id)
|
||||
window.location.reload(true);
|
||||
let json_text = json.split('"body":"')[1].split('","__typename":')[0];
|
||||
let json_text = json.includes('"body":"') ? json.split('"body":"')[1].split('","__typename":')[0] : '';
|
||||
if (json_text) {
|
||||
let intro = document.querySelector('span[id^="articleIntro"]');
|
||||
if (intro)
|
||||
|
@ -1673,12 +1673,20 @@ else if (matchDomain('barrons.com')) {
|
|||
}
|
||||
|
||||
else if (matchDomain('bloomberg.com')) {
|
||||
function bloomberg_noscroll(node) {
|
||||
node.removeAttribute('data-paywall-overlay-status');
|
||||
}
|
||||
waitDOMElement('div#fortress-paywall-container-root', 'DIV', removeDOMElement, true);
|
||||
waitDOMAttribute('body', 'BODY', 'data-paywall-overlay-status', bloomberg_noscroll, true);
|
||||
sessionStorage.clear();
|
||||
let counter = document.querySelector('div#fortress-preblocked-container-root');
|
||||
let leaderboard = document.querySelector('div[id^="leaderboard"]');
|
||||
removeDOMElement(counter);
|
||||
let url = window.location.href;
|
||||
if (url.includes('/articles/')) {
|
||||
let leaderboard = document.querySelector('div[id^="leaderboard"], div.leaderboard-wrapper');
|
||||
let shimmering_content = document.querySelectorAll('div[class^="shimmering-"]');
|
||||
let page_ad = document.querySelectorAll('div.page-ad');
|
||||
removeDOMElement(counter, leaderboard, ...shimmering_content, ...page_ad);
|
||||
removeDOMElement(leaderboard, ...shimmering_content, ...page_ad);
|
||||
let hidden_images = document.querySelectorAll('img.lazy-img__image[src][data-native-src]');
|
||||
for (let hidden_image of hidden_images) {
|
||||
if (hidden_image.src.match(/\/60x-1\.(png|jpg)$/))
|
||||
|
@ -1710,6 +1718,7 @@ else if (matchDomain('bloomberg.com')) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('bloombergquint.com')) {
|
||||
let articlesLeftModal = document.querySelector('.paywall-meter-module__story-paywall-container__1UgCE');
|
||||
|
|
|
@ -520,7 +520,6 @@
|
|||
"*://*.adobedtm.com/*",
|
||||
"*://*.amazonaws.com/*",
|
||||
"*://*.apnarm.net.au/*",
|
||||
"*://*.bwbx.io/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.eestatic.com/*",
|
||||
|
@ -541,5 +540,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.1.3"
|
||||
"version": "2.3.1.4"
|
||||
}
|
Loading…
Reference in a new issue