Add Field & Stream

This commit is contained in:
magnolia1234 2022-11-12 08:39:05 +01:00
parent 32e502108a
commit d7a48dbb05
6 changed files with 34 additions and 2 deletions

View file

@ -184,6 +184,7 @@ Grouped in options:\
[Axios](https://www.axios.com) -
[Commentary Magazine](https://www.commentary.org) -
[ESPN USA](https://www.espn.com) -
[Field & Stream](https://www.fieldandstream.com) -
[First Things](https://www.firstthings.com) -
[National Review](https://www.nationalreview.com) -
[Outdoor Life](https://www.outdoorlife.com) -

View file

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Ad.nl (+ regional) & Hln.be
Add Field & Stream
Add Public.fr
Add Record.pt
Add The New York Post

View file

@ -1883,7 +1883,8 @@ else if (matchDomain(it_gedi_domains)) {
if (!window.location.pathname.match(/\amp(\/)?$/)) {
let ads = document.querySelectorAll('div[id^="adv"]');
removeDOMElement(...ads);
}
} else
ampToHtml();
}
}
@ -2862,6 +2863,14 @@ else if (matchDomain('espn.com')) {
}
}
else if (matchDomain('fieldandstream.com')) {
let overlay = document.querySelectorAll('div[class^="mailmunch-"]');
removeDOMElement(...overlay);
let noscroll = document.querySelector('html.mailmunch-pop-open');
if (noscroll)
noscroll.removeAttribute('class');
}
else if (matchDomain('financialexpress.com')) {
let paywall = document.querySelector('div.paywall');
if (paywall)
@ -3120,6 +3129,9 @@ else if (matchDomain('ipolitics.ca')) {
let doc = parser.parseFromString('<div>' + DOMPurify.sanitize(article_new) + '</div>', 'text/html');
let content_new = doc.querySelector('div');
article.appendChild(content_new);
let locked = document.querySelector('div.locked');
if (locked)
locked.classList.remove('locked');
}
}
}

View file

@ -228,6 +228,7 @@
"*://*.farodevigo.es/*",
"*://*.faz.net/*",
"*://*.fd.nl/*",
"*://*.fieldandstream.com/*",
"*://*.finance.si/*",
"*://*.financialexpress.com/*",
"*://*.financialpost.com/*",
@ -725,5 +726,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.9.2.8"
"version": "2.9.2.9"
}

View file

@ -501,6 +501,10 @@ var defaultSites = {
domain: "exame.com",
block_regex: /\/exame\.com\/.+\/js\/pywll-dyn\.js/
},
"Field & Stream": {
domain: "fieldandstream.com",
allow_cookies: 1
},
"Finance.si": {
domain: "finance.si",
allow_cookies: 1,

View file

@ -5,6 +5,19 @@
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-(subscriptions|consent)-.+\\.js",
"amp_unhide": 1
},
"Field & Stream": {
"domain": "fieldandstream.com",
"allow_cookies": 1,
"cs_code": [{
"cond": "div[class^=\"mailmunch-\"]",
"rm_elem": 1
}, {
"cond": "html[class]",
"rm_attrib": "class"
}
],
"new_site": 1
},
"La Croix": {
"domain": "la-croix.com",
"allow_cookies": 1,