Fix The Chronicle of Higher Education (css)

This commit is contained in:
magnolia1234 2022-12-03 08:09:04 +01:00
parent 8b76c50824
commit 317c8f5e6e
3 changed files with 9 additions and 4 deletions

View File

@ -9,6 +9,7 @@ Remove BusinessPost.ie (fix obsolete)
Remove Philonomist (fix obsolete)
Fix Australian Community Media (identify on url)
Fix Groupe Centre France (text)
Fix The Chronicle of Higher Education (css)
* v2.9.5.0 (2022-11-27)
Add Haaretz.co.il & The Marker

View File

@ -2800,10 +2800,14 @@ else if (matchDomain('cen.acs.org')) {
else if (matchDomain(['chronicle.com', 'philanthropy.com'])) {
let preview = document.querySelector('div[data-content-summary]');
removeDOMElement(preview);
let article_hidden = document.querySelector('div.contentBody');
let article_hidden = document.querySelector('div.contentBody[hidden]');
if (article_hidden) {
article_hidden.removeAttribute('data-content-body');
article_hidden.removeAttribute('hidden');
let attributes = article_hidden.attributes;
for (let elem of attributes) {
let name = elem.name;
if (name !== 'class')
article_hidden.removeAttribute(name);
}
}
}

View File

@ -732,5 +732,5 @@
"*://gcm.omerlocdn.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "2.9.5.5"
"version": "2.9.5.6"
}