nishino_ameblo_only Fork

    @@ -28,6 +28,7 @@ } } } +$('.skin-entryBody div>span:only-child:has(br:only-child)').contents().unwrap(); var result = document.evaluate('id("entryBody")//*[self::div or self::p]/br[not(./preceding-sibling::*) and string-length(./preceding-sibling::text())<1]', document, null, 7, null); for (var x = 0; x < result.snapshotLength; x++) { result.snapshotItem(x).classList.add("br_first"); @@ -59,6 +60,8 @@ $(".sand_text:contains(' ')").remove(); } } +$('span.div_br,a.div_br').remove(); +$('.sand:has(.div-br:only-child)').contents().unwrap(); $('.sand_text~a').addClass("sand_a"); var result3 = document.evaluate('//*[./a[contains(@class,"sand_a")][not(./following-sibling::span)]]', document, null, 7, null); for (var y = 0; y < result3.snapshotLength; y++) {
  • // ==UserScript==
    // @title        nishino_ameblo_only
    // @name         nishino_ameblo_only
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://ameblo.jp/nishino-akihiro*
    // @grant        none
    // @require      http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
    // ==/UserScript==
    var listArray = document.querySelectorAll('.skin-entryBody *[style]');
    for (var i = 0; i < listArray.length; i++) {
      listArray[i].removeAttribute("style");
    }
    var listArray2 = document.querySelectorAll('.skin-entryBody font[color],.skin-entryBody font[face]');
    for (var j = 0; j < listArray2.length; j++) {
      listArray2[j].removeAttribute("color");
      listArray2[j].removeAttribute("face");
    }
    var result5 = document.evaluate('id("entryBody")//text()', document, null, 7, null);
    for (var b = 0; b < result5.snapshotLength; b++) {
      if (/^(\s|&nbsp;)+$/g.test(result5.snapshotItem(b).nodeValue)) {
        if (/ |\u00A0/g.test(result5.snapshotItem(b).nodeValue)) {
          result5.snapshotItem(b).nodeValue = " ";
        } else {
          result5.snapshotItem(b).nodeValue = result5.snapshotItem(b).nodeValue.replace(/^\s+/g, "");
        }
      }
    }
    $('.skin-entryBody div>span:only-child:has(br:only-child)').contents().unwrap();
    var result = document.evaluate('id("entryBody")//*[self::div or self::p]/br[not(./preceding-sibling::*) and string-length(./preceding-sibling::text())<1]', document, null, 7, null);
    for (var x = 0; x < result.snapshotLength; x++) {
      result.snapshotItem(x).classList.add("br_first");
    }
    $(".br_first").wrap("<div class='div_br'></div>");
    for (var k = 0; k < $("#entryBody *:contains(' ')").length; k++) {
      if ($("#entryBody *:contains(' ')").eq(k).text().length < 2) {
        $("#entryBody *:contains(' ')").eq(k).addClass("div_br");
      }
    }
    $('.skin-entryBody a:not([href])').contents().unwrap();
    $('.skin-entryBody section,.skin-entryBody h1,.skin-entryBody h2,.skin-entryBody h3,.skin-entryBody h4,.skin-entryBody h5,.skin-entryBody h6').wrap("<div></div>");
    $('.skin-entryBody section,.skin-entryBody h1,.skin-entryBody h2,.skin-entryBody h3,.skin-entryBody h4,.skin-entryBody h5,.skin-entryBody h6').contents().unwrap();
    $('.skin-entryBody b,.skin-entryBody i,.skin-entryBody font,.skin-entryBody u').addClass("fbi");
    $('.fbi').contents().unwrap();
    $('.skin-entryBody>span,.skin-entryBody>a:not(:has(img)),.skin-entryBody>br').addClass("in_ele");
    $('.in_ele').not('.in_ele+.in_ele').each(function () {
      $(this).nextUntil(':not(.in_ele)').andSelf().wrapAll('<span class="i_ren"></span>');
    });
    $('.i_ren:has(br.in_ele:only-child)').wrap("<div class='div_br'></div>");
    $('.in_ele').removeClass("in_ele");
    $('.skin-entryBody>p:not(.div_br):has(br),.skin-entryBody>div:not(.div_br):has(br)').addClass("sand");
    $(".sand").contents().filter(function () {
      return this.nodeType === 3;
    }).wrap("<span class='sand_text'></span>");
    $('.i_ren:empty,.sand_text:empty').remove();
    for (var l = 0; l < $(".sand_text:contains(' ')").length; l++) {
      if ($(".sand_text:contains(' ')").eq(k).text().length < 2) {
        $(".sand_text:contains(' ')").remove();
      }
    }
    $('span.div_br,a.div_br').remove();
    $('.sand:has(.div-br:only-child)').contents().unwrap();
    $('.sand_text~a').addClass("sand_a");
    var result3 = document.evaluate('//*[./a[contains(@class,"sand_a")][not(./following-sibling::span)]]', document, null, 7, null);
    for (var y = 0; y < result3.snapshotLength; y++) {
      result3.snapshotItem(y).classList.add("sand_last_a");
    }
    $(".skin-entryBody").contents().filter(function () {
       return this.nodeType === 3;
    }).wrap("<span class='n_text'></span>");
    $('.skin-entryBody span:empty').remove();
    $('.skin-entryBody div:empty,.skin-entryBody p:empty').remove();
    $('.skin-entryBody div:not(.sand)>div,.skin-entryBody p:not(.sand)>div,.skin-entryBody div:not(.sand)>p').parent().contents().unwrap();
    $('.div_br').not('.div_br+.div_br').each(function () {
      $(this).nextUntil(':not(.div_br)').andSelf().wrapAll('<div class="div_ren"></div>');
    });
    $('.skin-entryBody>*:has(a:not(.sand_a):has(img)),.skin-entryBody>*:has(iframe),.skin-entryBody>*:has(table)').contents().unwrap();
    $('.skin-entryBody>a:has(img),.skin-entryBody>iframe,.skin-entryBody>table').addClass("i_pic");
    $('.i_pic').prev().filter('.div_ren').addClass("waku");
    $('.i_pic').next().filter('.div_ren').addClass("waku");
    $(".i_pic+.waku+.i_pic").prev().addClass("frame_pad");
    $('.div_ren:not(.waku)').contents().unwrap();
    $('.div_ren').removeClass("div_ren");
    $("iframe.i_pic").wrap("<div class='div_iframe'></div>");
    $('.skin-entryBody>*:has(a)').each(function () {
      if ($(this).text().length - $(this).children('a').text().length < 3) {
        $(this).addClass("solo_a");
      }
    });
    $('.sand.solo_a').removeClass("sand");
    $(".skin-entryBody>*:not(.div_br):not(.waku)").last().addClass("node_last");
    $(".skin-entryBody>*:not(.div_br):not(.waku)").first().addClass("node_first");
    $('.node_first').prevAll().addClass("cork");
    if ($(".node_last").text().length == 1) {
      $('.node_last').remove();
      $(".skin-entryBody>*:not(.div_br):not(.waku)").last().addClass("node_last");
    }
    $('.node_last+.waku').contents().unwrap();
    $('.skin-entryBody figure div').contents().unwrap();
    $('.skin-entryBody figure>a:first-child').text("オンラインサロン | 西野亮廣エンタメ研究所");
    $('a.i_pic[href="http://twitter.com/nishinoakihiro"]').removeClass("i_pic");
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2020/10/25 11:22:18 - 10/25
  2. 2020/08/01 10:14:19 - 08/01
  3. 2020/07/31 12:10:46 - 07/31
  4. 2020/07/21 07:53:05 - 07/21
  5. 2020/07/21 07:39:19 - 07/21
  6. 2020/07/12 10:07:35 - 07/12
  7. 2020/07/11 12:16:51 - 07/11
  8. 2020/07/11 12:12:05 - 07/11
  9. 2020/07/07 11:57:24 - 07/07
  10. 2020/07/07 10:37:05 - 07/07
  11. 2020/07/03 14:15:25 - 07/03
  12. 2020/06/28 11:11:49 - 06/28
  13. 2020/06/28 11:08:36 - 06/28
  14. 2020/06/28 11:07:13 - 06/28
  15. 2020/06/28 10:38:34 - 06/28
  16. 2020/06/26 11:35:15 - 06/26
  17. 2020/06/26 11:30:06 - 06/26
  18. 2020/06/26 11:24:43 - 06/26
  19. 2020/06/26 10:12:18 - 06/26
  20. 2020/06/26 10:06:20 - 06/26
  21. 2020/06/26 08:04:54 - 06/26
  22. 2020/06/26 08:03:08 - 06/26
  23. 2020/06/25 11:32:06 - 06/25
  24. 2020/06/25 11:17:25 - 06/25
  25. 2020/06/25 11:10:22 - 06/25
  26. 2020/06/22 10:10:38 - 06/22
  27. 2020/06/22 10:08:24 - 06/22
  28. 2020/06/22 10:04:13 - 06/22
  29. 2020/06/21 10:39:50 - 06/21
  30. 2020/06/21 10:14:53 - 06/21
  31. 2020/06/20 18:08:37 - 06/20
  32. 2020/06/20 17:49:32 - 06/20
  33. 2020/06/20 15:39:42 - 06/20
  34. 2020/06/09 09:46:42 - 06/09
  35. 2020/06/07 12:13:42 - 06/07
  36. 2020/06/04 15:53:04 - 06/04
  37. 2020/06/01 11:17:42 - 06/01
  38. 2020/05/30 14:45:13 - 05/30
  39. 2020/05/30 11:05:16 - 05/30
  40. 2020/05/30 10:37:08 - 05/30
  41. 2020/05/30 10:31:52 - 05/30
  42. 2020/05/29 12:24:32 - 05/29
  43. 2020/05/22 13:41:35 - 05/22
  44. 2020/05/22 13:37:17 - 05/22
  45. 2020/05/20 09:55:02 - 05/20
  46. 2020/05/19 12:24:36 - 05/19
  47. 2020/05/18 12:53:31 - 05/18
  48. 2020/05/18 12:05:05 - 05/18
  49. 2020/05/17 11:24:08 - 05/17
  50. 2020/05/17 10:42:18 - 05/17
  51. 2020/05/17 10:22:31 - 05/17
  52. 2020/05/17 10:15:37 - 05/17
  53. 2020/05/16 09:57:31 - 05/16
  54. 2020/05/16 09:50:37 - 05/16
  55. 2020/05/14 19:49:26 - 05/14
  56. 2020/05/12 07:40:02 - 05/12
  57. 2020/05/10 15:55:23 - 05/10
  58. 2020/05/10 15:40:37 - 05/10
  59. 2020/05/10 10:35:12 - 05/10
  60. 2020/05/10 10:34:31 - 05/10
  61. 2020/05/10 10:24:50 - 05/10
  62. 2020/05/09 21:46:16 - 05/09
  63. 2020/05/09 21:43:02 - 05/09
  64. 2020/05/08 15:36:25 - 05/08
  65. 2020/05/08 15:03:33 - 05/08
  66. 2020/05/08 14:35:11 - 05/08
  67. 2020/05/08 14:19:37 - 05/08
  68. 2020/05/08 12:43:45 - 05/08
  69. 2020/04/22 15:06:22 - 04/22
  70. 2020/03/25 13:16:17 - 03/25
  71. 2020/03/22 10:12:42 - 03/22
  72. 2020/03/19 16:47:50 - 03/19
  73. 2020/03/14 12:02:45 - 03/14
  74. 2020/03/12 12:37:48 - 03/12
  75. 2020/03/12 10:22:52 - 03/12
  76. 2020/03/12 10:13:17 - 03/12
  77. 2020/03/11 10:59:26 - 03/11
  78. 2020/03/11 10:26:01 - 03/11
  79. 2020/03/11 10:23:50 - 03/11
  80. 2020/03/02 11:44:24 - 03/02
  81. 2020/02/25 11:48:15 - 02/25
  82. 2020/02/23 08:57:55 - 02/23
  83. 2020/02/18 21:02:20 - 02/18
  84. 2020/02/17 10:08:25 - 02/17
  85. 2020/02/17 08:16:35 - 02/17
  86. 2020/02/07 15:39:17 - 02/07
  87. 2020/02/03 13:05:44 - 02/03
  88. 2020/01/06 10:33:36 - 01/06
  89. 2020/01/06 10:01:36 - 01/06
  90. 2020/01/03 10:23:13 - 01/03
  91. 2020/01/03 10:18:47 - 01/03
  92. 2020/01/02 11:03:45 - 01/02
  93. 2020/01/02 11:03:25 - 01/02
  94. 2020/01/02 10:30:41 - 01/02
  95. 2020/01/01 10:57:01 - 01/01
  96. 2019/12/31 14:45:02 - 2019-12-31
  97. 2019/12/31 14:40:42 - 2019-12-31
  98. 2019/12/31 14:25:44 - 2019-12-31
  99. 2019/12/31 14:04:35 - 2019-12-31
  100. 2019/12/31 13:57:55 - 2019-12-31
  101. 2019/12/31 13:51:52 - 2019-12-31
  102. 2019/12/31 13:48:36 - 2019-12-31
  103. 2019/12/31 13:43:37 - 2019-12-31
  104. 2019/12/31 13:05:20 - 2019-12-31
  105. 2019/12/31 12:56:19 - 2019-12-31
  106. 2019/12/31 12:51:14 - 2019-12-31
  107. 2019/12/31 12:45:46 - 2019-12-31
  108. 2019/12/30 22:01:43 - 2019-12-30
  109. 2019/12/30 20:00:37 - 2019-12-30
  110. 2019/12/30 17:44:10 - 2019-12-30
  111. 2019/12/30 17:41:00 - 2019-12-30
  112. 2019/12/30 10:53:23 - 2019-12-30
  113. 2019/12/29 18:16:40 - 2019-12-29
  114. 2019/12/29 12:10:44 - 2019-12-29
  115. 2019/12/29 10:28:45 - 2019-12-29
  116. 2019/12/29 10:13:03 - 2019-12-29
  117. 2019/12/28 13:45:19 - 2019-12-28
  118. 2019/12/24 11:49:06 - 2019-12-24
  119. 2019/12/16 10:31:31 - 2019-12-16
  120. 2019/12/13 10:32:32 - 2019-12-13
  121. 2019/11/16 15:46:49 - 2019-11-16
  122. 2019/10/30 21:54:30 - 2019-10-30
  123. 2019/10/30 20:50:38 - 2019-10-30
  124. 2019/10/22 10:25:34 - 2019-10-22
  125. 2019/10/15 13:23:25 - 2019-10-15
  126. 2019/10/12 10:02:58 - 2019-10-12
  127. 2019/10/10 16:32:02 - 2019-10-10
  128. 2019/10/07 10:57:33 - 2019-10-07
  129. 2019/10/07 10:31:58 - 2019-10-07
  130. 2019/09/24 14:40:31 - 2019-09-24
  131. 2019/09/19 10:39:10 - 2019-09-19
  132. 2019/09/19 07:48:14 - 2019-09-19
  133. 2019/08/20 10:15:59 - 2019-08-20
  134. 2019/08/20 10:14:06 - 2019-08-20
  135. 2019/06/30 12:28:19 - 2019-06-30
  136. 2019/06/25 20:57:51 - 2019-06-25
  137. 2019/06/09 13:33:41 - 2019-06-09
  138. 2019/05/26 17:29:56 - 2019-05-26
  139. 2019/05/26 11:36:02 - 2019-05-26
  140. 2019/05/26 10:35:28 - 2019-05-26
  141. 2019/05/26 10:34:55 - 2019-05-26
  142. 2019/05/07 10:16:16 - 2019-05-07
  143. 2019/05/07 10:14:50 - 2019-05-07
  144. 2019/05/06 11:49:40 - 2019-05-06
  145. 2019/05/06 11:49:14 - 2019-05-06
  146. 2019/05/03 09:59:51 - 2019-05-03
  147. 2019/05/03 09:58:12 - 2019-05-03
  148. 2019/05/02 10:36:58 - 2019-05-02
  149. 2019/05/02 10:35:17 - 2019-05-02
  150. 2019/05/02 08:24:14 - 2019-05-02
  151. 2019/05/02 08:22:29 - 2019-05-02
  152. 2019/04/29 17:30:20 - 2019-04-29
  153. 2019/04/29 17:29:03 - 2019-04-29
  154. 2019/04/23 12:24:38 - 2019-04-23
  155. 2019/04/23 12:22:38 - 2019-04-23
  156. 2019/04/23 11:14:34 - 2019-04-23
  157. 2019/04/23 11:10:45 - 2019-04-23
  158. 2019/04/22 11:56:10 - 2019-04-22
  159. 2019/04/22 11:13:07 - 2019-04-22
  160. 2019/04/20 11:23:36 - 2019-04-20
  161. 2019/04/19 13:14:40 - 2019-04-19
  162. 2019/04/18 20:42:34 - 2019-04-18
  163. 2019/04/17 11:24:23 - 2019-04-17
  164. 2019/04/16 08:34:49 - 2019-04-16
  165. 2019/04/15 09:53:29 - 2019-04-15
  166. 2019/04/15 08:09:02 - 2019-04-15
  167. 2019/04/10 12:29:30 - 2019-04-10
  168. 2019/04/10 11:49:27 - 2019-04-10
  169. 2019/04/10 11:47:10 - 2019-04-10
  170. 2019/04/10 10:24:11 - 2019-04-10
  171. 2019/04/10 10:23:47 - 2019-04-10
  172. 2019/04/03 20:28:21 - 2019-04-03
  173. 2019/03/30 09:48:13 - 2019-03-30
  174. 2019/03/14 19:54:35 - 2019-03-14
  175. 2019/03/14 19:28:42 - 2019-03-14
  176. 2019/03/14 12:22:49 - 2019-03-14
  177. 2019/03/14 12:03:31 - 2019-03-14
  178. 2019/03/14 11:29:35 - 2019-03-14
  179. 2019/03/14 11:00:36 - 2019-03-14
  180. 2019/03/13 15:58:16 - 2019-03-13
  181. 2019/03/13 12:13:04 - 2019-03-13
  182. 2019/03/13 10:32:57 - 2019-03-13
  183. 2019/03/12 10:39:41 - 2019-03-12
  184. 2019/03/11 17:44:20 - 2019-03-11
  185. 2019/03/04 09:54:34 - 2019-03-04
  186. 2019/03/04 07:54:02 - 2019-03-04
  187. 2019/03/04 07:48:29 - 2019-03-04
  188. 2019/03/03 21:57:13 - 2019-03-03
  189. 2019/03/03 20:56:41 - 2019-03-03