pixiv -modal

    @@ -6,8 +6,21 @@ * @javascript_url * @private WIP */ - (function () { - (document.querySelector('#register-introduction-modal') || {}).style.display = 'none'; + if (!/www\.pixiv\.net$/.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')); + }; + })(); + + addStyle('#register-introduction-modal { display: none; }'); })();
  • /*
     * @title pixiv -modal
     * @description hidden welcome-modal on Pixiv for nonmember
     * @include http://www.pixiv.net/*
     * @license MIT http://opensource.org/licenses/MIT
     * @javascript_url
     * @private WIP
     */
    (function () {
        if (!/www\.pixiv\.net$/.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'));
            };
        })();
    
        addStyle('#register-introduction-modal { display: none; }');
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/03/01 03:24:33 - 2015-03-01
  2. 2015/02/13 04:02:37 - 2015-02-13
  3. 2015/02/13 02:10:32 - 2015-02-13
  4. 2015/01/21 02:59:11 - 2015-01-21
  5. 2015/01/21 02:50:45 - 2015-01-21