1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 08:04:49 +01:00

rules: tweak better twitter rules, more limited custom rules, hopefully fix inline video

This commit is contained in:
Ilya Kreymer 2015-07-03 11:53:45 -07:00
parent 76ebabd3f2
commit 9333ebc843

View File

@ -6,16 +6,21 @@ rules:
fuzzy_lookup: '/profiles/show/.*with_replies\?.*(max_id=[^&]+)'
# - url_prefix: 'com,twimg,abs)/c/'
# rewrite:
# js_rewrite_location: urls
- url_prefix: 'com,twimg,ton)/'
- url_prefix: 'com,twimg,abs)/c/swift/en/bundle/boot'
rewrite:
js_rewrite_location: urls
js_regexs:
- match: 'window.location'
replace: 'window.WB_wombat_location'
- match: 'document.location'
replace: 'document.WB_wombat_location'
#- url_prefix: 'com,twimg,ton)/'
# rewrite:
# js_rewrite_location: all
- url_prefix: 'com,twimg,amp)/amplify-web-player/prod/js/build.min.js'