mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 05:27:48 +01:00
Fix The New Yorker paywall-banner
This commit is contained in:
parent
0dad06d5eb
commit
ffc524248b
1 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,7 @@ if (!localstorage_hold){
|
|||
|
||||
// Content workarounds/domain
|
||||
if (location.hostname.endsWith('rep.repubblica.it')) {
|
||||
if (location.href.includes('/pwa/')) {
|
||||
if (location.href.includes('/pwa/')) {
|
||||
location.href = location.href.replace('/pwa/', '/ws/detail/');
|
||||
}
|
||||
if (location.href.includes('/ws/detail/')) {
|
||||
|
@ -413,6 +413,11 @@ if (window.location.href.indexOf("lc.nl") !== -1 || window.location.href.indexOf
|
|||
});
|
||||
}
|
||||
|
||||
if (window.location.href.indexOf("newyorker.com") !== -1) {
|
||||
const paywall_bar = document.querySelector('.paywall-bar');
|
||||
removeDOMElement(paywall_bar);
|
||||
}
|
||||
|
||||
// General Functions
|
||||
function removeDOMElement(...elements) {
|
||||
for (let element of elements) {
|
||||
|
|
Loading…
Reference in a new issue