Fix Bloomberg (quotes)
parent
713be7be08
commit
3a60ca396f
|
@ -51,7 +51,7 @@ Windows Registry Editor Version 5.00
|
|||
|
||||
#### Android
|
||||
1. Install [Kiwi Browser](https://play.google.com/store/apps/details?id=com.kiwibrowser.browser&hl=nl) or [Yandex Browser](https://play.google.com/store/apps/details?id=com.yandex.browser&hl=en) from the Google PlayStore.
|
||||
2. For Kiwi Browser load the CRX-file in releases (auto-updating, no whitelist needed, opt-in for custom sites not working (use kiwi-custom crx; updates to latest regular version)).
|
||||
2. For Kiwi Browser load the CRX-file in releases (auto-updating, no whitelist needed, opt-in for custom sites not working (use kiwi-custom crx; updates to latest regular version)) or use latest master zip-file (no automatic updates, for custom sites use manifest.json from custom folder).
|
||||
3. For Yandex Browser follow Chrome instructions above (load unpacked; step 6: pick manifest.json instead of the folder). If it fails try a few times or use Total Commander (as file manager). You can use a Git client like MGit to clone (and update) this repository on your mobile device.\
|
||||
For custom sites copy manifest.json from custom folder to the main extension folder (optional permissions are lost on reload).
|
||||
|
||||
|
@ -663,7 +663,7 @@ You can also exclude a specific domain which is grouped in options.
|
|||
* Add usefull custom filter [Fanboy's Enhanced Tracking List](https://www.fanboy.co.nz/enhancedstats.txt)
|
||||
* If a site doesn't work, try turning off uBlock and refreshing.
|
||||
* Make sure the (new) site is checked under Options.
|
||||
* Make sure you're running the last version of Bypass Paywalls Clean.
|
||||
* Make sure you're running the latest version of Bypass Paywalls Clean.
|
||||
* If none of these work, you can submit an issue [here](https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/issues).
|
||||
|
||||
### Changelog-releases
|
||||
|
|
|
@ -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 - Chrome
|
|||
|
||||
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,39 +1673,48 @@ 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"]');
|
||||
let shimmering_content = document.querySelectorAll('div[class^="shimmering-"]');
|
||||
let page_ad = document.querySelectorAll('div.page-ad');
|
||||
removeDOMElement(counter, 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)$/))
|
||||
hidden_image.setAttribute('src', hidden_image.getAttribute('data-native-src'));
|
||||
hidden_image.style.filter = 'none';
|
||||
}
|
||||
let json_script = document.querySelector('script[data-component-props="ArticleBody"], script[data-component-props="FeatureBody"]');
|
||||
if (json_script) {
|
||||
let json = JSON.parse(json_script.innerHTML);
|
||||
if (json) {
|
||||
let json_text = json.body ? json.body : '';
|
||||
if (json_text) {
|
||||
removeDOMElement(json_script);
|
||||
let article = document.querySelector('div.body-copy-v2:not(.art_done)');
|
||||
let article_class = 'body-copy-v2';
|
||||
if (!article) {
|
||||
article = document.querySelector('div.body-copy:not(.art_done)');
|
||||
article_class = 'body-copy';
|
||||
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(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)$/))
|
||||
hidden_image.setAttribute('src', hidden_image.getAttribute('data-native-src'));
|
||||
hidden_image.style.filter = 'none';
|
||||
}
|
||||
let json_script = document.querySelector('script[data-component-props="ArticleBody"], script[data-component-props="FeatureBody"]');
|
||||
if (json_script) {
|
||||
let json = JSON.parse(json_script.innerHTML);
|
||||
if (json) {
|
||||
let json_text = json.body ? json.body : '';
|
||||
if (json_text) {
|
||||
removeDOMElement(json_script);
|
||||
let article = document.querySelector('div.body-copy-v2:not(.art_done)');
|
||||
let article_class = 'body-copy-v2';
|
||||
if (!article) {
|
||||
article = document.querySelector('div.body-copy:not(.art_done)');
|
||||
article_class = 'body-copy';
|
||||
}
|
||||
if (article) {
|
||||
article_class += ' art_done';
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div class="' + article_class + '">' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe']}) + '</div>', 'text/html');
|
||||
let article_new = doc.querySelector('div');
|
||||
if (article_new)
|
||||
article.parentNode.replaceChild(article_new, article);
|
||||
}
|
||||
}
|
||||
if (article) {
|
||||
article_class += ' art_done';
|
||||
let parser = new DOMParser();
|
||||
let doc = parser.parseFromString('<div class="' + article_class + '">' + DOMPurify.sanitize(json_text, {ADD_TAGS: ['iframe']}) + '</div>', 'text/html');
|
||||
let article_new = doc.querySelector('div');
|
||||
if (article_new)
|
||||
article.parentNode.replaceChild(article_new, article);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -38,5 +38,5 @@
|
|||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.3.1.3"
|
||||
"version": "2.3.1.4"
|
||||
}
|
|
@ -508,7 +508,6 @@
|
|||
"*://*.adobedtm.com/*",
|
||||
"*://*.amazonaws.com/*",
|
||||
"*://*.apnarm.net.au/*",
|
||||
"*://*.bwbx.io/*",
|
||||
"*://*.cedsdigital.it/*",
|
||||
"*://*.corriereobjects.it/*",
|
||||
"*://*.eestatic.com/*",
|
||||
|
@ -529,5 +528,5 @@
|
|||
"*://*.wallkit.net/*",
|
||||
"*://*.wsj.net/*"
|
||||
],
|
||||
"version": "2.3.1.3"
|
||||
"version": "2.3.1.4"
|
||||
}
|
Loading…
Reference in New Issue