N----

    
      
  • /*
     * @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
     */
    
    // UserScript
    // https://userscripts.org/scripts/show/153240
    
    // Devel
    // https://gist.github.com/noromanba/4178554/
    
    (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'));
            };
        })();
    
        // TODO handle huge minimum-font-size (15pt+)
        var straighten = function () {
            /*
            addStyle('#siteHeaderNotification .siteHeaderUpgrade { display: none !important; }');
            /*/
            addStyle('#siteHeaderUserNickNameContainer { display: none !important; }');
            //*/
        };
        straighten();
    })();
  • 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