Skip to content

Instantly share code, notes, and snippets.

@sakunyo
Last active December 15, 2015 09:09
Show Gist options
  • Save sakunyo/5236485 to your computer and use it in GitHub Desktop.
Save sakunyo/5236485 to your computer and use it in GitHub Desktop.
<!DOCTYPE html> <!--[if IE ]><html id="oldie" lang="ja" dir="ltr"><![endif]--> <!--[if !(IE) ]><!--><html lang="ja" dir="ltr"><!--<![endif]--> <head> <meta charset="UTF-8"> <title></title> </head> <body class="nojs"> <a href='javascript:(function getHref(d, c) { var p = prompt("Get href List", "a"), i = 0, s = ""; if (p) { var a = d.querySelectorAll(p); for (; i < a.length; i++) s += a[i].href + "\n"; c.log(s); } })(document, console);'>TEST</a> <script type="text/javascript"> // (function getHref(d, c) { var p = prompt("Get href List", "a"), i = 0, s = ""; if (p) { var a = d.querySelectorAll(p); for (; i < a.length; i++) s += a[i].href + "\n"; c.log(s); } })(document, console); </script> </body> </html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment