Created
April 30, 2018 09:06
-
-
Save wijhuang/afa71e3337e870a1226eae1af94df06e to your computer and use it in GitHub Desktop.
OneTab Extension to print link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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