N----

    @@ -2,8 +2,8 @@ * @title N---- * @description get back '-' header from idiotic 'Z' header on nicovideo * @include http://*.nicovideo.jp/* - * @contributor noromanba * @license MIT License http://opensource.org/licenses/MIT + * @javascript_url */ // UserScript @@ -13,28 +13,29 @@ // https://gist.github.com/noromanba/4178554/ // c.f. http://ptech.g.hatena.ne.jp/noromanba/20141124/1416857417 -(function () { - if (!/nicovideo\.jp$/.test(location.hostname)) return; - - var addStyle = (function () { - var parent = document.head || document.body || document.documentElement; - - var style = document.createElement('style'); - style.type = 'text/css'; - parent.appendChild(style); - - return function (css) { - style.appendChild(document.createTextNode(css + '\n')); - }; - })(); +(function workwith<at>javascript() { + // 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); + }); + }; - // TODO handle huge minimum-font-size (15pt+) - var straighten = function () { + require([ /* - addStyle('#siteHeaderNotification .siteHeaderUpgrade { display: none !important;}'); - /*/ - addStyle('#siteHeaderUserNickNameContainer { display: none !important;}'); - //*/ - }; - straighten(); + // 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' + ]); })();
  • /*
     * @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 workwith<at>javascript() {
        // 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