Add Puck.news

This commit is contained in:
magnolia1234 2022-04-30 11:25:42 +02:00
parent e98b0bff6c
commit 3b4a9097a1
6 changed files with 39 additions and 1 deletions

View file

@ -165,6 +165,7 @@ Grouped in options:\
[First Things](https://www.firstthings.com) -
[Medium](https://www.medium.com)* (for custom domains enable custom sites) -
[National Review](https://www.nationalreview.com) -
[Puck.news](https://puck.news) -
[Rolling Stone](https://www.rollingstone.com) -
[RugbyPass](https://www.rugbypass.com) -
[Slate](https://slate.com) -

View file

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Firefox
Post-release
Add Puck.news
Fix El Espectador
Fix eNotes
Fix Grupo Prensa Iberica (opt-in to custom sites for unlisted)

View file

@ -3160,6 +3160,19 @@ else if (matchDomain('outlookindia.com')) {
}
}
else if (matchDomain('puck.news')) {
let paywall = document.querySelector('.paywall');
if (paywall) {
removeDOMElement(paywall);
let overlay = document.querySelector('body.paywall-active');
if (overlay)
overlay.classList.remove('paywall-active');
let article_style = document.querySelector('article[style]');
if (article_style)
article_style.removeAttribute('style');
}
}
else if (matchDomain('quora.com')) {
let overlays = document.querySelectorAll('div[class*="_overlay"]');
removeDOMElement(...overlays);

View file

@ -463,6 +463,7 @@
"*://*.precisiononcologynews.com/*",
"*://*.prevention.com/*",
"*://*.prospectmagazine.co.uk/*",
"*://*.puck.news/*",
"*://*.quora.com/*",
"*://*.quotidiano.net/*",
"*://*.quotidianodipuglia.it/*",
@ -665,5 +666,5 @@
"*://*.wsj.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.6.6.4"
"version": "2.6.6.5"
}

View file

@ -1359,6 +1359,10 @@ var defaultSites = {
domain: "prospectmagazine.co.uk",
allow_cookies: 1
},
"Puck.news": {
domain: "puck.news",
allow_cookies: 1
},
"Quartz": {
domain: "qz.com",
allow_cookies: 1,

View file

@ -64,6 +64,24 @@
"domain": "podiumrunner.com",
"group_rule": "###_gr_usa_outside_mag_domains"
},
"Puck.news": {
"domain": "puck.news",
"allow_cookies": 1,
"cs_code": [{
"cond": ".paywall",
"rm_elem": 1,
"elems": [{
"cond": "body.paywall-active",
"rm_class": "paywall-active"
}, {
"cond": "article[style]",
"rm_attrib": "style"
}
]
}
],
"new_site": 1
},
"Rock and Ice": {
"domain": "rockandice.com",
"group_rule": "###_gr_usa_outside_mag_domains"