From e65b798a11bac20c095de399faab1c202581660c Mon Sep 17 00:00:00 2001 From: "FiveFilters.org" Date: Sun, 14 Jun 2015 20:46:51 +0200 Subject: Facebook --- facebook.com.txt | 5 +++-- m.facebook.com.txt | 13 +++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 m.facebook.com.txt diff --git a/facebook.com.txt b/facebook.com.txt index 26d4f90..c02c057 100644 --- a/facebook.com.txt +++ b/facebook.com.txt @@ -1,12 +1,13 @@ body: //div[@id='imagestage'] body: //div[contains(@class, 'userContentWrapper')] - +body: //div[@id='m_story_permalink_view' or contains(@data-sigil, 'm-story-view')] strip_id_or_class: commentable +strip: //div[contains(@data-sigil, 'm-mentions-expand')] prune: no tidy: no -# single_page_link: replace(substring-after(//noscript//meta[@http-equiv="refresh"]/@content, 'URL='), "&", "&") +single_page_link: concat("https://m.", substring-after(//link[@rel="alternate" and @media="handheld"]/@href, "//www.")) test_url: https://www.facebook.com/permalink.php?story_fbid=10154584776550183&id=294468630182 test_contains: holding an extraordinary session in Brussels this month diff --git a/m.facebook.com.txt b/m.facebook.com.txt new file mode 100644 index 0000000..81c02cf --- /dev/null +++ b/m.facebook.com.txt @@ -0,0 +1,13 @@ +body: //div[@id='m_story_permalink_view' or contains(@data-sigil, 'm-story-view')] + +title: (//div[@id='m_story_permalink_view' or contains(@data-sigil, 'm-story-view')]//p)[1] + +strip: //div[contains(@data-sigil, 'm-mentions-expand')] + +prune: no +tidy: no + +single_page_link: concat("https://m.", substring-after(//link[@rel="alternate" and @media="handheld"]/@href, "//www.")) + +test_url: https://m.facebook.com/permalink.php?story_fbid=10154584776550183&id=294468630182 +test_contains: holding an extraordinary session in Brussels this month -- cgit v1.3.1