Skip to content

Instantly share code, notes, and snippets.

@em92
Last active May 15, 2016 08:19
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 em92/cd81f37a99945f3da233b6cc7b0264ed to your computer and use it in GitHub Desktop.
Save em92/cd81f37a99945f3da233b6cc7b0264ed to your computer and use it in GitHub Desktop.
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