Created
September 25, 2013 05:18
-
-
Save epitron/6695425 to your computer and use it in GitHub Desktop.
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: Click a username and see their videos! | |
// @namespace http://github.com/epitron/ | |
// @version 0.1 | |
// @description When you click a username, instead of seeing that lame youtube user's "summary" page, you get their actual list of videos (sorted by date). | |
// @include /^https?://(?:www\.)?(?:youtube\.com)/.*/ | |
// @copyright 2013 epitron | |
// ==/UserScript== | |
(function() { | |
var userlinks = document.getElementsByClassName("yt-user-name"); | |
for (var i = 0; i < userlinks.length; i++) { | |
userlinks[i].pathname += "/videos"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment