Add The Chronicle of Philanthropy

master
magnolia1234 2022-08-27 10:11:03 +02:00
parent 0b11cd5f5f
commit ea7b3bc7fb
8 changed files with 32 additions and 11 deletions

View File

@ -141,7 +141,6 @@ Grouped in options:\
##### Tech/Science
[Chemical & Engineering News](https://cen.acs.org) -
[Chronicle of Higher Education](https://www.chronicle.com) -
[Dark Reading](https://www.darkreading.com) -
[Discover Magazine](https://www.discovermagazine.com) -
[MIT Technology Review](https://www.technologyreview.com) -
@ -157,7 +156,10 @@ Grouped in options:\
*GenomeWeb* sites like\
[360Dx](https://www.360dx.com) -
[GenomeWeb](https://www.genomeweb.com) -
[Precision Oncology News](https://www.precisiononcologynews.com)
[Precision Oncology News](https://www.precisiononcologynews.com)\
*The Chronicle* sites like\
[The Chronicle of Higher Education](https://www.chronicle.com) -
[The Chronicle of Philanthropy](https://www.philanthropy.com)
##### Encyclopedia/Book library/Knowledge base
[BBC History Extra](https://www.historyextra.com) -

View File

@ -358,7 +358,7 @@ ext_api.storage.local.get({
} else {
ext_api.management.getSelf(function (result) {
if ((result.installType === 'development' || (result.installType !== 'development' && !enabledSites.includes('#options_on_update')))) {
let new_groups = ['###_de_westfalen_medien', '###_es_grupo_vocento', '###_es_unidad', '###_it_gedi', '###_nl_dpg_media', '###_usa_genomeweb'];
let new_groups = ['###_de_westfalen_medien', '###_es_grupo_vocento', '###_es_unidad', '###_it_gedi', '###_nl_dpg_media', '###_usa_chronicle', '###_usa_genomeweb'];
let open_options = new_groups.some(group => !enabledSites.includes(group) && grouped_sites[group].some(domain => enabledSites.includes(domain) && !customSites_domains.includes(domain))) || (!enabledSites.includes('uol.com.br') && (enabledSites.includes('crusoe.uol.com.br') || enabledSites.includes('###_br_folha')));
if (open_options)
ext_api.runtime.openOptionsPage();

View File

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Chrome
Post-release
Add New Scientist
Add The Chronicle of Philanthropy
Fix Los Angeles Times & San Diego Union-Tribune
Fix Madsack Mediengruppe
Fix NYTimes (Cooking)

View File

@ -2656,7 +2656,7 @@ else if (matchDomain('cen.acs.org')) {
removeDOMElement(meteredBar);
}
else if (matchDomain('chronicle.com')) {
else if (matchDomain(['chronicle.com', 'philanthropy.com'])) {
let preview = document.querySelector('div[data-content-summary]');
removeDOMElement(preview);
let article_hidden = document.querySelector('div[data-content-body]');

View File

@ -43,5 +43,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.8.1.5"
"version": "2.8.1.6"
}

View File

@ -457,6 +457,7 @@
"*://*.pelotonmagazine.com/*",
"*://*.pennlive.com/*",
"*://*.petitbleu.fr/*",
"*://*.philanthropy.com/*",
"*://*.philosophynow.org/*",
"*://*.pilotonline.com/*",
"*://*.piqd.de/*",
@ -686,5 +687,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.8.1.5"
"version": "2.8.1.6"
}

View File

@ -240,11 +240,6 @@ var defaultSites = {
"Chemical & Engineering News": {
domain: "cen.acs.org"
},
"Chronicle of Higher Education": {
domain: "chronicle.com",
allow_cookies: 1,
block_regex: /(\.blueconic\.net\/|\.chronicle\.com\/(common\/)?(che-auth0-user|script)\.js)/
},
"Cicero.de": {
domain: "cicero.de",
allow_cookies: 1
@ -1649,6 +1644,15 @@ var defaultSites = {
domain: "csmonitor.com",
allow_cookies: 1
},
"The Chronicle of Higher Education (& Philanthropy)": {
domain: "###_usa_chronicle",
group: [
"chronicle.com",
"philanthropy.com"
],
allow_cookies: 1,
block_regex: /\.blueconic\.net\//
},
"The Daily Beast": {
domain: "thedailybeast.com",
block_regex: /\.tinypass\.com\//

View File

@ -5,6 +5,19 @@
"block_regex": "cdn\\.ampproject\\.org\\/v\\d\\/amp-subscriptions-.+\\.js",
"amp_redirect": "p.read-txt"
},
"Chronicle of Philanthropy": {
"domain": "philanthropy.com",
"allow_cookies": 1,
"block_regex": "\\.blueconic\\.net\\/",
"cs_code": [{
"cond": "div[data-content-summary]",
"rm_elem": 1
}, {
"cond": "div[data-content-body]",
"rm_attrib": "data-content-body"
}
]
},
"La Vie": {
"domain": "lavie.fr",
"allow_cookies": 1,