NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name YouTube Channel RSS Link (Legacy) // @namespace // @version 1.1 // @description Does the same thing as the YouTube Channel RSS Link script, but for legacy chanels that are idetified by username instead of a channel ID. // @author x2000 // @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt // @match https://www.youtube.com/user/* // @grant none // ==/UserScript== (function() { 'use strict'; //Gnerate Link var URL = window.location.href; var ID = URL.slice(29); ID = ID.split("/", 1); var Link = "https://www.youtube.com/feeds/videos.xml?user=".concat(ID); var Icon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAOhklEQVR42u2dC3QVxRnH/7N5QDDkITEogoA8QqhCIggBBEEUeSOIgAdEfFC1Hm3ro1ZatcqhKir4KGqt9YVIRQQMIG8KgoAEgQABwjOA4RkCIZCEJMzXmU1vjTTA3d3Zuzd393dOTk5yMvN9M/nfmW9mv5ll5z6uQ/BwLcwTgLvxBOByPAG4HE8ALscTgMvxBOByPAG4HE8ALscTgMvxBOByPAG4HE8ALscTgMvxBOByPAG4HE8ALscTgMvxBOByPAG4HE8ALscTgMuxTwBJD4DV6wwqPQ0QB8qLAF4GnD0BFB0CnS0Aig8Dp/cBZWfAeInTfeFK7BNAx7egNR9+yT8jEuZLC0BnDgIFO8XXLlD+FiB/sxDKYU8YNuO4AC4GFR0FndwOHFkDOvw9cDwTrPy0E/0UstgogDeFAEYorZJKC0HH1gM/LQblLgUKd4HRuUD0U8hinwA6CAEkqRVAZfSp4+QOUM43oH1zxNSR7YnBBDYKYKIQwD0BaYQuhvws0J7poL0zwIoOBsRuKBASAqgMlZeADiwEZX8iYofvvVHhEoScACpD+VvBt30I7JkmGuqtJqrCRgFMEAIY6XT7dOhMLmjbR2JU+BSs7KTT7gQVrhCADyo6Atr6dyGGD0XDi5x2JyiwUQBvCAHc63T7qoQKD4BvfBWQASMvddodR7FPAGlCAC2CUwA+6NiP4BkvAsd+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0]) != "undefined"){ var HTML = document.getElementsByClassName("about-secondary-links")[0].innerHTML; document.getElementsByClassName("about-secondary-links")[0].innerHTML = HTML+"<li class=\"channel-links-item\"> <a href=\""+Link+"\"title=\"RSS Feed\" class=\"about-channel-link yt-uix-redirect-link about-channel-link-with-icon\"><img src=\""+Icon+"\" class=\"about-channel-link-favicon\" width=\"16\" height=\"16\"></a></li>"; } else { document.getElementById("header-links").innerHTML = "<ul class=\"about-secondary-links\"><li class=\"channel-links-item\"> <a href=\""+Link+"\"title=\"RSS Feed\" class=\"about-channel-link yt-uix-redirect-link about-channel-link-with-icon\"><img src=\""+Icon+"\" class=\"about-channel-link-favicon\" width=\"16\" height=\"16\"></a></li></ul>"; } })();