mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-30 00:54:25 +02:00
Run semistandard style formatter
This commit is contained in:
parent
8aa8f4ed1e
commit
6d5a47d34e
@ -663,21 +663,21 @@ if (matchDomain('elmercurio.com')) {
|
|||||||
}
|
}
|
||||||
} else if (matchDomain('bostonglobe.com')) {
|
} else if (matchDomain('bostonglobe.com')) {
|
||||||
// Remove the portion covering the paywall
|
// Remove the portion covering the paywall
|
||||||
const paywall = document.querySelector('div.meter-paywall')
|
const paywall = document.querySelector('div.meter-paywall');
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
removeDOMElement(paywall)
|
removeDOMElement(paywall);
|
||||||
}
|
}
|
||||||
// Re-enable scrolling
|
// Re-enable scrolling
|
||||||
const body = document.querySelector('body')
|
const body = document.querySelector('body');
|
||||||
if (body) {
|
if (body) {
|
||||||
document.body.removeAttribute('style')
|
document.body.removeAttribute('style');
|
||||||
}
|
}
|
||||||
// Click the button to reveal the rest of the article
|
// Click the button to reveal the rest of the article
|
||||||
const buttonDiv = document.querySelector('[id="continue_button"]')
|
const buttonDiv = document.querySelector('[id="continue_button"]');
|
||||||
if (buttonDiv) {
|
if (buttonDiv) {
|
||||||
const button = buttonDiv.querySelector('button')
|
const button = buttonDiv.querySelector('button');
|
||||||
if (button) {
|
if (button) {
|
||||||
button.click()
|
button.click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user