U[ ]

  • /*
     * @title U[ ]
     * @description Ustream browser size fullscreen
     * @include http://www.ustream.tv/channel/*
     * @include https://www.ustream.tv/channel/*
     * @license MIT License http://opensource.org/licenses/MIT
     * @require 
     */
    
    (function () {
        var chId;
        if (!(chId = (/^https?:\/\/www\.ustream\.tv\/channel\/([\w\-.]+)/.exec(location.href) || [])[1]) ||
            !jQuery) {
            return;
        }
    
        jQuery.ajax({
            type:     'GET',
            url:      'http://api.ustream.tv/json/channel/' + chId + '/getValueOf/embedTagSourceUrl',
            dataType: 'jsonp'
        }).
        done(function (res) {
            location.href = res;
        });
    })();
    
    // e.g NASA http://www.ustream.tv/channel/nasa
    //
    // http://api.ustream.tv/json/channel/nasa/getValueOf/embedTagSourceUrl
    //
    //      {
    //          "results": "http:\/\/www.ustream.tv\/flash\/live\/1\/8105471",
    //          "msg": null,
    //          "error": null,
    //          "processTime": true,
    //          "version": "mashery-r10"
    //      }
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2013/06/11 04:32:14 - 2013-06-11