Skip to content

Instantly share code, notes, and snippets.

@Yonezpt
Created January 4, 2016 23:19
Show Gist options
  • Save Yonezpt/3246b0570b384298b38d to your computer and use it in GitHub Desktop.
Save Yonezpt/3246b0570b384298b38d to your computer and use it in GitHub Desktop.
Remove subscriptions from guide menu to prevent Firefox hangs
// ==UserScript==
// @version 1.0.0
// @name YouTube Guide Nuke
// @description Remove subscriptions from guide menu to prevent Firefox hangs
// @match *://www.youtube.com/*
// @run-at document-start
// @grant none
// @noframes
// ==/UserScript==
(function () {
"use strict";
function nukeSubs() {
var guideSubs = document.getElementById("guide-subscriptions-section");
// or use "guide-channels" instead to show the "SUBSCRIPTIONS" link title
if (guideSubs) {
guideSubs.remove();
}
}
document.addEventListener("readystatechange", nukeSubs);
document.addEventListener("load", nukeSubs, true);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment