Add Puck.news

This commit is contained in:
magnolia1234 2022-04-30 11:25:15 +02:00
parent bdc33ca590
commit 0e94953414
7 changed files with 40 additions and 2 deletions

View File

@ -183,6 +183,7 @@ Grouped in options:\
[ESPN USA](https://www.espn.com) -
[First Things](https://www.firstthings.com) -
[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 - Chrome
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

@ -42,5 +42,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.6.6.4"
"version": "2.6.6.5"
}

View File

@ -451,6 +451,7 @@
"*://*.precisiononcologynews.com/*",
"*://*.prevention.com/*",
"*://*.prospectmagazine.co.uk/*",
"*://*.puck.news/*",
"*://*.quora.com/*",
"*://*.quotidiano.net/*",
"*://*.quotidianodipuglia.it/*",
@ -653,5 +654,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"