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

rules: add location rewrite only rule for disqus

wombat: ensure _orig_setAttribute is still set even if setAttribute rewriting disabled!
This commit is contained in:
Ilya Kreymer 2015-05-13 13:48:08 -07:00
parent c9fc8843f0
commit f276eeba54
2 changed files with 10 additions and 0 deletions

View File

@ -154,6 +154,13 @@ rules:
replace: 'videos'
match: 'videos(?:_[^/]+)?/([^?]+)'
# disqus
- url_prefix: 'com,disqus'
rewrite:
js_rewrite_location: location
# youtube rules
#=================================================================

View File

@ -1137,7 +1137,10 @@ _WBWombat = (function() {
// setAttribute
if (!wb_opts.skip_setAttribute) {
init_setAttribute_override(wb_opts.use_attr_observers);
} else {
Element.prototype._orig_setAttribute = Element.prototype.setAttribute;
}
// ensure namespace urls are NOT rewritten
init_createElementNS_fix();