Skip to content

Instantly share code, notes, and snippets.

@nikitavoloboev
Last active March 10, 2024 22:04
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save nikitavoloboev/d7d179271bc2f63f02f6b24b29c307bb to your computer and use it in GitHub Desktop.
Save nikitavoloboev/d7d179271bc2f63f02f6b24b29c307bb to your computer and use it in GitHub Desktop.

Accounts I follow on YouTube

Got it from running below script:

let markdown = Array.from(document.querySelectorAll("ytd-channel-renderer"))
  .map((item) => ({
    title: item.querySelector("#text-container").textContent.trim(),
    url: item.querySelector("#main-link").href,
  }))
  .map(({ title, url }) => `- [${title}](${url})`)
  .join(String.fromCharCode(10));

document.write("Your clipboard now contains the list of your YouTube subscriptions.");
copy(markdown);

On this page: https://www.youtube.com/feed/channels

Script gotten from Telik app.

Channels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment