Skip to content

Instantly share code, notes, and snippets.

@ide-an
Created July 8, 2012 15:45
Show Gist options
  • Save ide-an/3071385 to your computer and use it in GitHub Desktop.
Save ide-an/3071385 to your computer and use it in GitHub Desktop.
あーだ半自動化
// あーだ遷移半自動化ブックマークレット
// original
(function(q,d){
if(d[q](".result")!=null){
d[q]('img[src^="http://twitter-badges"]').parentNode.click()
}else{
d[q]("form[name=enter]").submit();
}
}("querySelector",document))
// manually compressed
javascript:(function(q,d){d[q](".result")?d[q]('img[src^="http://twitter-b"]').click():d[q]("form").submit()}("querySelector",document))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment