nishino_ameblo_add Fork

    @@ -117,4 +117,9 @@ var result6 = document.evaluate('id("entryBody")//a[string-length(@href)<18 or contains(@href,"/alu") or contains(@href,"/obara")]', document, null, 7, null); for (var g = 0; g < result6.snapshotLength; g++) { result6.snapshotItem(g).classList.add("tomeo"); - }+ } + $('#blogSearchInputHeader')[0].addEventListener('change', function () { + if($('#blogSearchInputHeader')[0].value == "video") { + $('.iframe-wrap').contents().unwrap(); + } + });
  • // ==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==
    $('.div_br+.div_br+.div_br').addClass("triple");
    $('.node_last~.triple').removeClass("triple");
    $('.triple').remove();
    $('.skin-entryBody iframe').addClass("i_pic");
    $('.skin-entryBody a>img,.skin-entryBody>div>table').parent().addClass("i_pic");
    $('.skin-entryBody table .i_pic').removeClass("i_pic");
    $('.skin-entryBody *>.i_pic').parent().addClass("i_pic");
    $('.skin-entryBody .i_pic>.i_pic').parent().contents().unwrap();
    $(".skin-entryBody").contents().filter(function () {
      return this.nodeType === 3;
    }).wrap("<span class='n_text'></span>");
    $('.skin-entryBody>br').remove();
    $('.skin-entryBody>.i_pic+.div_br').addClass("i_pad");
    $('.skin-entryBody>.i_pic').prev().addClass("i_pad");
    $('.i_pad:not(.div_br)').removeClass("i_pad");
    $('.i_pic+.i_pad+.i_pic').prev().removeClass("i_pad");
    $('.i_pad+.div_br').addClass("kabuse");
    $('.div_br+.i_pad').prev().addClass("furi");
    $('a.i_pic+.i_pad+.kabuse').addClass("kabuse_a");
    $("#entryBody>*>span").contents().unwrap();
    $('.skin-entryBody>span,.skin-entryBody>a:not(.i_pic)').nextUntil('div,p,.i_pic').addBack().wrapAll("<span class='i_ren'></span>");
    $('a.i_pic+.i_ren,a.i_pic+.i_pad+.i_ren,.kabuse_a+.i_ren').addClass("kaigyo_pre");
    $('.kabuse_a').removeClass("kabuse_a");
    $("iframe.i_pic").wrap("<div class='iframe-wrap'></div>");
    var result7 = document.evaluate('//a[contains(@class,"i_pic")]/preceding-sibling::*[not(contains(@class,"div_br") or contains(@class,"i_pic"))][1][self::span]', document, null, 7, null);
    for (var b = 0; b < result7.snapshotLength; b++) {
      result7.snapshotItem(b).classList.add("kaigyo_app");
    }
    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 < 72) {
          $("#entryBody>*:not(.div_br)").eq(j).addClass("e");
        }
      } else {
        if ($("#entryBody>*:not(.div_br)").eq(j).text().length < 62) {
          $("#entryBody>*:not(.div_br)").eq(j).addClass("e");
        }
      }
    }
    $('.i_pic.e,.iframe-wrap.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(/(▼)/g, '<span class="mark">$1</span>');
    });
    $(".skin-entryBody *:contains('|')").html(function (_, html) {
      return html.replace(/(\|)/g, '<span class="mark">|</span>');
    });
    var result4 = document.evaluate('id("entryBody")//*[self::div or self::p][contains(text(),"━") or contains(text(),"==")]|id("entryBody")//*[self::div or self::p][./span[contains(text(),"━") or contains(text(),"==")]]', 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[normalize-space(./text())="|" or ./text()="▼"]]', document, null, 7, null);
    for (var e = 0; e < result8.snapshotLength; e++) {
      result8.snapshotItem(e).classList.add("l_tate");
    }
    $('.l_yoko,.l_tate').prev().prev().addClass("sun");
    $('.sun+*:not(.div_br)').prev().removeClass("sun");
    $('.l_yoko.l_tate').removeClass("l_tate");
    $('.div_br+.e:not(.sun)+.div_br:not(.sun)').prev().addClass("solo");
    $('.l_tate.solo,.l_yoko.solo,.node_last.solo').removeClass("solo");
    $('.solo+.div_br:not(.furi)+.div_br').remove();
    $('.solo+.div_br:not(.i_pad)').remove();
    $('.solo+.solo+.solo').addClass("solo_ren");
    $('.solo_ren+.i_pad,.solo_ren+.furi').prev().removeClass("solo_ren");
    $('a.i_pic').on('focus', function() {
        $(this).css('display', 'none');
        $(this).after('<div class="revert"><a href="javascript:void(0)">この画像を元に戻す</a></div>');
    });
    $(document).on('click', '.revert>a', function(){
        $(this).parent().prev().css('display', 'inline-block');
        $(this).parent().remove();
    });
    var reg = /[\u3040-\u30ff]/;
    var tmp3 = [];
    for (var k = 0; k < $("#entryBody a").length; k++) {
      var tmp2 = $("#entryBody a").eq(k).attr("href");
      if (reg.test(tmp2)) {
        $("#entryBody a").eq(k).addClass("akan");
      }
      tmp3[k] = $("#entryBody a").eq(k).attr("href");
    }
    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();
    }
    $('.i_pic>table a').removeClass();
    var result5 = document.evaluate('id("entryBody")//a[contains(@class,"dup")]', document, null, 7, null);
    for (var f = 0; f < result5.snapshotLength; f++) {
      result5.snapshotItem(f).classList.add("dup");
    }
    var result6 = document.evaluate('id("entryBody")//a[string-length(@href)<18 or contains(@href,"/alu") or contains(@href,"/obara")]', document, null, 7, null);
    for (var g = 0; g < result6.snapshotLength; g++) {
      result6.snapshotItem(g).classList.add("tomeo");
    }
    $('#blogSearchInputHeader')[0].addEventListener('change', function () {
        if($('#blogSearchInputHeader')[0].value == "video") {
            $('.iframe-wrap').contents().unwrap();
        }
    });
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

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