Created
December 2, 2018 05:23
-
-
Save aquilax/e3c2a572c889ec41312473aa7e37829e to your computer and use it in GitHub Desktop.
Copy external links from a thread as tab delimited table
This file contains 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
copy(Array.prototype.slice.call(document.querySelectorAll("a")) | |
.filter(link => link.text && !link.href.startsWith(window.location.href.substr(0, 10))) | |
.map(link => `${link.href}\t${link.text}`) | |
.join("\n")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment