mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-29 19:44:27 +02:00
Fix Boston Globe support without cookie tampering, is relatively fast. (#1220)
Co-authored-by: billatq <8d8k@anmt.net>
This commit is contained in:
parent
167d1420d3
commit
8aa8f4ed1e
@ -34,6 +34,7 @@
|
||||
[Bloomberg Quint](https://www.bloombergquint.com)\
|
||||
[Bloomberg](https://www.bloomberg.com)\
|
||||
[BN De Stem](https://www.bndestem.nl)\
|
||||
[Boston Globe](https://www.bostonglobe.com)\
|
||||
[Brabants Dagblad](https://www.bd.nl)\
|
||||
[Brisbane Times](https://www.brisbanetimes.com.au)\
|
||||
[Business Insider](https://www.businessinsider.com)\
|
||||
|
@ -72,7 +72,8 @@
|
||||
"*://*.elmundo.es/*",
|
||||
"*://*.time.com/*",
|
||||
"*://*.expansion.com/*",
|
||||
"*://*.foreignpolicy.com/*"
|
||||
"*://*.foreignpolicy.com/*",
|
||||
"*://*.bostonglobe.com/*"
|
||||
],
|
||||
"js": ["src/js/contentScript.js"]
|
||||
}
|
||||
|
@ -661,6 +661,25 @@ if (matchDomain('elmercurio.com')) {
|
||||
if (contentGated) {
|
||||
contentGated.classList.remove('content-gated');
|
||||
}
|
||||
} else if (matchDomain('bostonglobe.com')) {
|
||||
// Remove the portion covering the paywall
|
||||
const paywall = document.querySelector('div.meter-paywall')
|
||||
if (paywall) {
|
||||
removeDOMElement(paywall)
|
||||
}
|
||||
// Re-enable scrolling
|
||||
const body = document.querySelector('body')
|
||||
if (body) {
|
||||
document.body.removeAttribute('style')
|
||||
}
|
||||
// Click the button to reveal the rest of the article
|
||||
const buttonDiv = document.querySelector('[id="continue_button"]')
|
||||
if (buttonDiv) {
|
||||
const button = buttonDiv.querySelector('button')
|
||||
if (button) {
|
||||
button.click()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function matchDomain (domains) {
|
||||
|
@ -9,6 +9,7 @@ const defaultSites = {
|
||||
'Bloomberg': 'bloomberg.com',
|
||||
'Bloomberg Quint (free articles only)': 'bloombergquint.com',
|
||||
'BN De Stem': 'bndestem.nl',
|
||||
'Boston Globe': 'bostonglobe.com',
|
||||
'Brabants Dagblad': 'bd.nl',
|
||||
'Brisbane Times': 'brisbanetimes.com.au',
|
||||
'Business Insider': 'businessinsider.com',
|
||||
|
Loading…
x
Reference in New Issue
Block a user