Skip to content

Instantly share code, notes, and snippets.

@joelcardinal
Last active November 23, 2015 20:19
Show Gist options
  • Save joelcardinal/38bd1391cda4f2a292ed to your computer and use it in GitHub Desktop.
Save joelcardinal/38bd1391cda4f2a292ed to your computer and use it in GitHub Desktop.
I have a habit of opening a gazillion tabs of links I want to keep. One quick way I've discovered other than bookmarking is to open chrome://inspect and you can collect all the links (except if more than 100 characters, Chrome truncates with "...") in the console by running this:
/* run in console on chrome://inspect..., select and copy output. Doesn't work with if URL more than 100 characters, Chrome truncates with "..." */
(function(){var arr=[],urls=document.querySelectorAll('.url');for (i=0,len=urls.length; len > i; i++){arr.push(urls[i].innerHTML)}return arr.join('\n\r');}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment