Won’t talk too much about this, because it’s pretty self-explainatory.
Inspired by RSS Youtube Feeds article, and based on the deviantArt and RSS Feeds Buttons extensions, I made an extension to pull the Youtube feed URL.
πΎYoutube RSS Feed Button Chrome Extension
youtube-feed-button.zip (5 KB)
The code is simple, so the archive is only 5KB, because it doesn’t use jQuery, just native Javascript, but it had to use a pretty hacky approach, because I couldn’t access the ytInitialData
JavaScript variable from the extension. I had to write an inline script that is dumped into a variable which is then injected into the DOM, so it has access to the ytInitialData
variable, so it can do the processing. This solution (and others) is found in chapter “Method 2: Inject embedded code (MV2)” in this StackOverflow response
|
|
All this was dumped into a variable which was then added to the DOM.
|
|
80% of the time works every time, but sometimes I’ve seen it work on a new channel’s page only after a page reload. Your experience might vary.
Changelog
*://*.youtube.com/*
instead of *://*.youtube.com/@*
, because not all channels begin with an @
.And that’s it! :)