Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
YouTube copypaster hider
// ==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
You can’t perform that action at this time.