ballerburg9005 / Youtube ALWAYS MORE VIDEOS from channel (full channel playlist)

// ==UserScript==
// @name        Youtube ALWAYS MORE VIDEOS from channel (full channel playlist)
// @description When watching any video, script loads a playlist of the current channel and plays through it. *Try pressing F5 if it doesn't work.*
// @include     http*://*youtube.*/*
// @run-at      document-start
// @license     MIT
// @author      ballerburg9005
// ==/UserScript==

if ( /v=/.test(window.location.search) && ! /&list=/.test(window.location.search)) {

    window.location.replace(
		  window.location.protocol + "//"
                + window.location.host
                + window.location.pathname
                + window.location.search
		+ "&feature=BFa&list=ULKwm-CtgFTb8&lf=mfu_in_order"
                + window.location.hash
		);
}

new MutationObserver(function(_,self)
{
        for (let link of document.links)
        {
            if (!link.classList.contains('youtube-channel-playlist-script-mutation-observed'))
            {
                // remove webapp trash
                link.classList.remove('spf-link');
                link.classList.remove('yt-simple-endpoint');
                link.classList.remove('yt-uix-redirect-link');
                link.removeAttribute('rel');
                link.removeAttribute('data-sessionlink');
                link.removeAttribute('data-visibility-tracking');
                link.removeAttribute('aria-hidden');

                // fix now somehow underlined ugly links
                link.classList.add('youtube-channel-playlist-script-mutation-observed');
                link.setAttribute("style", "text-decoration: none; font-size: 14px; ");
                if(link.id == "video-title") { link.setAttribute("style", "font-weight: 500; max-height: 999px; "+link.getAttribute("style")); }
              	if(document.getElementsByTagName("HTML")[0].getAttribute("dark") == "true") { link.setAttribute("style", "color: white; "+link.getAttribute("style")); }
              	else { link.setAttribute("style", "color: black; "+link.getAttribute("style")); }
            }
        }
}).observe(document, {childList:true, subtree:true});