Skip to content

Instantly share code, notes, and snippets.

@lackneets
Created October 28, 2016 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lackneets/1ee679338f63b7040037fcde13268b64 to your computer and use it in GitHub Desktop.
Save lackneets/1ee679338f63b7040037fcde13268b64 to your computer and use it in GitHub Desktop.
Facebook auto poke all
// https://www.facebook.com/pokes/?notif_t=poke
setInterval(function(){
var cancel = document.querySelector('a[autofocus][action=cancel]');
cancel && cancel.click();
var poke = document.querySelector('a[ajaxify*="/pokes/inline/"]:not(.saving)');
poke && poke.click();
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment