mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-29 15:24:24 +02:00
Fix bloomberg.com
This commit is contained in:
parent
7029ba34ef
commit
c66fb6d18a
@ -8,7 +8,8 @@ const restrictions = {
|
||||
'techinasia.com': /\.techinasia\.com\/.+/,
|
||||
'ft.com': /.+\.ft.com\/content\//,
|
||||
'nytimes.com': /^((?!\/timesmachine\.nytimes\.com\/).)*$/,
|
||||
'theatlantic.com': /^((?!\/newsletters\.theatlantic\.com\/).)*$/
|
||||
'theatlantic.com': /^((?!\/newsletters\.theatlantic\.com\/).)*$/,
|
||||
'bloomberg.com': /^((?!\.bloomberg\.com\/news\/terminal\/).)*$/
|
||||
};
|
||||
|
||||
// Don't remove cookies before page load
|
||||
@ -233,7 +234,8 @@ const blockedRegexes = {
|
||||
'scmp.com': /(\.tinypass\.com\/|cdn\.ampproject\.org\/v\d\/amp-access-.+\.js)/,
|
||||
'ilmessaggero.it': /(utils\.cedsdigital\.it\/js\/PaywallMeter\.js)/,
|
||||
'washingtonpost.com': /\.washingtonpost\.com\/tetro\/metering\/evaluate/,
|
||||
'theatlantic.com': /cdn\.theatlantic\.com\/_next\/static\/chunks\/pages\/.+\/archive\//
|
||||
'theatlantic.com': /cdn\.theatlantic\.com\/_next\/static\/chunks\/pages\/.+\/archive\//,
|
||||
'bloomberg.com': /(\.cm\.bloomberg\.com\/|assets\.bwbx\.io\/s\d\/javelin\/.+\/transporter\/)/
|
||||
};
|
||||
|
||||
const userAgentDesktop = 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)';
|
||||
|
@ -204,7 +204,15 @@ if (matchDomain('elmercurio.com')) {
|
||||
const paywall = document.getElementsByClassName('paywall')[0];
|
||||
removeDOMElement(paywall);
|
||||
} else if (matchDomain('bloomberg.com')) {
|
||||
blockElement('#graphics-paywall-overlay', true);
|
||||
const paywall = document.querySelectorAll('div[id^="fortress-"]');
|
||||
const leaderboard = document.querySelector('div[id^="leaderboard"], div[class^="leaderboard"], div.canopy-container');
|
||||
const ads = document.querySelectorAll('div[data-ad-status], div.dvz-v0-ad, div[class^="FullWidthAd_"]');
|
||||
hideDOMElement(...paywall, leaderboard, ...ads);
|
||||
if (window.location.pathname.startsWith('/live/')) {
|
||||
setInterval(function () {
|
||||
window.localStorage.clear();
|
||||
}, 15 * 60 * 1000);
|
||||
}
|
||||
} else if (matchDomain('bloombergquint.com')) {
|
||||
const articlesLeftModal = document.getElementsByClassName('paywall-meter-module__story-paywall-container__1UgCE')[0];
|
||||
const paywall = document.getElementById('paywallDmp');
|
||||
|
Loading…
x
Reference in New Issue
Block a user