nishino_ameblo_only Fork

    @@ -33,8 +33,8 @@ } } $('.skin-entryBody a:not([href])').contents().unwrap(); - $('.skin-entryBody h1,.skin-entryBody h2,.skin-entryBody h3,.skin-entryBody h4,.skin-entryBody h5,.skin-entryBody h6').wrap("<div></div>"); - $('.skin-entryBody h1,.skin-entryBody h2,.skin-entryBody h3,.skin-entryBody h4,.skin-entryBody h5,.skin-entryBody h6').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(); var result9 = document.evaluate('id("entryBody")//span[not(./text())]', document, null, 7, null); for (var z = 0; z < result9.snapshotLength; z++) { result9.snapshotItem(z).classList.add("fbi");
  • // ==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 listArray3 = document.querySelectorAll('.skin-entryBody b,.skin-entryBody i,.skin-entryBody font,.skin-entryBody u');
    for (var k = 0; k < listArray3.length; k++) {
      listArray3[k].classList.add("fbi");
    }
    var result5 = document.evaluate('id("entryBody")//text()', document, null, 7, null);
    for (var b = 0; b < result5.snapshotLength; b++) {
      if (/^\s+$/g.test(result5.snapshotItem(b).nodeValue)) {
        if (/ /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 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();
    var result9 = document.evaluate('id("entryBody")//span[not(./text())]', document, null, 7, null);
    for (var z = 0; z < result9.snapshotLength; z++) {
        result9.snapshotItem(z).classList.add("fbi");
    }
    $('.fbi>.fbi').parent().contents().unwrap();
    $('.fbi:empty').remove();
    $('.skin-entryBody>.fbi').wrap("<span class='n_fbi'></span>");
    $('.fbi').contents().unwrap();
    $('.skin-entryBody span>span').parent().contents().unwrap();
    $('.skin-entryBody span>br').parent().contents().unwrap();
    $('.skin-entryBody span>a').parent().contents().unwrap();
    var result6 = document.evaluate('id("entryBody")//*[self::div or self::p][./text()=" "][not(./*)]|id("entryBody")//*[self::div or self::p][./span[./text()=" "][not(./*)]]', document, null, 7, null);
    for (var c = 0; c < result6.snapshotLength; c++) {
      result6.snapshotItem(c).classList.add("div_br");
    }
    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>");
    $('.skin-entryBody div>div,.skin-entryBody p>div,.skin-entryBody div>p').parent().contents().unwrap();
    $('.skin-entryBody div>span:empty,.skin-entryBody p>span:empty').remove();
    $('.skin-entryBody div:empty,.skin-entryBody p:empty').remove();
    $(".skin-entryBody").contents().filter(function () {
      return this.nodeType === 3;
    }).wrap("<span class='n_text'></span>");
    $('.skin-entryBody span:empty').remove();
    $(".skin-entryBody div+br").wrap("<div class='div_br'></div>");
    var result3 = document.evaluate('id("entryBody")/*[not(@class="div_br")][last()]', document, null, 7, null);
    result3.snapshotItem(0).classList.add("node_last");
    var result4 = document.evaluate('id("entryBody")/*[not(@class="div_br")][1]', document, null, 7, null);
    result4.snapshotItem(0).classList.add("node_first");
    $('.node_first').prevAll().addClass("cork");
    var result8 = document.evaluate('//*[contains(@class,"node_last")][count(./a)=1]', document, null, 7, null);
    if (result8.snapshotItem(0)) {
      if ($(".node_last").text().length - $(".node_last>a").text().length < 2) {
        $('.node_last').addClass("solo_a");
      } else {
        $('.node_last').addClass("uni_a");
      }
    }
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2020/03/25 04:16:17 - 03/25
  2. 2020/03/22 01:12:42 - 03/22
  3. 2020/03/19 07:47:50 - 03/19
  4. 2020/03/14 03:02:45 - 03/14
  5. 2020/03/12 03:37:48 - 03/12
  6. 2020/03/12 01:22:52 - 03/12
  7. 2020/03/12 01:13:17 - 03/12
  8. 2020/03/11 01:59:26 - 03/11
  9. 2020/03/11 01:26:01 - 03/11
  10. 2020/03/11 01:23:50 - 03/11
  11. 2020/03/02 02:44:24 - 03/02
  12. 2020/02/25 02:48:15 - 02/25
  13. 2020/02/22 23:57:55 - 02/22
  14. 2020/02/18 12:02:20 - 02/18
  15. 2020/02/17 01:08:25 - 02/17
  16. 2020/02/16 23:16:35 - 02/16
  17. 2020/02/07 06:39:17 - 02/07
  18. 2020/02/03 04:05:44 - 02/03
  19. 2020/01/06 01:33:36 - 01/06
  20. 2020/01/06 01:01:36 - 01/06
  21. 2020/01/03 01:23:13 - 01/03
  22. 2020/01/03 01:18:47 - 01/03
  23. 2020/01/02 02:03:45 - 01/02
  24. 2020/01/02 02:03:25 - 01/02
  25. 2020/01/02 01:30:41 - 01/02
  26. 2020/01/01 01:57:01 - 01/01
  27. 2019/12/31 05:45:02 - 2019-12-31
  28. 2019/12/31 05:40:42 - 2019-12-31
  29. 2019/12/31 05:25:44 - 2019-12-31
  30. 2019/12/31 05:04:35 - 2019-12-31
  31. 2019/12/31 04:57:55 - 2019-12-31
  32. 2019/12/31 04:51:52 - 2019-12-31
  33. 2019/12/31 04:48:36 - 2019-12-31
  34. 2019/12/31 04:43:37 - 2019-12-31
  35. 2019/12/31 04:05:20 - 2019-12-31
  36. 2019/12/31 03:56:19 - 2019-12-31
  37. 2019/12/31 03:51:14 - 2019-12-31
  38. 2019/12/31 03:45:46 - 2019-12-31
  39. 2019/12/30 13:01:43 - 2019-12-30
  40. 2019/12/30 11:00:37 - 2019-12-30
  41. 2019/12/30 08:44:10 - 2019-12-30
  42. 2019/12/30 08:41:00 - 2019-12-30
  43. 2019/12/30 01:53:23 - 2019-12-30
  44. 2019/12/29 09:16:40 - 2019-12-29
  45. 2019/12/29 03:10:44 - 2019-12-29
  46. 2019/12/29 01:28:45 - 2019-12-29
  47. 2019/12/29 01:13:03 - 2019-12-29
  48. 2019/12/28 04:45:19 - 2019-12-28
  49. 2019/12/24 02:49:06 - 2019-12-24
  50. 2019/12/16 01:31:31 - 2019-12-16
  51. 2019/12/13 01:32:32 - 2019-12-13
  52. 2019/11/16 06:46:49 - 2019-11-16
  53. 2019/10/30 12:54:30 - 2019-10-30
  54. 2019/10/30 11:50:38 - 2019-10-30
  55. 2019/10/22 01:25:34 - 2019-10-22
  56. 2019/10/15 04:23:25 - 2019-10-15
  57. 2019/10/12 01:02:58 - 2019-10-12
  58. 2019/10/10 07:32:02 - 2019-10-10
  59. 2019/10/07 01:57:33 - 2019-10-07
  60. 2019/10/07 01:31:58 - 2019-10-07
  61. 2019/09/24 05:40:31 - 2019-09-24
  62. 2019/09/19 01:39:10 - 2019-09-19
  63. 2019/09/18 22:48:14 - 2019-09-18
  64. 2019/08/20 01:15:59 - 2019-08-20
  65. 2019/08/20 01:14:06 - 2019-08-20
  66. 2019/06/30 03:28:19 - 2019-06-30
  67. 2019/06/25 11:57:51 - 2019-06-25
  68. 2019/06/09 04:33:41 - 2019-06-09
  69. 2019/05/26 08:29:56 - 2019-05-26
  70. 2019/05/26 02:36:02 - 2019-05-26
  71. 2019/05/26 01:35:28 - 2019-05-26
  72. 2019/05/26 01:34:55 - 2019-05-26
  73. 2019/05/07 01:16:16 - 2019-05-07
  74. 2019/05/07 01:14:50 - 2019-05-07
  75. 2019/05/06 02:49:40 - 2019-05-06
  76. 2019/05/06 02:49:14 - 2019-05-06
  77. 2019/05/03 00:59:51 - 2019-05-03
  78. 2019/05/03 00:58:12 - 2019-05-03
  79. 2019/05/02 01:36:58 - 2019-05-02
  80. 2019/05/02 01:35:17 - 2019-05-02
  81. 2019/05/01 23:24:14 - 2019-05-01
  82. 2019/05/01 23:22:29 - 2019-05-01
  83. 2019/04/29 08:30:20 - 2019-04-29
  84. 2019/04/29 08:29:03 - 2019-04-29
  85. 2019/04/23 03:24:38 - 2019-04-23
  86. 2019/04/23 03:22:38 - 2019-04-23
  87. 2019/04/23 02:14:34 - 2019-04-23
  88. 2019/04/23 02:10:45 - 2019-04-23
  89. 2019/04/22 02:56:10 - 2019-04-22
  90. 2019/04/22 02:13:07 - 2019-04-22
  91. 2019/04/20 02:23:36 - 2019-04-20
  92. 2019/04/19 04:14:40 - 2019-04-19
  93. 2019/04/18 11:42:34 - 2019-04-18
  94. 2019/04/17 02:24:23 - 2019-04-17
  95. 2019/04/15 23:34:49 - 2019-04-15
  96. 2019/04/15 00:53:29 - 2019-04-15
  97. 2019/04/14 23:09:02 - 2019-04-14
  98. 2019/04/10 03:29:30 - 2019-04-10
  99. 2019/04/10 02:49:27 - 2019-04-10
  100. 2019/04/10 02:47:10 - 2019-04-10
  101. 2019/04/10 01:24:11 - 2019-04-10
  102. 2019/04/10 01:23:47 - 2019-04-10
  103. 2019/04/03 11:28:21 - 2019-04-03
  104. 2019/03/30 00:48:13 - 2019-03-30
  105. 2019/03/14 10:54:35 - 2019-03-14
  106. 2019/03/14 10:28:42 - 2019-03-14
  107. 2019/03/14 03:22:49 - 2019-03-14
  108. 2019/03/14 03:03:31 - 2019-03-14
  109. 2019/03/14 02:29:35 - 2019-03-14
  110. 2019/03/14 02:00:36 - 2019-03-14
  111. 2019/03/13 06:58:16 - 2019-03-13
  112. 2019/03/13 03:13:04 - 2019-03-13
  113. 2019/03/13 01:32:57 - 2019-03-13
  114. 2019/03/12 01:39:41 - 2019-03-12
  115. 2019/03/11 08:44:20 - 2019-03-11
  116. 2019/03/04 00:54:34 - 2019-03-04
  117. 2019/03/03 22:54:02 - 2019-03-03
  118. 2019/03/03 22:48:29 - 2019-03-03
  119. 2019/03/03 12:57:13 - 2019-03-03
  120. 2019/03/03 11:56:41 - 2019-03-03