/*
* @title +YR
* @description Create Youtube Uploads RSS for Subscribe.
* @include http://http://www.youtube.com/*
* @license MIT License
* @require
* @see http://let.hatelabo.jp/noromanba/let/gYC-yJnWtr6DNw
* @see http://gdata.youtube.com/feeds/base/users/youtube/uploads
* @see http://gdata.youtube.com/feeds/base/users/youtube/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile
* @see http://gdata.youtube.com/feeds/base/users/youtube/uploads?alt=rss&v=2&orderby=published
* @see http://www.youtube.com/rss/user/youtube/videos.rss
* @private
*/
var d = document;
var userHome = d.getElementById('watch-uploader-info').childNodes[1].href;
var userName = userHome.replace(/http:\/\/www\.youtube\.com\/user\/(.*)/, '$1');
var feed = 'http://gdata.youtube.com/feeds/base/users/' + encodeURIComponent(userName) + '/uploads/';
var readerPreview = 'http://google.com/reader/view/feed/';
location.href = readerPreview + feed;