From 2410729d1b4313ac163189faa0b0f42d06b6cdfe Mon Sep 17 00:00:00 2001 From: Konrad Graefe Date: Tue, 31 Mar 2015 15:43:44 +0200 Subject: 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. --- articleenhancer/xpathenhancers.json | 2 +- css/custom.css | 9 ++------- 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 -- cgit v1.2.3