pywb rewrites all this uses to use a wrapper. However, the rewriting can be a bit overzealous, since it does so inside strings. For example, document.querySelector("p").innerText = "well, this is awkward" gets rewritten into document.querySelector("p").innerText = "well, _____WB$wombat$check$this$function_____(this) is awkward"
Describe the bug
pywb rewrites all
this
uses to use a wrapper. However, the rewriting can be a bit overzealous, since it does so inside strings. For example,document.querySelector("p").innerText = "well, this is awkward"
gets rewritten intodocument.querySelector("p").innerText = "well, _____WB$wombat$check$this$function_____(this) is awkward"
Steps to reproduce the bug
wb-manager init test
wb-manager add test test.warc.gz
Expected behavior
The rewrite to not hapen inside strings
Screenshots
Environment