nishino_ameblo_add Fork

  • // ==UserScript==
    // @title        nishino_ameblo_add
    // @name         nishino_ameblo_add
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://ameblo.jp/nishino-akihiro*
    // @grant        none
    // ==/UserScript==
    var reg = /[\u3040-\u30ff]/;
    var reg2=/[a-zA-z0-9!"#$%&'()\*\+:;<=>?@\[\\\]^_`{|}~a-zA-Z0-9!”#$%&’()*+-.,/:;<=>?@[¥]「」『』^_‘{|}~]/;
    var tmp3 = [];
    for (var k = 0; k < $("#entryBody a").length; k++) {
      var tmp2 = $("#entryBody a:not(.i_pic)").eq(k).attr("href");
      if (reg.test(tmp2)) {
        $("#entryBody a:not(.i_pic)").eq(k).addClass("akan");
      }
      tmp3[k] = $("#entryBody a:not(.i_pic)").eq(k).attr("href");
    }
    for (var j = 0; j < $("#entryBody>*:not(.div_br)").length; j++) {
      if ($("#subA").width() / $("#subA").parent().outerWidth(true) < 0.357) {
        if ($("#entryBody>*:not(.div_br)").eq(j).text().length < 70) {
          $("#entryBody>*:not(.div_br)").eq(j).addClass("e");
        } else if ($("#entryBody>*:not(.div_br)").eq(j).text().length < 75) {
          if (reg2.test($("#entryBody>*:not(.div_br)").eq(j).text())) {
            $("#entryBody>*:not(.div_br)").eq(j).addClass("e");
          }
        }
      } else {
        if ($("#entryBody>*:not(.div_br)").eq(j).text().length < 60) {
          $("#entryBody>*:not(.div_br)").eq(j).addClass("e");
        }
      }
    }
    $('.i_pic.e,.div_iframe.e,.waku.e').removeClass("e");
    $(".skin-entryBody *:contains('━')").html(function (_, html) {
      return html.replace(/(━+)/g, '<span class="line">$1</span>');
    });
    $(".skin-entryBody *:contains('=')").html(function (_, html) {
      return html.replace(/(={2,})/g, '<span class="line">$1</span>');
    });
    $(".skin-entryBody *:contains('=')").html(function (_, html) {
      return html.replace(/(={2,})/g, '<span class="line">$1</span>');
    });
    $(".skin-entryBody *:contains('▼')").html(function (_, html) {
      return html.replace(/(▼)/g, '<span class="mark">$1</span>');
    });
    $(".skin-entryBody *:contains('|')").html(function (_, html) {
      return html.replace(/(\|)/g, '<span class="mark">$1</span>');
    });
    $(".skin-entryBody *:contains('【')").html(function (_, html) {
      return html.replace(/(【)/g, '<span class="mark">$1</span>');
    });
    var result4 = document.evaluate('id("entryBody")/*[self::div or self::p][.//span[@class="line"]]', document, null, 7, null);
    for (var a = 0; a < result4.snapshotLength; a++) {
      result4.snapshotItem(a).classList.add("l_yoko");
    }
    var result8 = document.evaluate('id("entryBody")/*[self::div or self::p][.//span[@class="mark"]]', document, null, 7, null);
    for (var e = 0; e < result8.snapshotLength; e++) {
      result8.snapshotItem(e).classList.add("l_tate");
    }
    $('.div_br').not('.div_br+.div_br').each(function(){
      $(this).nextUntil(':not(.div_br)').andSelf().wrapAll('<div class="div_ren"></span>');
    });
    $('.div_ren+.e+.div_ren').prev().addClass("solo");
    $('.l_yoko,.l_tate').prev().filter('.div_ren').prev().addClass("sun");
    $('.l_yoko.l_tate').removeClass("l_tate");
    $('.l_yoko.solo,.l_tate.solo,.sun.solo,.node_last.solo').removeClass("solo");
    $('.solo,.solo+.div_ren').addClass("solo_uni");
    $('.solo_uni').not('.solo_uni+.solo_uni').each(function(){
      $(this).nextUntil(':not(.solo_uni)').andSelf().wrapAll('<div class="solo_wrap"></span>');
    });
    $('.solo_wrap>.solo_uni:nth-child(6n+6)').prev().addClass("solo_3");
    $('.div_ren').contents().unwrap();
    $('a.i_pic').on('focus', function () {
      $(this).css('display', 'none');
      $(this).after('<span class="revert"><a href="javascript:void(0)">この画像を元に戻す</a> <a href="javascript:void(0)">画像の右半分を表示</a></div>');
    });
    $(document).on('click', '.revert>a:first-child', function () {
      $(this).parent().prev().css('display', 'inline-block');
      $(this).parent().prev().css('width', $(this).parent().prev().children('img').attr("width"));
      $(this).parent().prev().children('img').css('object-fit', 'fill');
      $(this).parent().prev().children('img').css('object-position', '50% 50%');
      $(this).parent().remove();
    });
    $(document).on('click', '.revert>a:nth-child(2)', function () {
      $(this).parent().prev().css('display', 'inline-block');
      $(this).parent().prev().css('width', $(this).parent().prev().children('img').attr("width") / 2);
      $(this).parent().prev().children('img').css('height', $(this).parent().prev().children('img').attr("height"));
      $(this).parent().prev().children('img').css('object-fit', 'cover');
      $(this).parent().prev().children('img').css('object-position', '100% 0%');
      $(this).parent().remove();
    });
    var sameArr = tmp3.filter(function (p, q, self) {
      return self.indexOf(p) === q && q !== self.lastIndexOf(p);
    });
    for (var m = 0; m < $("#entryBody a").length; m++) {
      for (var n = 0; n < sameArr.length; n++) {
        if ($("#entryBody a").eq(m).attr("href") == sameArr[n]) {
          $("#entryBody a").eq(m).addClass(function (index) {
            return "dup" + n;
          });
        }
      }
    }
    var c = 0;
    while (sameArr.length > 0) {
      $('.dup' + c).eq(0).removeClass("dup" + c);
      c++;
      sameArr.shift();
    }
    $('table.i_pic a').removeClass();
    var result5 = document.evaluate('id("entryBody")//a[contains(@class,"dup")][not(starts-with(@href,"https://ameblo.jp/nishino-akihiro/image"))]', document, null, 7, null);
    for (var f = 0; f < result5.snapshotLength; f++) {
      result5.snapshotItem(f).classList.add("dup");
    }
    
    function size_origin() {
      $('.div_iframe').toggleClass("iframe-wrap");
    }
    $('#blogSearchInputHeader')[0].addEventListener('focus', size_origin, false);
    $('.skin-blogBody')[0].addEventListener('dblclick', size_origin, false);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

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