Skip to content

Instantly share code, notes, and snippets.

@kdxu
Last active August 29, 2015 14:04
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 kdxu/1a47354c33dfce117a2b to your computer and use it in GitHub Desktop.
Save kdxu/1a47354c33dfce117a2b to your computer and use it in GitHub Desktop.
setInterval(
function(){
var pokes = documentgetElementsByTagName('a')
for (var i = 0; i<pokes.length; i++) {
var e = pokes[i]
if(e.getAttribute('ajaxify')&&e.getAttribute('ajaxify').match(/^\/ajax\/pokes\//)){
console.log("POKE")
e.click()} }}, 1000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment