Search code examples
google-chrome-extensiongmailautosave

Chrome Extensions in Gmail, autosave removes it


I'm trying to write a chrome extension that is used in the GMail compose screen. So far I have it working the way I want to except that when the GMail does its auto-save it removes my extension.

I'm adding in my extension with the content_script via java inject. and appending to the compose iframe.

Any help would be appreciated :)


Solution

  • You have to track DOM changes and re-add your code after the auto-save. There is another answer that gives a quick intro to DOMNodeInserted events. You should be able to watch for the Draft saved at ... insert.