mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-05-29 22:10:13 +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',
|
'time.com',
|
||||||
'zeit.de',
|
'zeit.de',
|
||||||
'expansion.com',
|
'expansion.com',
|
||||||
'dailytelegraph.com.au'
|
'dailytelegraph.com.au',
|
||||||
|
'washingtonpost.com'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Removes cookies after page load
|
// Removes cookies after page load
|
||||||
@ -122,7 +123,8 @@ const removeCookies = [
|
|||||||
'vn.nl',
|
'vn.nl',
|
||||||
'vulture.com',
|
'vulture.com',
|
||||||
'wsj.com',
|
'wsj.com',
|
||||||
'medium.com'
|
'medium.com',
|
||||||
|
'washingtonpost.com'
|
||||||
];
|
];
|
||||||
|
|
||||||
// Contains remove cookie sites above plus any custom sites
|
// Contains remove cookie sites above plus any custom sites
|
||||||
|
@ -79,7 +79,8 @@ if (matchDomain('elmercurio.com')) {
|
|||||||
} else if (matchDomain('washingtonpost.com')) {
|
} else if (matchDomain('washingtonpost.com')) {
|
||||||
const leaderboard = document.querySelector('#leaderboard-wrapper');
|
const leaderboard = document.querySelector('#leaderboard-wrapper');
|
||||||
const adverts = document.querySelectorAll('div[data-qa="article-body-ad"]');
|
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/')) {
|
if (window.location.href.includes('/gdpr-consent/')) {
|
||||||
const freeButton = document.querySelector('.gdpr-consent-container .continue-btn.button.free');
|
const freeButton = document.querySelector('.gdpr-consent-container .continue-btn.button.free');
|
||||||
if (freeButton) { freeButton.click(); }
|
if (freeButton) { freeButton.click(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user