Closed mpsijm closed 8 years ago
The additional lag that this feature takes with him is really noticable. xD But that's something we already expected, so that's fine. ;)
The status of the extension gets quite buggy after switching a few pull requests, which could have two causes in my opinion:
I think the last one is most likely the cause.
Nice coding style, LGTM.
The bug has indeed been fixed; thanks! :D I've played around more and can't find any more bugs, nice! :) The functionality is there and it has been tested well now, so good job! :D
Make sure to fix the typo and you have my approval for merging this PR. :)
There isn't any possibility of making this faster right? The only problem is that I'm suddenly getting 400 statuscodes while typing this message, maybe something to look into? (You seem to have broken some KeystrokeEvents)
Nope, this part cannot be made faster. Mainly because the rewriting of the DOM has to happen in the content script, because the page cannot be reconstructed in the background page. The 400 status codes are because the space characters cannot be pushed to the database. I'll poke Aaron about that :P
Thanks for the rewrite, this does make it somewhat faster :) I will merge this
Will close #134
Changes:
DOMRewriter
class, which can recursively adddata-octopeer-*
tags to DOM elementsContentController
useDOMRewriter
to rewrite the DOM on specific moments:MutationObserver
notices a mutation in the DOM treeIf there's anything wrong with anything, tell me! :D Else, please merge :)