/*
* @title 【スマホ用】プレーンテキストでOK
* @description サイト上のテキスト書式をリセットします。iPhone Safariで確認。
* @include http://*
* @license MIT License
* @require
@private
memo: 
*/
(function(){
var body=document.body.innerText;
body=body.replace(/\n{3,}/g,'\n\n'). //¥nの3つ以上の連続を ¥n¥n とする
replace(/[ \t ]\n/g,'\n'). //[¥tなど]+改行コードを ¥n とする
replace(/[ \t ]{2,}/g,' '). //[¥tなど]の連続をSPACE一つにまとめる
replace(/\r?\n/g,'\n'); //改行コードを統一
//css
var bodyStyle=document.getElementsByTagName('body')[0].style;
bodyStyle.all='initial';//reset
bodyStyle.width="100%";
bodyStyle.height="100%";
bodyStyle.overFlow='hidden';
document.getElementsByTagName('html')[0].style.width=window.innerWidth+'px';
document.getElementsByTagName('html')[0].style.height=window.innerHeight+'px';
body='';
document.body.innerHTML=body;
document.getElementsByTagName('textarea')[0].style.width=(window.innerWidth-20)+'px';
})()
/*
javascript:(function(){var%20body=document.body.innerText;body=body.replace(/\r?\n/g,'\n');body=body.replace(/[%20\t%E3%80%80]{2,}/g,'%20');body=body.replace(/[%20\t%E3%80%80]\n/g,'\n');body=body.replace(/\n{3,}/g,'\n\n');var%20bodyStyle=document.getElementsByTagName('body')[0].style;bodyStyle.all='initial';bodyStyle.width='100%25';bodyStyle.height='100%25';bodyStyle.overFlow='hidden';document.getElementsByTagName('html')[0].style.width=window.innerWidth+'px';document.getElementsByTagName('html')[0].style.height=window.innerHeight+'px';body='';document.body.innerHTML=body;document.getElementsByTagName('textarea')[0].style.width=(window.innerWidth-20)+'px';})()
*/
/*
javascript:(function(){var%20b=document.body.innerText;b=b.replace(/\n{3,}/g,"\n\n").replace(/[%20\t%E3%80%80]\n/g,"\n").replace(/[%20\t%E3%80%80]{2,}/g,"%20").replace(/\r?\n/g,"\n");var%20a=document.getElementsByTagName("body")[0].style;a.all="initial";a.width="100%25";a.height="100%25";a.overFlow="hidden";document.getElementsByTagName("html")[0].style.width=window.innerWidth+"px";document.getElementsByTagName("html")[0].style.height=window.innerHeight+"px";b='";document.body.innerHTML=b;document.getElementsByTagName("textarea")[0].style.width=(window.innerWidth-20)+"px"})();
*/