mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-05-29 05:30:12 +02:00
Fix spectator.co.uk
This commit is contained in:
parent
ce655fc33d
commit
fc159b5b7e
@ -343,12 +343,8 @@ if (matchDomain('elmercurio.com')) {
|
|||||||
const banner = document.querySelector('.persistent-banner');
|
const banner = document.querySelector('.persistent-banner');
|
||||||
removeDOMElement(banner);
|
removeDOMElement(banner);
|
||||||
} else if (matchDomain('spectator.co.uk')) {
|
} else if (matchDomain('spectator.co.uk')) {
|
||||||
const container = document.querySelector('.HardPayWallContainer-module__overlay');
|
const banner = document.querySelector('#subscribe-ribbon');
|
||||||
window.setTimeout(function () {
|
removeDOMElement(banner);
|
||||||
if (container && window.location.href.includes('/www.spectator.co.uk/')) {
|
|
||||||
window.location.href = window.location.href + '/amp';
|
|
||||||
}
|
|
||||||
}, 500);
|
|
||||||
} else if (matchDomain('barrons.com')) {
|
} else if (matchDomain('barrons.com')) {
|
||||||
const url = window.location.href;
|
const url = window.location.href;
|
||||||
if (!url.includes('barrons.com/amp/')) {
|
if (!url.includes('barrons.com/amp/')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user