mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 04:01:58 +01:00
Fix-update Spectator.co.uk (amp for premium)
This commit is contained in:
parent
50a6d95fae
commit
49290b354a
1 changed files with 9 additions and 0 deletions
|
@ -655,6 +655,15 @@ else if (matchDomain('elmundo.es')) {
|
|||
}
|
||||
}
|
||||
|
||||
else if (matchDomain('spectator.co.uk')) {
|
||||
let premium = document.querySelector('.HardPayWallContainer-module__overlay');
|
||||
window.setTimeout(function () {
|
||||
if (premium && window.location.href.includes('/www.spectator.co.uk/')) {
|
||||
window.location.href = window.location.href + '/amp';
|
||||
}
|
||||
}, 500); // Delay (in milliseconds)
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
Loading…
Reference in a new issue