LDR29

  • /*
     * @title LDR29
     * @description Customize LDR's keybind and view
     * @include http://reader.livedoor.com/reader/
     */
    
    (function() {
    
      // style
    
      var styles = ['#header, #control, #menu, #footer { display: none !important; }',
                    '#subs_toolbar, #subs_buttons, #subs_search { display: none !important; }',
                    '#ads_bottom { display: none !important; }'
                   ];
      var style = document.createElement('style');
      style.innerHTML = styles.join('\n');
      document.body.appendChild(style);
    
      var running_man  = document.getElementById('message_box');
      var subs_tools   = document.getElementById('subs_tools');
      var div = document.createElement('div');
    
      div.setAttribute('style', 'height: 50px; padding-left: 35px; background-color: #fff;');
      subs_tools.appendChild(div);
      div.appendChild(running_man);
    
      // keybind
    
      Keybind.add("j",Control.go_next);
      Keybind.add("k",Control.go_prev);
    
      Keybind.add('p', function(){
        Control.pin();
        Control.go_next();
      })
    
      Keybind.add('o', function(){
        var item = get_active_item(true);
        if (!item) return;
        window.open(item.link).blur();
    //    setTimeout(GM_openInTab,0,item.link);
        Control.go_next();
      })
    
      Keybind.remove("b");
      Keybind.remove("i");
    })();
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2010/12/09 12:00:23 - 2010-12-09
  2. 2010/12/09 11:56:55 - 2010-12-09
  3. 2010/12/09 11:52:10 - 2010-12-09
  4. 2010/12/09 09:34:20 - 2010-12-09
  5. 2010/12/09 09:04:09 - 2010-12-09
  6. 2010/12/09 09:03:57 - 2010-12-09