mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:51:58 +01:00
Fix New York Magazine sites (cookies)
This commit is contained in:
parent
9ee36dbdc8
commit
4e1cda32fa
4 changed files with 16 additions and 3 deletions
|
@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
|
|||
|
||||
Post-release
|
||||
Add Groupe Sud Ouest (France)
|
||||
Fix New York Magazine sites (cookies)
|
||||
Fix TheTimes.co.uk (epaper & archive)
|
||||
Update block general paywall script (limit NewsMemory)
|
||||
|
||||
|
|
|
@ -855,7 +855,7 @@ else if (matchDomain('elpais.com')) {
|
|||
let url = window.location.href;
|
||||
let login_register = document.querySelector('.login_register');
|
||||
if (url.includes('.amp.html') || url.includes('?outputType=amp')) {
|
||||
amp_unhide_access_hide('="success"', '="NOT success"');
|
||||
amp_unhide_access_hide('="vip"', '="NOT vip"');
|
||||
removeDOMElement(login_register);
|
||||
} else {
|
||||
let counter = document.querySelector('#counterLayerDiv');
|
||||
|
@ -868,7 +868,7 @@ else if (matchDomain('elpais.com')) {
|
|||
}
|
||||
}
|
||||
let paywall_offer = document.querySelector('.paywallOffer');
|
||||
let ctn_closed_article = document.querySelector('#ctn_closed_article');
|
||||
let ctn_closed_article = document.querySelector('#ctn_closed_article, #ctn_freemium_article');
|
||||
removeDOMElement(paywall_offer, ctn_closed_article);
|
||||
}
|
||||
|
||||
|
|
2
sites.js
2
sites.js
|
@ -1128,7 +1128,7 @@ var defaultSites = {
|
|||
"thecut.com",
|
||||
"vulture.com"
|
||||
],
|
||||
remove_cookies_select_drop: ["nymcid"],
|
||||
remove_cookies_select_drop: ["nymcid", "first-nymcid"],
|
||||
block_regex: /fosse\.nymag\.com\/fosse\/.+\/scripts\/.+\.js/
|
||||
},
|
||||
"New Zealand Herald": {
|
||||
|
|
|
@ -30,6 +30,18 @@
|
|||
"allow_cookies": 1,
|
||||
"block_regex": "(\\.tinypass\\.com\\/|cdn\\.ampproject\\.org\\/v\\d\\/amp-(access|ad)-.+\\.mjs)"
|
||||
},
|
||||
"New York Magazine (+ Curbed, Grub Street, The Cut & Vulture)": {
|
||||
"domain": "###_usa_nymag",
|
||||
"group": [
|
||||
"curbed.com",
|
||||
"grubstreet.com",
|
||||
"nymag.com",
|
||||
"thecut.com",
|
||||
"vulture.com"
|
||||
],
|
||||
"remove_cookies_select_drop": ["nymcid", "first-nymcid"],
|
||||
"block_regex": "fosse\\.nymag\\.com\\/fosse\\/.+\\/scripts\\/.+\\.js"
|
||||
},
|
||||
"The Seattle Times": {
|
||||
"domain": "seattletimes.com",
|
||||
"allow_cookies": 1,
|
||||
|
|
Loading…
Reference in a new issue