Skip to content

Instantly share code, notes, and snippets.

@smwhr
Created June 19, 2017 13:40
Show Gist options
  • Save smwhr/a35d97989b48e4973c55d62e9b376224 to your computer and use it in GitHub Desktop.
Save smwhr/a35d97989b48e4973c55d62e9b376224 to your computer and use it in GitHub Desktop.
Raccourci pour poker tous les pokebacks
javascript:var a = document.getElementsByTagName('a'); var collect = [] ; for(var i = 0; i<=a.length;i++){collect.push(a.item(i))} ; var pokelink = collect.filter(function(e){if(e == null) {return false};if(typeof(e.attributes) =="undefined"){return false}; return !(typeof(e.attributes.ajaxify) == "undefined")}).filter(function(e){return e.attributes.ajaxify.value.substr(0,13)== "/pokes/inline"}).filter(function(e){return e.attributes.ajaxify.value.indexOf("is_hide=0") > -1}).slice(0,-5);for(var e in pokelink){pokelink[e].click()};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment