青空文庫縦書き変換
by
icchan0000
2010-12-18 [2010/12/18 22:38:50]
青空文庫本文を縦書きに変換するサービスを呼び出します
-
/*
* @title 青空文庫縦書き変換
* @description 青空文庫本文を縦書きに変換するサービスを呼び出します
* @include http://*
* @license MIT License
* @require
*/
(function(){if(!location.href.match(/www.aozora.gr.jp\/cards\//)){alert('invalid location!');return false;};var args = function(n,v){var inps=document.createElement('input');with(inps){setAttribute("type","text");setAttribute("name",n);setAttribute("value",v);}return inps;};var myForm=document.createElement('form');myForm.appendChild(new args('urlstr',location.href));myForm.appendChild(new args('lines',26));myForm.appendChild(new args('mojis',30));myForm.appendChild(new args('spaces',0.9));document.body.appendChild(myForm);with(myForm){method = 'post';action='http://freefielder.jp/tate/aozora_ex2.php';target='_blank';submit();}})();
-
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。