Created
January 4, 2016 23:19
-
-
Save Yonezpt/3246b0570b384298b38d to your computer and use it in GitHub Desktop.
Remove subscriptions from guide menu to prevent Firefox hangs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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