Skip to content

Instantly share code, notes, and snippets.

@nyuichi
Created October 28, 2012 08:51
Show Gist options
  • Select an option

  • Save nyuichi/3968088 to your computer and use it in GitHub Desktop.

Select an option

Save nyuichi/3968088 to your computer and use it in GitHub Desktop.
poke function (facebook)
/*
* 1. Open facebook.com/pokes
* 2. Open developer console
* 3. input this function
* 4. Run 'poke()'
*/
function poke() {
var a = pagelet_pokes.lastChild.lastChild.firstChild.firstChild.lastChild.lastChild.firstChild.lastChild.lastChild.lastChild;
var e = document.createEvent("MouseEvents");
e.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
a.dispatchEvent(e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment