diff --git a/pywb/rules.yaml b/pywb/rules.yaml index e689d876..94a7e0fb 100644 --- a/pywb/rules.yaml +++ b/pywb/rules.yaml @@ -154,6 +154,13 @@ rules: replace: 'videos' match: 'videos(?:_[^/]+)?/([^?]+)' + # disqus + - url_prefix: 'com,disqus' + + rewrite: + js_rewrite_location: location + + # youtube rules #================================================================= diff --git a/pywb/static/wombat.js b/pywb/static/wombat.js index f46507cc..951fea76 100644 --- a/pywb/static/wombat.js +++ b/pywb/static/wombat.js @@ -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();