たてがき!

    @@ -21,6 +21,4 @@ targetNode.parentNode.replaceChild(newNode,targetNode); //涅槃レイアウトマッパー -Nehan.LayoutMapper.start(); - -void(0); +Nehan.LayoutMapper.start();
  • /*
     * @title 縦書さん
     * @description 「小説家になろう」をiPhoneで縦書きにして読む
     * @include http://*
     * @license MIT License
     * @require http://nehan.googlecode.com/hg/nehan2-min.js
     * @require http://nehan.googlecode.com/hg/nehan2.css
     */
    
    //本文(divタグ)を取得
    var targetNode=document.getElementById("novel_view");
    
    //涅槃レイアウトマッピング準備(preタグ準備1)
    var newNode=document.createElement('pre');
    newNode.className='class="lp-vertical lp-width-320 lp-height-416 lp-font-size-16';
    
    //本文を代入(preタグ準備2)
    newNode.innerHTML=targetNode.innerHTML;
    
    //置換(divタグ→preタグ)
    targetNode.parentNode.replaceChild(newNode,targetNode);
    
    //涅槃レイアウトマッパー
    Nehan.LayoutMapper.start();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/01/26 11:54:03 - 2012-01-26
  2. 2012/01/26 11:32:09 - 2012-01-26
  3. 2012/01/26 11:29:54 - 2012-01-26