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:
parent
c9fc8843f0
commit
f276eeba54
@ -154,6 +154,13 @@ rules:
|
||||
replace: 'videos'
|
||||
match: 'videos(?:_[^/]+)?/([^?]+)'
|
||||
|
||||
# disqus
|
||||
- url_prefix: 'com,disqus'
|
||||
|
||||
rewrite:
|
||||
js_rewrite_location: location
|
||||
|
||||
|
||||
# youtube rules
|
||||
#=================================================================
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user