mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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
86be72b30a
commit
40f15cf6ea
@ -154,6 +154,13 @@ rules:
|
|||||||
replace: 'videos'
|
replace: 'videos'
|
||||||
match: 'videos(?:_[^/]+)?/([^?]+)'
|
match: 'videos(?:_[^/]+)?/([^?]+)'
|
||||||
|
|
||||||
|
# disqus
|
||||||
|
- url_prefix: 'com,disqus'
|
||||||
|
|
||||||
|
rewrite:
|
||||||
|
js_rewrite_location: location
|
||||||
|
|
||||||
|
|
||||||
# youtube rules
|
# youtube rules
|
||||||
#=================================================================
|
#=================================================================
|
||||||
|
|
||||||
|
@ -1137,7 +1137,10 @@ _WBWombat = (function() {
|
|||||||
// setAttribute
|
// setAttribute
|
||||||
if (!wb_opts.skip_setAttribute) {
|
if (!wb_opts.skip_setAttribute) {
|
||||||
init_setAttribute_override(wb_opts.use_attr_observers);
|
init_setAttribute_override(wb_opts.use_attr_observers);
|
||||||
|
} else {
|
||||||
|
Element.prototype._orig_setAttribute = Element.prototype.setAttribute;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ensure namespace urls are NOT rewritten
|
// ensure namespace urls are NOT rewritten
|
||||||
init_createElementNS_fix();
|
init_createElementNS_fix();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user