mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 08:37:47 +01:00
Fix-update The Spectator UK (amp)
This commit is contained in:
parent
674c1b4f48
commit
4b1b7cefb5
3 changed files with 14 additions and 9 deletions
|
@ -3,12 +3,13 @@ Changelog Bypass Paywalls Clean - Firefox
|
||||||
|
|
||||||
Post-release
|
Post-release
|
||||||
Fix-update Boston Globe (no opt-in)
|
Fix-update Boston Globe (no opt-in)
|
||||||
|
Fix-update The Spectator UK (amp)
|
||||||
|
|
||||||
* v2.2.5.0 (2021-06-13)
|
* v2.2.5.0 (2021-06-13)
|
||||||
Add The Wrap
|
Add The Wrap
|
||||||
Fix-update Atlantico.fr
|
Fix-update Atlantico.fr
|
||||||
Fix-update Folha de S. Paulo (add blogs)
|
Fix-update Folha de S. Paulo (add blogs)
|
||||||
Fix-update La Stampa
|
Fix-update La Stampa (amp)
|
||||||
Fix-update Los Angeles Times (overlay)
|
Fix-update Los Angeles Times (overlay)
|
||||||
Fix-update Medium/Towards Data Science (multimedia)
|
Fix-update Medium/Towards Data Science (multimedia)
|
||||||
Fix-update TheTimes.co.uk (link to archive.is)
|
Fix-update TheTimes.co.uk (link to archive.is)
|
||||||
|
|
|
@ -1398,13 +1398,17 @@ else if (matchDomain('prospectmagazine.co.uk')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('spectator.co.uk')) {
|
else if (matchDomain('spectator.co.uk')) {
|
||||||
let premium = document.querySelector('.HardPayWallContainer-module__overlay');
|
let url = window.location.href.split('?')[0];
|
||||||
removeDOMElement(premium);
|
if (url.match(/\/amp(\/)?$/)) {
|
||||||
window.setTimeout(function () {
|
let paywall = document.querySelectorAll('div[amp-access^="p.show"');
|
||||||
if (premium && window.location.href.includes('/www.spectator.co.uk/')) {
|
let not_logged_in = document.querySelector('div[amp-access*="NOT loggedIn"]');
|
||||||
window.location.href = window.location.href + '/amp';
|
removeDOMElement(...paywall, not_logged_in)
|
||||||
}
|
} else {
|
||||||
}, 500); // Delay (in milliseconds)
|
let premium = document.querySelector('.HardPayWallContainer-module__overlay');
|
||||||
|
removeDOMElement(premium);
|
||||||
|
if (premium)
|
||||||
|
window.location.href = url + '/amp';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (matchDomain('telegraph.co.uk')) {
|
else if (matchDomain('telegraph.co.uk')) {
|
||||||
|
|
|
@ -526,5 +526,5 @@
|
||||||
"*://*.wallkit.net/*",
|
"*://*.wallkit.net/*",
|
||||||
"*://*.wsj.net/*"
|
"*://*.wsj.net/*"
|
||||||
],
|
],
|
||||||
"version": "2.2.5.1"
|
"version": "2.2.5.2"
|
||||||
}
|
}
|
Loading…
Reference in a new issue