title: Insert text into messenger.com message box using Javascript
body: <p>My extension allows users to enter predefined text into textboxes and content editable divs.</p>
  
  <p>Messenger.com message box is a contenteditable div. Normally I would insert text into such a node using </p>
  
  <pre><code>txt = 'hello'
  g = document.createTextNode(txt)
  f = window.getSelection().getRangeAt(0)
  f.insertNode(g)
  f.collapse()
  f.setStart(g, txt.length)
  f.setEnd(g, txt.length)
  window.getSelection().removeAllRanges()
  window.getSelection().addRange(f)
  g.parentNode.normalize()
  
  </code></pre>
  
  <p>However, it is not possible to insert text using this method in Messenger. Is it possible to simulate a user typing using keypress events and actually have text inserted into the textbox ? </p>