N----

  • /*
     * @title N----
     * @description get back '-' header from idiotic 'Z' header on nicovideo
     * @include http://*.nicovideo.jp/*
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // UserScript
    // https://gist.github.com/noromanba/4178554/
    
    // Devel
    // https://gist.github.com/noromanba/4178554/
    
    // c.f. http://ptech.g.hatena.ne.jp/noromanba/20141124/1416857417
    (function work_with_at_javascript_url() {
        // http://let.hatelabo.jp/noromanba/let/hJmehqPZh6wf
        var require = function (urls) {
            Array.prototype.slice.call(urls).forEach(function (u) {
                var scr = document.createElement('script');
                scr.src = u;
                document.body.appendChild(scr);
            });
        };
    
        require([
            /*
            // Gist MIME type ('text/plain') only, blocked raw js url
            // - https://gist.github.com
            // - https://gist.githubusercontent.com
            'https://gist.github.com/noromanba/4178554/raw/nico-recover-straight-header.user.js'
            */
    
            // MIME type ('application/octet-stream'); use rawgit w/ MaxCDN c.f.
            // - http://rawgit.com
            // - http://rawgit.com/faq#no-uptime-guarantee
            // filename must be needs, for strict MIME type checking; fail e.g.
            //  https://cdn.rawgit.com/noromanba/4178554/raw/
            'https://cdn.rawgit.com/noromanba/4178554/raw/nico-recover-straight-header.user.js'
        ]);
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2014/11/27 02:02:29 - 2014-11-27
  2. 2014/11/27 02:00:43 - 2014-11-27
  3. 2014/11/27 01:58:30 - 2014-11-27
  4. 2014/11/25 04:30:58 - 2014-11-25
  5. 2013/10/13 08:10:16 - 2013-10-13
  6. 2013/10/13 07:36:52 - 2013-10-13