+Youtube Fork

  • /*
     * @title +Youtube
     * @description Subscribe Youtube feed (Atom, RSS)
     * @include http://www.youtube.com/*
     * @include https://www.youtube.com/*
     * @require
     * @license MIT License http://nrm.mit-license.org/2012
     * @author noromanba (https://flavors.me/noromanba)
     *
     */
    
    // # Feeds
    // - large thumbnail ver.
    //   https://gdata.youtube.com/feeds/base/users/youtube/uploads
    // - default feed, register from browser
    //   https://gdata.youtube.com/feeds/base/users/youtube/uploads?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile
    // - tiny query ver.
    //   https://gdata.youtube.com/feeds/base/users/youtube/uploads?alt=rss&v=2&orderby=published
    //
    // - alternate gateway (user: youtube)
    //   https://www.youtube.com/rss/user/youtube/videos.rss
    // - exepanded alt-gw. default order by updated
    //   https://gdata.youtube.com/feeds/base/users/youtube/uploads?orderby=updated&alt=rss&client=ytapi-youtube-rss-redirect&v=2
    
    // only channel feeds, no handling artist tag or any other feeds
    // c.f. https://developers.google.com/youtube/2.0/developers_guide_protocol_video_feeds
    (function () {
        if (!(/^https?:\/\/www\.youtube\.com/.test(location.href))) return;
    
        var user = (/^https?:\/\/www\.youtube\.com\/user\/(\w+)/.exec(location.href) || [])[1] ||
                   (document.querySelector('#watch7-user-header .yt-user-name') || {}).textContent;
        if (!user) return;
    
        var reader = 'https://www.google.com/reader/view/feed/';
        var feed = (function () {
            // TBD make https
            var origin = 'http://gdata.youtube.com/feeds/base/users/' + user + '/uploads';
            return {
                small: origin + '?alt=rss&v=2&orderby=published&client=ytapi-youtube-profile',
                tiny : origin + '?alt=rss&v=2&orderby=published',
                large: origin
            };
        })();
    
        location.href = reader + encodeURIComponent(feed.small);
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/12/14 00:22:27 - 2012-12-14
  2. 2012/12/04 19:15:04 - 2012-12-04
  3. 2012/12/02 19:49:00 - 2012-12-02
  4. 2012/01/26 20:35:20 - 2012-01-26
  5. 2012/01/21 01:37:37 - 2012-01-21
  6. 2012/01/21 01:34:49 - 2012-01-21
  7. 2012/01/21 01:22:51 - 2012-01-21
  8. 2012/01/19 20:03:07 - 2012-01-19
  9. 2012/01/17 16:54:27 - 2012-01-17
  10. 2012/01/17 16:23:43 - 2012-01-17
  11. 2012/01/16 17:26:57 - 2012-01-16
  12. 2012/01/16 17:20:56 - 2012-01-16
  13. 2012/01/16 17:14:12 - 2012-01-16
  14. 2012/01/16 17:06:18 - 2012-01-16
  15. 2012/01/16 09:42:43 - 2012-01-16
  16. 2012/01/16 09:42:15 - 2012-01-16
  17. 2012/01/14 08:13:15 - 2012-01-14
  18. 2012/01/13 19:30:13 - 2012-01-13
  19. 2012/01/13 19:19:24 - 2012-01-13
  20. 2012/01/13 18:43:11 - 2012-01-13
  21. 2012/01/12 08:11:32 - 2012-01-12
  22. 2012/01/12 06:51:13 - 2012-01-12
  23. 2012/01/12 06:42:54 - 2012-01-12
  24. 2012/01/12 06:32:14 - 2012-01-12
  25. 2012/01/12 06:31:21 - 2012-01-12
  26. 2012/01/12 06:29:30 - 2012-01-12
  27. 2012/01/12 01:55:32 - 2012-01-12
  28. 2012/01/12 01:47:14 - 2012-01-12
  29. 2012/01/12 01:43:39 - 2012-01-12
  30. 2012/01/12 01:41:54 - 2012-01-12
  31. 2012/01/12 01:21:58 - 2012-01-12
  32. 2012/01/12 01:21:06 - 2012-01-12
  33. 2012/01/12 00:54:09 - 2012-01-12
  34. 2012/01/12 00:49:01 - 2012-01-12
  35. 2012/01/11 21:20:43 - 2012-01-11
  36. 2012/01/11 21:17:58 - 2012-01-11
  37. 2012/01/11 21:14:12 - 2012-01-11
  38. 2012/01/11 20:01:20 - 2012-01-11
  39. 2012/01/11 19:43:13 - 2012-01-11
  40. 2012/01/11 17:54:28 - 2012-01-11
  41. 2012/01/11 17:45:34 - 2012-01-11
  42. 2012/01/11 17:27:46 - 2012-01-11
  43. 2012/01/11 17:19:35 - 2012-01-11
  44. 2012/01/11 15:39:53 - 2012-01-11
  45. 2012/01/08 17:41:01 - 2012-01-08
  46. 2012/01/08 17:35:45 - 2012-01-08
  47. 2012/01/08 17:34:31 - 2012-01-08
  48. 2012/01/08 17:33:48 - 2012-01-08
  49. 2012/01/08 17:07:19 - 2012-01-08
  50. 2012/01/08 16:40:00 - 2012-01-08
  51. 2012/01/08 16:36:24 - 2012-01-08
  52. 2012/01/08 16:35:38 - 2012-01-08
  53. 2012/01/08 16:27:25 - 2012-01-08
  54. 2012/01/08 15:11:24 - 2012-01-08
  55. 2012/01/08 15:04:23 - 2012-01-08
  56. 2012/01/08 15:02:18 - 2012-01-08
  57. 2012/01/07 20:20:35 - 2012-01-07
  58. 2012/01/07 20:13:01 - 2012-01-07
  59. 2012/01/07 20:05:52 - 2012-01-07
  60. 2012/01/07 20:04:51 - 2012-01-07
  61. 2012/01/07 20:02:28 - 2012-01-07
  62. 2012/01/07 19:53:02 - 2012-01-07
  63. 2012/01/07 19:40:59 - 2012-01-07
  64. 2012/01/07 19:40:28 - 2012-01-07
  65. 2012/01/07 19:36:49 - 2012-01-07
  66. 2012/01/07 19:26:33 - 2012-01-07
  67. 2012/01/07 19:21:22 - 2012-01-07
  68. 2012/01/07 19:20:33 - 2012-01-07