Skip to content

Instantly share code, notes, and snippets.

@wijhuang
Created April 30, 2018 09:06
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 wijhuang/afa71e3337e870a1226eae1af94df06e to your computer and use it in GitHub Desktop.
Save wijhuang/afa71e3337e870a1226eae1af94df06e to your computer and use it in GitHub Desktop.
OneTab Extension to print link
var list = document.getElementsByTagName("a")
var str = ""
for (var i=0; i<list.length; i++) {
str += list[i].innerText + "\n";
str += list[i].href + "\n";
}
console.log(str);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment