mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-04-29 19:54:28 +02:00
Fix wapo (#1244)
* fix wapo infinite redirect issue * remove wapo softwall
This commit is contained in:
parent
4b6a389715
commit
b30fbf0471
@ -74,7 +74,8 @@ const allowCookies = [
|
||||
'time.com',
|
||||
'zeit.de',
|
||||
'expansion.com',
|
||||
'dailytelegraph.com.au'
|
||||
'dailytelegraph.com.au',
|
||||
'washingtonpost.com'
|
||||
];
|
||||
|
||||
// Removes cookies after page load
|
||||
@ -122,7 +123,8 @@ const removeCookies = [
|
||||
'vn.nl',
|
||||
'vulture.com',
|
||||
'wsj.com',
|
||||
'medium.com'
|
||||
'medium.com',
|
||||
'washingtonpost.com'
|
||||
];
|
||||
|
||||
// Contains remove cookie sites above plus any custom sites
|
||||
|
@ -79,7 +79,8 @@ if (matchDomain('elmercurio.com')) {
|
||||
} else if (matchDomain('washingtonpost.com')) {
|
||||
const leaderboard = document.querySelector('#leaderboard-wrapper');
|
||||
const adverts = document.querySelectorAll('div[data-qa="article-body-ad"]');
|
||||
removeDOMElement(leaderboard, ...adverts);
|
||||
const softwall = document.querySelector('[id^="softwall"]');
|
||||
removeDOMElement(leaderboard, softwall, ...adverts);
|
||||
if (window.location.href.includes('/gdpr-consent/')) {
|
||||
const freeButton = document.querySelector('.gdpr-consent-container .continue-btn.button.free');
|
||||
if (freeButton) { freeButton.click(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user