Skip to content

Instantly share code, notes, and snippets.

@tbranyen
Created August 14, 2012 03:53
Show Gist options
  • Save tbranyen/3346143 to your computer and use it in GitHub Desktop.
Save tbranyen/3346143 to your computer and use it in GitHub Desktop.
A user script for removing bullshit YouTube comments.
// ==UserScript==
// @name RemoveYouTubeComments
// @description Remove bullshit YouTube comments.
// @include http://www.youtube.com/*
// @version 1.0
// ==/UserScript==
// Find the comments view element.
var commentsView = document.getElementById("comments-view");
// Make sure it exists, otherwise an error will be thrown.
if (commentsView) {
// Remove this shit from the DOM.
commentsView.parentNode.removeChild(commentsView);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment