Y
Hacker News
new
|
ask
|
show
|
jobs
by
xchkr1337
1176 days ago
reassigning document.body.innerHTML like that seems like a really bad idea, this should be done using MutationObserver
1 comments
kevincox
1176 days ago
Yup. It will recreate all elements. At the very least it will break event listeners which will break most sites. It will probably do about 8 other things that break many sites.
link