Skip to content

Instantly share code, notes, and snippets.

@mcmire
Last active May 30, 2016 20:56
Show Gist options
  • Select an option

  • Save mcmire/e4f61e985929849f96477aab473e9e72 to your computer and use it in GitHub Desktop.

Select an option

Save mcmire/e4f61e985929849f96477aab473e9e72 to your computer and use it in GitHub Desktop.
How to make YouTube 100x better
// This script requires dotjs.
// You can install it here: <https://github.com/defunkt/dotjs>
// After you've done that, create a file, ~/.js/youtube.com.js, with these contents in it.
(function () {
var playerWidth = $("#placeholder-player > div").width();
// Remove "up next". It sucks you in, and turns a two-minute YouTube session
// into a two-hour one.
$("#watch7-sidebar").remove()
// Since the sidebar is gone, lengthen the title and description div.
$("#watch7-content").width(playerWidth);
// Center align title and description.
$("#content").width(playerWidth).css("min-width", "initial");
// Expand details automatically.
$("#action-panel-details").removeClass("yt-uix-expander-collapsed");
// "Home" is a cesspool of distraction. It's basically a bunch of videos that
// YouTube thinks you should watch, but you probably shouldn't. Subscriptions
// are the videos you actually want to watch. (Well, assuming you've culled
// the list appropriately.)
if (window.location.pathname === "/") {
window.location.pathname = "/feed/subscriptions";
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment