Skip to content

Instantly share code, notes, and snippets.

@Destroyer
Last active June 8, 2017 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Destroyer/148a715c3ad60b1268ae95d754be9f5a to your computer and use it in GitHub Desktop.
Save Destroyer/148a715c3ad60b1268ae95d754be9f5a to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Youtube show all playlists and change logo link to subscriptions
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Youtube fixes
// @author Destroyer
// @match https://www.youtube.com/*
// @noframes
// @grant GM_addStyle
// @grant GM_getResourceText
// ==/UserScript==
/* jshint -W097 */
'use strict';
// CHANGE LOGO TO SUBSCRIPTIONS
//var logo = document.getElementById('logo');
//logo.getElementsByTagName('a')[0].setAttribute('href', "https://www.youtube.com/feed/subscriptions");
// old version
var logo = document.getElementById('logo-container');
logo.href="https://www.youtube.com/feed/subscriptions";
// AUTO REDIRECT FROM HOMEPAGE TO SUBSCRIPTIONS
if (location.href == "https://www.youtube.com/")
{
window.location = "https://www.youtube.com/feed/subscriptions";
}
// REMOVE SUBSCRIPTION LINKS AND RELATED VIDEOS
//GM_addStyle('ytd-guide-subscriptions-section-renderer{display:none!important}');
// old version
GM_addStyle('#guide-subscriptions-section,#guide_builder-guide-item,.overflowable-list-root+.guide-section-separator,#what_to_watch-guide-item, #watch7-sidebar-contents {display:none;}');
// SHOW ALL PLAYLISTS
var items = document.getElementsByClassName("yt-uix-expander-collapsed")[0].classList.remove("yt-uix-expander-collapsed");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment