Last active
May 15, 2016 08:19
-
-
Save em92/cd81f37a99945f3da233b6cc7b0264ed to your computer and use it in GitHub Desktop.
YouTube copypaster hider
This file contains hidden or 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== | |
// @name YouTube copypaster hider | |
// @namespace eugenem | |
// @include https://www.youtube.com/watch?v=* | |
// @include https://www.youtube.com/watch?*&v=* | |
// @version 1 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js | |
// @grant none | |
// ==/UserScript== | |
var blacklist = [ | |
'UCoZfQCj1l8RandzjzxXgixg', | |
'UCKxSHALk92y7kKIGCvzHgQA', | |
'UCzC3-mgRz_NaOL0LnMJ9HSA', | |
'UCf9eRUW9qiXsoz3o6m9meqA', | |
'UC-oyrcPECj0ZaTxe5Y9Isbw' | |
]; | |
$("span.g-hovercard").each(function(index) { | |
if ( ($.inArray($(this).attr('data-ytid'), blacklist) > -1) && ($(this).hasClass('video-thumb') == false) ){ | |
$(this).parent().parent().parent().parent().hide(); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment