From 48f717fcf1483422b8b49ed1cf52469c29e38bd4 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Sat, 28 Jan 2023 12:05:53 -0800 Subject: [PATCH] rules: add 'debugNoBatch' rewrite for fb and insta --- pywb/rules.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pywb/rules.yaml b/pywb/rules.yaml index b3bc0720f..7a3619ba0 100644 --- a/pywb/rules.yaml +++ b/pywb/rules.yaml @@ -196,6 +196,9 @@ rules: group: 1 function: 'pywb.rewrite.rewrite_dash:rewrite_fb_dash' + - match: '"debugNoBatching\s?":(?:false|0)' + replace: '"debugNoBatching":true' + parse_comments: true - url_prefix: 'com,facebook' @@ -227,6 +230,9 @@ rules: - match: '"is_dash_eligible":true' replace: '"is_dash_eligible":false' + - match: '"debugNoBatching\s?":(?:false|0)' + replace: '"debugNoBatching":true' + fuzzy_lookup: '()'