зеркало из https://github.com/nextcloud/news.git
Improve article enhancer for sueddeutsche.de
This improves the article enhancer for sueedeutsche.de to fetch just the summary from the top of each article instead of the whole article which bypasses the paywall sueddeutsche.de introduced last week (and that is not the purpose of the news app, right?). The summary is more detailed than the one delivered via RSS so the enhancer is still usefull. Plus it adds the header image of the article.
This commit is contained in:
Родитель
36f5199ba1
Коммит
2410729d1b
|
@ -163,7 +163,7 @@
|
|||
"%smashingmagazine.com%": "//article[contains(@class,'post')]/p"
|
||||
},
|
||||
"sueddeutsche.de": {
|
||||
"%sz.de%": "//article[@id='sitecontent']/section[@class='body']/*[not(contains(@class, 'ad'))]"
|
||||
"%sz.de%": "//article[@id='sitecontent']/section[@class='topenrichment']//img | //article[@id='sitecontent']/section[@class='body']/section[@class='authors']/preceding-sibling::*[not(contains(@class, 'ad'))]"
|
||||
},
|
||||
"lifehacker.com": {
|
||||
"%lifehacker.com%": "//div[contains(@class,'entry-content')]"
|
||||
|
|
|
@ -15,11 +15,6 @@
|
|||
padding: 0 0 0 15px;
|
||||
}
|
||||
|
||||
#app-content .custom-sueddeutsche-de img + span {
|
||||
display: block;
|
||||
#app-content .custom-sueddeutsche-de .body img {
|
||||
float: none !important;
|
||||
}
|
||||
|
||||
|
||||
#app-content .custom-sueddeutsche-de a + a {
|
||||
display: block;
|
||||
}
|
Загрузка…
Ссылка в новой задаче