mo-dal-iy

    @@ -29,6 +29,6 @@ }; })(); - addStyle('#dialog_0 { display: none; }'); + addStyle('#dialog_0, #dialog_1 { display: none; }'); })();
  • /*
     * @title mo-dal-iy
     * @description hidden "darui" modal when not-login on facebook.com
     * @include *://www.facebook.com/*
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // ready to use @run-at document-start
    
    // e.g.
    // https://www.facebook.com/facebook
    (() => {
        if (!/^www\.facebook\.com/.test(location.hostname) ||
            !location.pathname.slice(1)) {
            return;
        }
    
        // TBD replace closure to let
        var addStyle = (() => {
            var parent = document.head || document.body || document.documentElement;
    
            var style = document.createElement('style');
            style.type = 'text/css';
            parent.appendChild(style);
    
            return (css) => {
                style.appendChild(document.createTextNode(css + '\n'));
            };
        })();
    
        addStyle('#dialog_0, #dialog_1 { display: none; }');
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/12/06 01:08:43 - 2015-12-06
  2. 2015/12/04 08:38:10 - 2015-12-04
  3. 2015/12/04 08:34:27 - 2015-12-04