【スマホ用】プレーンテキストでコピペしたい。

    @@ -1,5 +1,5 @@ /* - * @title 【スマホ用】プレーンテキストでOK + * @title 【スマホ用】プレーンテキストでコピペしたい。 * @description サイト上のテキスト書式をリセットします。iPhone Safariで確認。 * @include http://* * @license MIT License
  • /*
     * @title 【スマホ用】プレーンテキストでコピペしたい。
     * @description サイト上のテキスト書式をリセットします。iPhone Safariで確認。
     * @include http://*
     * @license MIT License
     * @require 
    @private
    memo:&nbsp
     */
    
    (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='<textarea style="padding:6px;height:100%;font-size:16px;border-radius:0" readonly>'+body+'</textarea>';
       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='<textarea%20style="padding:6px;height:100%25;font-size:16px;border-radius:0"%20readonly>'+body+'</textarea>';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='<textarea%20style="padding:6px;height:100%25;font-size:16px;border-radius:0"%20readonly>'+b+"</textarea>";document.body.innerHTML=b;document.getElementsByTagName("textarea")[0].style.width=(window.innerWidth-20)+"px"})();
    */
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2017/04/26 20:29:58 - 2017-04-26
  2. 2017/04/22 15:45:49 - 2017-04-22
  3. 2017/04/22 15:43:43 - 2017-04-22
  4. 2017/04/22 15:34:37 - 2017-04-22
  5. 2017/04/22 15:33:15 - 2017-04-22
  6. 2017/04/22 15:30:04 - 2017-04-22
  7. 2017/04/22 15:07:16 - 2017-04-22
  8. 2017/04/22 14:57:40 - 2017-04-22
  9. 2017/04/22 14:48:58 - 2017-04-22
  10. 2017/04/22 14:47:11 - 2017-04-22
  11. 2017/04/22 12:34:07 - 2017-04-22
  12. 2017/04/22 12:29:14 - 2017-04-22
  13. 2017/04/22 12:22:17 - 2017-04-22
  14. 2017/04/22 12:14:47 - 2017-04-22
  15. 2017/04/22 12:08:36 - 2017-04-22
  16. 2017/04/22 12:03:05 - 2017-04-22
  17. 2017/04/22 11:56:25 - 2017-04-22
  18. 2017/04/22 11:50:04 - 2017-04-22
  19. 2017/04/22 11:41:01 - 2017-04-22
  20. 2017/04/22 11:36:21 - 2017-04-22
  21. 2017/04/22 11:29:11 - 2017-04-22
  22. 2017/04/22 11:12:41 - 2017-04-22
  23. 2017/04/22 11:04:46 - 2017-04-22
  24. 2017/04/22 11:03:43 - 2017-04-22
  25. 2017/04/21 22:20:17 - 2017-04-21
  26. 2017/04/21 22:08:16 - 2017-04-21
  27. 2017/04/21 21:47:05 - 2017-04-21
  28. 2017/04/21 21:44:09 - 2017-04-21
  29. 2017/04/21 21:42:53 - 2017-04-21
  30. 2017/04/21 11:49:59 - 2017-04-21
  31. 2017/04/21 11:32:27 - 2017-04-21
  32. 2017/04/20 22:20:10 - 2017-04-20
  33. 2017/04/20 22:04:54 - 2017-04-20
  34. 2017/04/20 21:28:41 - 2017-04-20
  35. 2017/04/20 21:12:03 - 2017-04-20
  36. 2017/04/20 20:51:28 - 2017-04-20
  37. 2017/04/20 11:23:12 - 2017-04-20
  38. 2017/04/20 11:05:51 - 2017-04-20
  39. 2017/04/20 10:59:39 - 2017-04-20
  40. 2017/04/20 10:55:32 - 2017-04-20
  41. 2017/04/20 10:47:03 - 2017-04-20
  42. 2017/04/20 10:46:10 - 2017-04-20
  43. 2017/04/19 22:18:41 - 2017-04-19
  44. 2017/04/19 21:04:09 - 2017-04-19
  45. 2017/04/19 21:00:43 - 2017-04-19
  46. 2017/04/19 20:04:00 - 2017-04-19
  47. 2017/04/19 20:02:21 - 2017-04-19
  48. 2017/04/19 18:23:13 - 2017-04-19
  49. 2017/04/19 18:21:07 - 2017-04-19
  50. 2017/04/19 18:18:17 - 2017-04-19
  51. 2017/04/19 18:15:15 - 2017-04-19
  52. 2017/04/19 18:14:22 - 2017-04-19
  53. 2017/04/19 18:13:16 - 2017-04-19
  54. 2017/04/19 18:12:33 - 2017-04-19
  55. 2017/04/19 18:11:22 - 2017-04-19
  56. 2017/04/19 18:09:52 - 2017-04-19
  57. 2017/04/19 18:09:22 - 2017-04-19
  58. 2017/04/17 14:47:24 - 2017-04-17
  59. 2017/04/17 14:33:35 - 2017-04-17
  60. 2017/04/16 21:55:06 - 2017-04-16
  61. 2017/04/16 21:53:56 - 2017-04-16
  62. 2017/04/16 16:16:04 - 2017-04-16
  63. 2017/04/16 15:54:07 - 2017-04-16
  64. 2017/04/16 15:42:23 - 2017-04-16
  65. 2017/04/16 15:01:36 - 2017-04-16
  66. 2017/04/16 14:52:28 - 2017-04-16
  67. 2017/04/15 22:14:05 - 2017-04-15
  68. 2017/04/15 21:54:22 - 2017-04-15
  69. 2017/04/13 14:22:50 - 2017-04-13
  70. 2017/04/13 14:20:39 - 2017-04-13
  71. 2017/04/13 14:03:58 - 2017-04-13
  72. 2017/04/13 13:55:35 - 2017-04-13
  73. 2017/04/12 22:30:46 - 2017-04-12
  74. 2017/04/12 22:18:30 - 2017-04-12
  75. 2017/04/12 22:16:47 - 2017-04-12
  76. 2017/04/12 22:12:35 - 2017-04-12
  77. 2017/04/12 22:01:54 - 2017-04-12
  78. 2017/04/12 22:00:42 - 2017-04-12
  79. 2017/04/12 21:59:30 - 2017-04-12
  80. 2017/04/12 21:57:58 - 2017-04-12
  81. 2017/04/12 21:46:42 - 2017-04-12
  82. 2017/04/12 21:44:18 - 2017-04-12
  83. 2017/04/12 21:41:12 - 2017-04-12
  84. 2017/04/11 19:20:56 - 2017-04-11
  85. 2017/04/11 19:14:32 - 2017-04-11