nishino_ameblo_only

  • // ==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 a:not([href])').contents().unwrap();
    $('.skin-entryBody a.ogpCard_link,.skin-entryBody article.ogpCard_wrap').remove();
    $('.skin-entryBody section,.skin-entryBody article,.skin-entryBody blockquote,.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 article,.skin-entryBody blockquote,.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,.skin-entryBody span').contents().unwrap();
    var result = document.evaluate('id("entryBody")//*[self::div or self::p]/br[not(./preceding-sibling::*) or string-length(./preceding-sibling::text()>0)]', 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>");
    $('.skin-entryBody div>div,.skin-entryBody p>div,.skin-entryBody div>p').parent().contents().unwrap();
    $(".skin-entryBody").contents().filter(function () {
      return this.nodeType === 3;
    }).wrap("<span class='n_text'></span>");
    $('.skin-entryBody span:empty,.skin-entryBody a:empty').remove();
    $('.skin-entryBody div:empty,.skin-entryBody p:empty').remove();
    for (var k = 0; k < $("#entryBody *:contains(' ')").length; k++) {
      if ($("#entryBody *:contains(' ')").eq(k).text().length < 2) {
        $("#entryBody *:contains(' ')").eq(k).addClass("div_br");
      }
    }
    $('span.div_br,a.div_br').remove();
    $('.skin-entryBody span:has(span),.skin-entryBody span:has(a),.skin-entryBody span:has(br)').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>br+br').remove();
    $('.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>");
    for (var l = 0; l < $(".sand_text:contains(' ')").length; l++) {
      if ($(".sand_text:contains(' ')").eq(l).text().length < 2) {
        $(".sand_text:contains(' ')").eq(l).addClass("tmp");
      }
    }
    $('.tmp').remove();
    $('.i_ren .div_br,.i_ren>a>br').remove();
    $('.i_ren a:empty').remove();
    $('.i_ren:empty,.sand_text:empty,.div_br:empty').remove();
    $('.sand:not(:has(*:nth-child(3)))').removeClass("sand");
    $('.i_ren>span:first-of-type,.sand>span:first-of-type').addClass("sand_span_first");
    $('.i_ren>span:last-of-type,.sand>span:last-of-type').addClass("sand_span_last");
    $('.i_ren>a,.sand>a').addClass("sand_a");
    $('.sand_a~.sand_span_first').removeClass("sand_span_first");
    $('.i_ren:has(.sand_span_last~.sand_a),.sand:has(.sand_span_last~.sand_a)').addClass("sand_last_a");
    $('.sand_last_a>.sand_span_last').removeClass("sand_span_last");
    $('.sand_span_first').prevAll('br').remove();
    $('.div_br').not('.div_br+.div_br').each(function () {
      $(this).nextUntil(':not(.div_br)').andSelf().wrapAll('<div class="div_ren"></div>');
    });
    $('.skin-entryBody>*:not(.sand):has(a:has(img)),.skin-entryBody>*:not(.sand):has(iframe),.skin-entryBody>*:not(.sand):has(table)').contents().unwrap();
    $('.skin-entryBody>*:has(img),.skin-entryBody>iframe,.skin-entryBody>table').addClass("i_pic");
    $('a.i_pic:has(img:nth-child(2)),a.i_pic:has(img[alt="リンク"])').addClass("card");
    $('a.i_pic').each(function () {
      $(this).attr('width', $(this).children('img').attr('width'));
    });
    $('a.i_pic[width="104"]>img').remove();
    $('a.i_pic[width="104"]').addClass("card");
    var result2 = document.evaluate('//a[contains(@class,"card")]/text()[1]/following-sibling::node()', document, null, 7, null);
    for (var y = 0; y < result2.snapshotLength; y++) {
      result2.snapshotItem(y).remove();
    }
    $('.i_pic').prev().filter('.div_ren').addClass("waku");
    $('.i_pic').next().filter('.div_ren').addClass("waku");
    $(".i_pic:not(.card)+.waku+.i_pic:not(.card)").prev().addClass("frame_pad");
    $("iframe.i_pic").wrap("<div class='div_iframe'></div>");
    $('.i_pic+.i_ren,.i_pic+.card').prev().addClass("rail");
    $('.i_pic+.waku+.i_ren,.i_pic+.waku+.card').prev().prev().addClass("rail");
    $('.i_pic+.i_pic,.div_iframe+.i_pic,.card+.i_pic,.card+.waku+.i_pic,.i_ren+.i_pic,.i_ren+.waku+.i_pic').addClass("rail");
    $('.skin-entryBody>*:has(a)').each(function () {
      if ($(this).text().length - $(this).children('a').text().length < 3) {
        $(this).addClass("solo_a");
      }
    });
    $('.div_ren:not(.waku)').contents().unwrap();
    $('.div_ren').removeClass("div_ren");
    $(".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. 2021/01/25 11:00:42 - 2021-01-25
  2. 2021/01/22 10:54:54 - 2021-01-22
  3. 2020/10/25 11:22:18 - 2020-10-25
  4. 2020/08/01 10:14:19 - 2020-08-01
  5. 2020/07/31 12:10:46 - 2020-07-31
  6. 2020/07/21 07:53:05 - 2020-07-21
  7. 2020/07/21 07:39:19 - 2020-07-21
  8. 2020/07/12 10:07:35 - 2020-07-12
  9. 2020/07/11 12:16:51 - 2020-07-11
  10. 2020/07/11 12:12:05 - 2020-07-11
  11. 2020/07/07 11:57:24 - 2020-07-07
  12. 2020/07/07 10:37:05 - 2020-07-07
  13. 2020/07/03 14:15:25 - 2020-07-03
  14. 2020/06/28 11:11:49 - 2020-06-28
  15. 2020/06/28 11:08:36 - 2020-06-28
  16. 2020/06/28 11:07:13 - 2020-06-28
  17. 2020/06/28 10:38:34 - 2020-06-28
  18. 2020/06/26 11:35:15 - 2020-06-26
  19. 2020/06/26 11:30:06 - 2020-06-26
  20. 2020/06/26 11:24:43 - 2020-06-26
  21. 2020/06/26 10:12:18 - 2020-06-26
  22. 2020/06/26 10:06:20 - 2020-06-26
  23. 2020/06/26 08:04:54 - 2020-06-26
  24. 2020/06/26 08:03:08 - 2020-06-26
  25. 2020/06/25 11:32:06 - 2020-06-25
  26. 2020/06/25 11:17:25 - 2020-06-25
  27. 2020/06/25 11:10:22 - 2020-06-25
  28. 2020/06/22 10:10:38 - 2020-06-22
  29. 2020/06/22 10:08:24 - 2020-06-22
  30. 2020/06/22 10:04:13 - 2020-06-22
  31. 2020/06/21 10:39:50 - 2020-06-21
  32. 2020/06/21 10:14:53 - 2020-06-21
  33. 2020/06/20 18:08:37 - 2020-06-20
  34. 2020/06/20 17:49:32 - 2020-06-20
  35. 2020/06/20 15:39:42 - 2020-06-20
  36. 2020/06/09 09:46:42 - 2020-06-09
  37. 2020/06/07 12:13:42 - 2020-06-07
  38. 2020/06/04 15:53:04 - 2020-06-04
  39. 2020/06/01 11:17:42 - 2020-06-01
  40. 2020/05/30 14:45:13 - 2020-05-30
  41. 2020/05/30 11:05:16 - 2020-05-30
  42. 2020/05/30 10:37:08 - 2020-05-30
  43. 2020/05/30 10:31:52 - 2020-05-30
  44. 2020/05/29 12:24:32 - 2020-05-29
  45. 2020/05/22 13:41:35 - 2020-05-22
  46. 2020/05/22 13:37:17 - 2020-05-22
  47. 2020/05/20 09:55:02 - 2020-05-20
  48. 2020/05/19 12:24:36 - 2020-05-19
  49. 2020/05/18 12:53:31 - 2020-05-18
  50. 2020/05/18 12:05:05 - 2020-05-18
  51. 2020/05/17 11:24:08 - 2020-05-17
  52. 2020/05/17 10:42:18 - 2020-05-17
  53. 2020/05/17 10:22:31 - 2020-05-17
  54. 2020/05/17 10:15:37 - 2020-05-17
  55. 2020/05/16 09:57:31 - 2020-05-16
  56. 2020/05/16 09:50:37 - 2020-05-16
  57. 2020/05/14 19:49:26 - 2020-05-14
  58. 2020/05/12 07:40:02 - 2020-05-12
  59. 2020/05/10 15:55:23 - 2020-05-10
  60. 2020/05/10 15:40:37 - 2020-05-10
  61. 2020/05/10 10:35:12 - 2020-05-10
  62. 2020/05/10 10:34:31 - 2020-05-10
  63. 2020/05/10 10:24:50 - 2020-05-10
  64. 2020/05/09 21:46:16 - 2020-05-09
  65. 2020/05/09 21:43:02 - 2020-05-09
  66. 2020/05/08 15:36:25 - 2020-05-08
  67. 2020/05/08 15:03:33 - 2020-05-08
  68. 2020/05/08 14:35:11 - 2020-05-08
  69. 2020/05/08 14:19:37 - 2020-05-08
  70. 2020/05/08 12:43:45 - 2020-05-08
  71. 2020/04/22 15:06:22 - 2020-04-22
  72. 2020/03/25 13:16:17 - 2020-03-25
  73. 2020/03/22 10:12:42 - 2020-03-22
  74. 2020/03/19 16:47:50 - 2020-03-19
  75. 2020/03/14 12:02:45 - 2020-03-14
  76. 2020/03/12 12:37:48 - 2020-03-12
  77. 2020/03/12 10:22:52 - 2020-03-12
  78. 2020/03/12 10:13:17 - 2020-03-12
  79. 2020/03/11 10:59:26 - 2020-03-11
  80. 2020/03/11 10:26:01 - 2020-03-11
  81. 2020/03/11 10:23:50 - 2020-03-11
  82. 2020/03/02 11:44:24 - 2020-03-02
  83. 2020/02/25 11:48:15 - 2020-02-25
  84. 2020/02/23 08:57:55 - 2020-02-23
  85. 2020/02/18 21:02:20 - 2020-02-18
  86. 2020/02/17 10:08:25 - 2020-02-17
  87. 2020/02/17 08:16:35 - 2020-02-17
  88. 2020/02/07 15:39:17 - 2020-02-07
  89. 2020/02/03 13:05:44 - 2020-02-03
  90. 2020/01/06 10:33:36 - 2020-01-06
  91. 2020/01/06 10:01:36 - 2020-01-06
  92. 2020/01/03 10:23:13 - 2020-01-03
  93. 2020/01/03 10:18:47 - 2020-01-03
  94. 2020/01/02 11:03:45 - 2020-01-02
  95. 2020/01/02 11:03:25 - 2020-01-02
  96. 2020/01/02 10:30:41 - 2020-01-02
  97. 2020/01/01 10:57:01 - 2020-01-01
  98. 2019/12/31 14:45:02 - 2019-12-31
  99. 2019/12/31 14:40:42 - 2019-12-31
  100. 2019/12/31 14:25:44 - 2019-12-31
  101. 2019/12/31 14:04:35 - 2019-12-31
  102. 2019/12/31 13:57:55 - 2019-12-31
  103. 2019/12/31 13:51:52 - 2019-12-31
  104. 2019/12/31 13:48:36 - 2019-12-31
  105. 2019/12/31 13:43:37 - 2019-12-31
  106. 2019/12/31 13:05:20 - 2019-12-31
  107. 2019/12/31 12:56:19 - 2019-12-31
  108. 2019/12/31 12:51:14 - 2019-12-31
  109. 2019/12/31 12:45:46 - 2019-12-31
  110. 2019/12/30 22:01:43 - 2019-12-30
  111. 2019/12/30 20:00:37 - 2019-12-30
  112. 2019/12/30 17:44:10 - 2019-12-30
  113. 2019/12/30 17:41:00 - 2019-12-30
  114. 2019/12/30 10:53:23 - 2019-12-30
  115. 2019/12/29 18:16:40 - 2019-12-29
  116. 2019/12/29 12:10:44 - 2019-12-29
  117. 2019/12/29 10:28:45 - 2019-12-29
  118. 2019/12/29 10:13:03 - 2019-12-29
  119. 2019/12/28 13:45:19 - 2019-12-28
  120. 2019/12/24 11:49:06 - 2019-12-24
  121. 2019/12/16 10:31:31 - 2019-12-16
  122. 2019/12/13 10:32:32 - 2019-12-13
  123. 2019/11/16 15:46:49 - 2019-11-16
  124. 2019/10/30 21:54:30 - 2019-10-30
  125. 2019/10/30 20:50:38 - 2019-10-30
  126. 2019/10/22 10:25:34 - 2019-10-22
  127. 2019/10/15 13:23:25 - 2019-10-15
  128. 2019/10/12 10:02:58 - 2019-10-12
  129. 2019/10/10 16:32:02 - 2019-10-10
  130. 2019/10/07 10:57:33 - 2019-10-07
  131. 2019/10/07 10:31:58 - 2019-10-07
  132. 2019/09/24 14:40:31 - 2019-09-24
  133. 2019/09/19 10:39:10 - 2019-09-19
  134. 2019/09/19 07:48:14 - 2019-09-19
  135. 2019/08/20 10:15:59 - 2019-08-20
  136. 2019/08/20 10:14:06 - 2019-08-20
  137. 2019/06/30 12:28:19 - 2019-06-30
  138. 2019/06/25 20:57:51 - 2019-06-25
  139. 2019/06/09 13:33:41 - 2019-06-09
  140. 2019/05/26 17:29:56 - 2019-05-26
  141. 2019/05/26 11:36:02 - 2019-05-26
  142. 2019/05/26 10:35:28 - 2019-05-26
  143. 2019/05/26 10:34:55 - 2019-05-26
  144. 2019/05/07 10:16:16 - 2019-05-07
  145. 2019/05/07 10:14:50 - 2019-05-07
  146. 2019/05/06 11:49:40 - 2019-05-06
  147. 2019/05/06 11:49:14 - 2019-05-06
  148. 2019/05/03 09:59:51 - 2019-05-03
  149. 2019/05/03 09:58:12 - 2019-05-03
  150. 2019/05/02 10:36:58 - 2019-05-02
  151. 2019/05/02 10:35:17 - 2019-05-02
  152. 2019/05/02 08:24:14 - 2019-05-02
  153. 2019/05/02 08:22:29 - 2019-05-02
  154. 2019/04/29 17:30:20 - 2019-04-29
  155. 2019/04/29 17:29:03 - 2019-04-29
  156. 2019/04/23 12:24:38 - 2019-04-23
  157. 2019/04/23 12:22:38 - 2019-04-23
  158. 2019/04/23 11:14:34 - 2019-04-23
  159. 2019/04/23 11:10:45 - 2019-04-23
  160. 2019/04/22 11:56:10 - 2019-04-22
  161. 2019/04/22 11:13:07 - 2019-04-22
  162. 2019/04/20 11:23:36 - 2019-04-20
  163. 2019/04/19 13:14:40 - 2019-04-19
  164. 2019/04/18 20:42:34 - 2019-04-18
  165. 2019/04/17 11:24:23 - 2019-04-17
  166. 2019/04/16 08:34:49 - 2019-04-16
  167. 2019/04/15 09:53:29 - 2019-04-15
  168. 2019/04/15 08:09:02 - 2019-04-15
  169. 2019/04/10 12:29:30 - 2019-04-10
  170. 2019/04/10 11:49:27 - 2019-04-10
  171. 2019/04/10 11:47:10 - 2019-04-10
  172. 2019/04/10 10:24:11 - 2019-04-10
  173. 2019/04/10 10:23:47 - 2019-04-10
  174. 2019/04/03 20:28:21 - 2019-04-03
  175. 2019/03/30 09:48:13 - 2019-03-30
  176. 2019/03/14 19:54:35 - 2019-03-14
  177. 2019/03/14 19:28:42 - 2019-03-14
  178. 2019/03/14 12:22:49 - 2019-03-14
  179. 2019/03/14 12:03:31 - 2019-03-14
  180. 2019/03/14 11:29:35 - 2019-03-14
  181. 2019/03/14 11:00:36 - 2019-03-14
  182. 2019/03/13 15:58:16 - 2019-03-13
  183. 2019/03/13 12:13:04 - 2019-03-13
  184. 2019/03/13 10:32:57 - 2019-03-13
  185. 2019/03/12 10:39:41 - 2019-03-12
  186. 2019/03/11 17:44:20 - 2019-03-11
  187. 2019/03/04 09:54:34 - 2019-03-04
  188. 2019/03/04 07:54:02 - 2019-03-04
  189. 2019/03/04 07:48:29 - 2019-03-04
  190. 2019/03/03 21:57:13 - 2019-03-03
  191. 2019/03/03 20:56:41 - 2019-03-03