From 87d7635f6fefa942d97949b13a849d40316ad166 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sun, 7 Dec 2014 21:21:51 -0800 Subject: [PATCH] video: update rules to use new location-only rewriter for YT comments support --- pywb/rules.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pywb/rules.yaml b/pywb/rules.yaml index 0dba0dc1..1a0ea34c 100644 --- a/pywb/rules.yaml +++ b/pywb/rules.yaml @@ -150,6 +150,22 @@ rules: type: 'domain' + # comments support + - url_prefix: 'com,googleapis,plus)/u/0/_/widget/render/comments' + + rewrite: + js_rewrite_location: location + + fuzzy_lookup: + - href + - stream_id + - substream_id + + - url_prefix: 'com,ytimg,s)/yts/jsbin/' + + rewrite: + js_rewrite_location: location + # testing rules -- not for valid domain #=================================================================