Skip to content

Instantly share code, notes, and snippets.

@indygwyn
Forked from nikitavoloboev/YouTube-following.md
Created July 22, 2022 22:30
Show Gist options
  • Save indygwyn/3de5dc14ad239e284be12dfb3353a019 to your computer and use it in GitHub Desktop.
Save indygwyn/3de5dc14ad239e284be12dfb3353a019 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