TYJ no footer

    @@ -11,7 +11,8 @@ (function () { if (!/tonarinoyj\.jp$/.test(location.hostname) || - !/manga\/\w+\/[\w-]+/.test(location.pathname)) { + !/manga\/\w+\/[\w-]+/.test(location.pathname) || + document.head.querySelector('script[src$="swfobject.js"]')) { return; }
  • /*
     * @title TYJ no footer
     * @description hidden footer on tonarinoyj.jp
     * @include http://tonarinoyj.jp/manga/*
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // UserScript
    // https://gist.github.com/noromanba/e0b077f9baa25b5f9d8c
    
    (function () {
        if (!/tonarinoyj\.jp$/.test(location.hostname) ||
            !/manga\/\w+\/[\w-]+/.test(location.pathname) ||
            document.head.querySelector('script[src$="swfobject.js"]')) {
            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'));
            };
        })();
    
        // <footer id="footer">
        addStyle('#footer { display: none; }');
    })();
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/04/17 07:40:39 - 2015-04-17
  2. 2015/04/10 04:00:05 - 2015-04-10