summaryrefslogtreecommitdiff
path: root/xfgjls.com.txt
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2015-12-31 18:13:20 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2015-12-31 18:13:20 +0100
commitcbba2d911da7b4dc444be4e9a8569dcc5690ba85 (patch)
tree25ae329c4c2b43f7fef07a10d945f7084d9441a9 /xfgjls.com.txt
parent7e2e4967a3885cd0c45469ecf6c0547f8c3ab722 (diff)
downloadftr-site-config-cbba2d911da7b4dc444be4e9a8569dcc5690ba85.tar.gz
ftr-site-config-cbba2d911da7b4dc444be4e9a8569dcc5690ba85.zip
Backport site_config changes from wallabag v1
Fix https://github.com/wallabag/wallabag/issues/1414
Diffstat (limited to 'xfgjls.com.txt')
-rwxr-xr-xxfgjls.com.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/xfgjls.com.txt b/xfgjls.com.txt
new file mode 100755
index 0000000..2dc247a
--- /dev/null
+++ b/xfgjls.com.txt
@@ -0,0 +1,11 @@
+# This filter is tested on:
+# http://www.xfgjls.com/magazine/html/?131.html
+# http://www.xfgjls.com/magazine/html/?170.html
+
+body://h3/following-sibling::div
+title: //h3
+date: substring-before(//h3/following-sibling::div/p, ' ')
+author: substring-before(substring-after(//h3/following-sibling::div/p, '作者:'), '来源')
+wrap_in(strong)://span[contains(@style, "FONT-WEIGHT: bold")]
+dissolve://span[@style="FONT-FAMILY: '宋体'; FONT-SIZE: 10.5pt; FONT-WEIGHT: bold; mso-spacerun: 'yes'"]
+test_url: http://www.xfgjls.com/magazine/html/?170.html \ No newline at end of file