Skip to content

Instantly share code, notes, and snippets.

@paulphys
Forked from nikitavoloboev/YouTube-following.md
Created June 6, 2022 12:57
Show Gist options
  • Save paulphys/0a58d2ccb0c16d96cde88d8c16fd9b38 to your computer and use it in GitHub Desktop.
Save paulphys/0a58d2ccb0c16d96cde88d8c16fd9b38 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