Skip to content

Instantly share code, notes, and snippets.

@kopiro
Created August 16, 2011 13:31
Show Gist options
  • Save kopiro/1149069 to your computer and use it in GitHub Desktop.
Save kopiro/1149069 to your computer and use it in GitHub Desktop.
Forward all Facebook message
MessagingManager.getState().enterForwardMode();
var allMsg = $$(".MessagingMessage");
var evtClk = document.createEvent("HTMLEvents");
evtClk.initEvent("click", true, true);
for (var i=0; i<allMsg.length; i++)
allMsg[i].dispatchEvent(evtClk);
$$("#ForwardMessages input")[0].click();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment