mirror of
https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean.git
synced 2024-11-10 03:21:58 +01:00
Add Field & Stream
This commit is contained in:
parent
32e502108a
commit
d7a48dbb05
6 changed files with 34 additions and 2 deletions
|
@ -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) -
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
4
sites.js
4
sites.js
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue