summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Graefe <konradgraefe@aol.com>2015-03-31 15:43:44 +0200
committerKonrad Graefe <konradgraefe@aol.com>2015-03-31 15:43:44 +0200
commit2410729d1b4313ac163189faa0b0f42d06b6cdfe (patch)
tree75d54f21764b4349723bc740d19a6f48850f9a17
parent36f5199ba1d176fddb1ca78357209f05f0fbcf19 (diff)
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.
-rw-r--r--articleenhancer/xpathenhancers.json2
-rw-r--r--css/custom.css9
2 files changed, 3 insertions, 8 deletions
diff --git a/articleenhancer/xpathenhancers.json b/articleenhancer/xpathenhancers.json
index 00047ea96..7e1306d48 100644
--- a/articleenhancer/xpathenhancers.json
+++ b/articleenhancer/xpathenhancers.json
@@ -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')]"
diff --git a/css/custom.css b/css/custom.css
index d019265dc..585e17212 100644
--- a/css/custom.css
+++ b/css/custom.css
@@ -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;
-} \ No newline at end of file