tl;dr Drag →→→ YouTube channel feed ←←← to your bookmarks to get to the web feed of the current channel.

Did you know YouTube has Atom web feeds for channels? That means you can follow your favourite content creators individually in your favourite feed reader, rather than relying on the jumbled-up subscriptions page. Unfortunately, YouTube doesn’t mention this feed in the relevant pages, hence this bookmarklet. Just go to a user, channel, or video page, and click the bookmarklet to go to the web feed.


Technical stuff

If you’re interested in how this works, here’s the code:

(function () {
  if (
    (channelId =
      window?.ytInitialPlayerResponse?.videoDetails?.channelId ??
      document
        .querySelector(
          "link[rel='canonical'][href^='https://www.youtube.com/channel/']",
        )
        ?.getAttribute("href")
        ?.substring(32))
  ) {
    console.debug("Going to feed URL");
    location.href =
      "https://www.youtube.com/feeds/videos.xml?channel_id=" + channelId;
  } else {
    console.warn("Could not find a channel ID feed at " + location.href);
  }
})();