Skip to content

Instantly share code, notes, and snippets.

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 atomicstack/3e92a28e53de928e61c1d2e924f22255 to your computer and use it in GitHub Desktop.
Save atomicstack/3e92a28e53de928e61c1d2e924f22255 to your computer and use it in GitHub Desktop.
a JS snippet that dumps a list of title+href for each selected YouTube search result
document.querySelectorAll('a[title*=$foo]').forEach(function(item, i) { console.log([item.title, item.href ]); })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment