nishino_gamp Fork

    @@ -1 +1,70 @@ - var _0x6e68=["\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x74\x64\x2F\x61\x6E\x63\x65\x73\x74\x6F\x72\x3A\x3A\x2A\x5B\x2E\x2F\x61\x6E\x63\x65\x73\x74\x6F\x72\x3A\x3A\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x5D","\x65\x76\x61\x6C\x75\x61\x74\x65","\x73\x6E\x61\x70\x73\x68\x6F\x74\x4C\x65\x6E\x67\x74\x68","\x61\x6E\x63","\x61\x64\x64","\x63\x6C\x61\x73\x73\x4C\x69\x73\x74","\x73\x6E\x61\x70\x73\x68\x6F\x74\x49\x74\x65\x6D","\x63\x6F\x6E\x74\x65\x6E\x74\x73","\x72\x65\x70\x6C\x61\x63\x65\x57\x69\x74\x68","\x2E\x61\x6E\x63","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x22\x74\x62\x5F\x63\x65\x6C\x6C\x22\x3E\x3C\x2F\x64\x69\x76\x3E","\x77\x72\x61\x70\x41\x6C\x6C","\x74\x64\x3A\x6C\x74\x28\x32\x29","\x63\x68\x69\x6C\x64\x72\x65\x6E","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74","\x6C\x65\x6E\x67\x74\x68","\x74\x64","\x72\x65\x6D\x6F\x76\x65\x43\x6C\x61\x73\x73","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x73\x70\x61\x6E","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x62\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x69\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x66\x6F\x6E\x74\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x75\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x65\x6D","\x71\x75\x65\x72\x79\x53\x65\x6C\x65\x63\x74\x6F\x72\x41\x6C\x6C","\x66\x62\x69","\x75\x6E\x77\x72\x61\x70","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x61\x3A\x6E\x6F\x74\x28\x5B\x68\x72\x65\x66\x5D\x29","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x27\x73\x5F\x66\x62\x69\x27\x3E\x3C\x2F\x73\x70\x61\x6E\x3E","\x77\x72\x61\x70","\x2E\x66\x62\x69","\x70\x61\x72\x65\x6E\x74","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x73\x70\x61\x6E\x3E\x73\x70\x61\x6E","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x73\x70\x61\x6E\x3E\x62\x72","\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x74\x65\x78\x74\x28\x29","\x6E\x6F\x64\x65\x56\x61\x6C\x75\x65","\x74\x65\x73\x74","\u3000","","\x72\x65\x70\x6C\x61\x63\x65","\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x64\x69\x76\x5B\x2E\x2F\x74\x65\x78\x74\x28\x29\x3D\x22\u3000\x22\x5D\x5B\x6E\x6F\x74\x28\x2E\x2F\x2A\x29\x5D\x7C\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x64\x69\x76\x5B\x2E\x2F\x73\x70\x61\x6E\x5B\x2E\x2F\x74\x65\x78\x74\x28\x29\x3D\x22\u3000\x22\x5D\x5B\x6E\x6F\x74\x28\x2E\x2F\x2A\x29\x5D\x5D","\x64\x69\x76\x5F\x62\x72","\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x64\x69\x76\x5B\x63\x6F\x6E\x74\x61\x69\x6E\x73\x28\x74\x65\x78\x74\x28\x29\x2C\x22\u2501\x22\x29\x20\x6F\x72\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x28\x74\x65\x78\x74\x28\x29\x2C\x22\uFF1D\uFF1D\x22\x29\x5D\x7C\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x64\x69\x76\x5B\x2E\x2F\x73\x70\x61\x6E\x5B\x63\x6F\x6E\x74\x61\x69\x6E\x73\x28\x74\x65\x78\x74\x28\x29\x2C\x22\u2501\x22\x29\x20\x6F\x72\x20\x63\x6F\x6E\x74\x61\x69\x6E\x73\x28\x74\x65\x78\x74\x28\x29\x2C\x22\uFF1D\uFF1D\x22\x29\x5D\x5D","\x6C\x5F\x79\x6F\x6B\x6F","\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2F\x2A\x5B\x73\x65\x6C\x66\x3A\x3A\x64\x69\x76\x20\x6F\x72\x20\x73\x65\x6C\x66\x3A\x3A\x70\x5D\x2F\x62\x72\x5B\x6E\x6F\x74\x28\x2E\x2F\x70\x72\x65\x63\x65\x64\x69\x6E\x67\x2D\x73\x69\x62\x6C\x69\x6E\x67\x3A\x3A\x2A\x29\x20\x61\x6E\x64\x20\x73\x74\x72\x69\x6E\x67\x2D\x6C\x65\x6E\x67\x74\x68\x28\x2E\x2F\x70\x72\x65\x63\x65\x64\x69\x6E\x67\x2D\x73\x69\x62\x6C\x69\x6E\x67\x3A\x3A\x74\x65\x78\x74\x28\x29\x29\x3C\x31\x5D","\x62\x72\x5F\x66\x69\x72\x73\x74","\x3C\x64\x69\x76\x20\x63\x6C\x61\x73\x73\x3D\x27\x64\x69\x76\x5F\x62\x72\x27\x3E\x3C\x2F\x64\x69\x76\x3E","\x2E\x62\x72\x5F\x66\x69\x72\x73\x74","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x64\x69\x76\x3E\x64\x69\x76\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x70\x3E\x64\x69\x76\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x64\x69\x76\x3E\x70","\x3C\x73\x70\x61\x6E\x20\x63\x6C\x61\x73\x73\x3D\x27\x6E\x5F\x74\x65\x78\x74\x27\x3E\x3C\x2F\x73\x70\x61\x6E\x3E","\x6E\x6F\x64\x65\x54\x79\x70\x65","\x66\x69\x6C\x74\x65\x72","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x73\x70\x61\x6E\x3A\x65\x6D\x70\x74\x79","\x72\x65\x6D\x6F\x76\x65","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x20\x64\x69\x76\x2B\x62\x72","\x2F\x2F\x64\x69\x76\x5B\x40\x63\x6C\x61\x73\x73\x3D\x22\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x22\x5D\x2F\x2A\x5B\x6E\x6F\x74\x28\x40\x63\x6C\x61\x73\x73\x3D\x22\x64\x69\x76\x5F\x62\x72\x22\x29\x20\x61\x6E\x64\x20\x6E\x6F\x74\x28\x73\x65\x6C\x66\x3A\x3A\x74\x64\x29\x5D\x5B\x6C\x61\x73\x74\x28\x29\x5D","\x6E\x6F\x64\x65\x5F\x6C\x61\x73\x74","\x74\x6F\x6D\x65\x6F","\x61\x64\x64\x43\x6C\x61\x73\x73","\x70\x72\x65\x76","\x2E\x6E\x6F\x64\x65\x5F\x6C\x61\x73\x74\x7E\x74\x64","\x73\x75\x6E","\x2E\x6C\x5F\x79\x6F\x6B\x6F","\x69\x5F\x70\x69\x63","\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x3E\x61\x5B\x68\x72\x65\x66\x2A\x3D\x22\x2F\x69\x6D\x61\x67\x65\x2D\x22\x5D\x2C\x2E\x65\x6E\x74\x72\x79\x2D\x74\x65\x78\x74\x3E\x61\x6D\x70\x2D\x79\x6F\x75\x74\x75\x62\x65"];var result2=document[_0x6e68[1]](_0x6e68[0],document,null,7,null);for(var i=0;i< result2[_0x6e68[2]];i++){result2[_0x6e68[6]](i)[_0x6e68[5]][_0x6e68[4]](_0x6e68[3])};$(_0x6e68[9])[_0x6e68[8]](function(){return $(this)[_0x6e68[7]]()});$(function(){do{$(_0x6e68[14])[_0x6e68[13]](_0x6e68[12])[_0x6e68[11]](_0x6e68[10])}while($(_0x6e68[14])[_0x6e68[13]](_0x6e68[16])[_0x6e68[15]]);});$(_0x6e68[18])[_0x6e68[17]]();var listArray3=document[_0x6e68[20]](_0x6e68[19]);for(var k=0;k< listArray3[_0x6e68[15]];k++){listArray3[k][_0x6e68[5]][_0x6e68[4]](_0x6e68[21])};$(_0x6e68[23])[_0x6e68[7]]()[_0x6e68[22]]();$(_0x6e68[26])[_0x6e68[25]](_0x6e68[24]);$(_0x6e68[26])[_0x6e68[7]]()[_0x6e68[22]]();$(_0x6e68[28])[_0x6e68[27]]()[_0x6e68[7]]()[_0x6e68[22]]();$(_0x6e68[29])[_0x6e68[27]]()[_0x6e68[7]]()[_0x6e68[22]]();var result5=document[_0x6e68[1]](_0x6e68[30],document,null,7,null);for(var b=0;b< result5[_0x6e68[2]];b++){if(/^\s+$/g[_0x6e68[32]](result5[_0x6e68[6]](b)[_0x6e68[31]])){if(/ /g[_0x6e68[32]](result5[_0x6e68[6]](b)[_0x6e68[31]])){result5[_0x6e68[6]](b)[_0x6e68[31]]= _0x6e68[33]}else {result5[_0x6e68[6]](b)[_0x6e68[31]]= result5[_0x6e68[6]](b)[_0x6e68[31]][_0x6e68[35]](/^\s+/g,_0x6e68[34])}}};var result6=document[_0x6e68[1]](_0x6e68[36],document,null,7,null);for(var c=0;c< result6[_0x6e68[2]];c++){result6[_0x6e68[6]](c)[_0x6e68[5]][_0x6e68[4]](_0x6e68[37])};var result4=document[_0x6e68[1]](_0x6e68[38],document,null,7,null);for(var a=0;a< result4[_0x6e68[2]];a++){result4[_0x6e68[6]](a)[_0x6e68[5]][_0x6e68[4]](_0x6e68[39])};var result=document[_0x6e68[1]](_0x6e68[40],document,null,7,null);for(var x=0;x< result[_0x6e68[2]];x++){result[_0x6e68[6]](x)[_0x6e68[5]][_0x6e68[4]](_0x6e68[41])};$(_0x6e68[43])[_0x6e68[25]](_0x6e68[42]);$(_0x6e68[44])[_0x6e68[27]]()[_0x6e68[7]]()[_0x6e68[22]]();$(_0x6e68[14])[_0x6e68[7]]()[_0x6e68[47]](function(){return this[_0x6e68[46]]=== 3})[_0x6e68[25]](_0x6e68[45]);var listArray4=document[_0x6e68[20]](_0x6e68[48]);for(var l=0;l< listArray4[_0x6e68[15]];l++){listArray4[l][_0x6e68[49]]()};$(_0x6e68[50])[_0x6e68[25]](_0x6e68[42]);var result3=document[_0x6e68[1]](_0x6e68[51],document,null,7,null);result3[_0x6e68[6]](0)[_0x6e68[5]][_0x6e68[4]](_0x6e68[52]);$(_0x6e68[56])[_0x6e68[55]]()[_0x6e68[54]](_0x6e68[53]);$(_0x6e68[58])[_0x6e68[55]]()[_0x6e68[54]](_0x6e68[57]);$(_0x6e68[60])[_0x6e68[54]](_0x6e68[59])+ // ==UserScript== + // @title nishino_gamp + // @name nishino_gamp + // @namespace http://tampermonkey.net/ + // @version 0.1 + // @description try to take over the world! + // @author You + // @match https://gamp.ameblo.jp/nishino-akihiro/* + // @grant none + // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js + // ==/UserScript== + var result2 = document.evaluate('//div[@class="entry-text"]//td/ancestor::*[./ancestor::div[@class="entry-text"]]', document, null, 7, null); + for (var i = 0; i < result2.snapshotLength; i++) { + result2.snapshotItem(i).classList.add("anc"); + } + $('.anc').replaceWith(function () { + return $(this).contents(); + }); + $(function () { + do { + $(".entry-text").children("td:lt(2)").wrapAll('<div class="tb_cell"></div>') + } while ($(".entry-text").children("td").length); + }); + $(".entry-text span").removeClass(); + var listArray3 = document.querySelectorAll('.entry-text b,.entry-text i,.entry-text font,.entry-text u,.entry-text em'); + for (var k = 0; k < listArray3.length; k++) { + listArray3[k].classList.add("fbi"); + } + $('.entry-text a:not([href])').contents().unwrap(); + $('.fbi').wrap("<span class='s_fbi'></span>"); + $('.fbi').contents().unwrap(); + $('.entry-text span>span').parent().contents().unwrap(); + $('.entry-text span>br').parent().contents().unwrap(); + var result5 = document.evaluate('//div[@class="entry-text"]//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, ""); + } + } + } + var result6 = document.evaluate('//div[@class="entry-text"]//div[./text()=" "][not(./*)]|//div[@class="entry-text"]//div[./span[./text()=" "][not(./*)]]', document, null, 7, null); + for (var c = 0; c < result6.snapshotLength; c++) { + result6.snapshotItem(c).classList.add("div_br"); + } + var result4 = document.evaluate('//div[@class="entry-text"]//div[contains(text(),"━") or contains(text(),"==")]|//div[@class="entry-text"]//div[./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 result = document.evaluate('//div[@class="entry-text"]//*[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>"); + $('.entry-text div>div,.entry-text p>div,.entry-text div>p').parent().contents().unwrap(); + $(".entry-text").contents().filter(function () { + return this.nodeType === 3; + }).wrap("<span class='n_text'></span>"); + var listArray4 = document.querySelectorAll('.entry-text span:empty'); + for (var l = 0; l < listArray4.length; l++) { + listArray4[l].remove(); + } + $(".entry-text div+br").wrap("<div class='div_br'></div>"); + var result3 = document.evaluate('//div[@class="entry-text"]/*[not(@class="div_br") and not(self::td)][last()]', document, null, 7, null); + result3.snapshotItem(0).classList.add("node_last"); + $(".node_last~td").prev().addClass("tomeo"); + $('.l_yoko').prev().addClass("sun"); + $('.entry-text>a[href*="/image-"],.entry-text>amp-youtube,.entry-text>amp-iframe').addClass("i_pic");
  • // ==UserScript==
    // @title        nishino_gamp
    // @name         nishino_gamp
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://gamp.ameblo.jp/nishino-akihiro/*
    // @grant        none
    // @require      http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
    // ==/UserScript==
    var result2 = document.evaluate('//div[@class="entry-text"]//td/ancestor::*[./ancestor::div[@class="entry-text"]]', document, null, 7, null);
    for (var i = 0; i < result2.snapshotLength; i++) {
      result2.snapshotItem(i).classList.add("anc");
    }
    $('.anc').replaceWith(function () {
      return $(this).contents();
    });
    $(function () {
      do {
        $(".entry-text").children("td:lt(2)").wrapAll('<div class="tb_cell"></div>')
      } while ($(".entry-text").children("td").length);
    });
    $(".entry-text span").removeClass();
    var listArray3 = document.querySelectorAll('.entry-text b,.entry-text i,.entry-text font,.entry-text u,.entry-text em');
    for (var k = 0; k < listArray3.length; k++) {
      listArray3[k].classList.add("fbi");
    }
    $('.entry-text a:not([href])').contents().unwrap();
    $('.fbi').wrap("<span class='s_fbi'></span>");
    $('.fbi').contents().unwrap();
    $('.entry-text span>span').parent().contents().unwrap();
    $('.entry-text span>br').parent().contents().unwrap();
    var result5 = document.evaluate('//div[@class="entry-text"]//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, "");
        }
      }
    }
    var result6 = document.evaluate('//div[@class="entry-text"]//div[./text()=" "][not(./*)]|//div[@class="entry-text"]//div[./span[./text()=" "][not(./*)]]', document, null, 7, null);
    for (var c = 0; c < result6.snapshotLength; c++) {
      result6.snapshotItem(c).classList.add("div_br");
    }
    var result4 = document.evaluate('//div[@class="entry-text"]//div[contains(text(),"━") or contains(text(),"==")]|//div[@class="entry-text"]//div[./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 result = document.evaluate('//div[@class="entry-text"]//*[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>");
    $('.entry-text div>div,.entry-text p>div,.entry-text div>p').parent().contents().unwrap();
    $(".entry-text").contents().filter(function () {
      return this.nodeType === 3;
    }).wrap("<span class='n_text'></span>");
    var listArray4 = document.querySelectorAll('.entry-text span:empty');
    for (var l = 0; l < listArray4.length; l++) {
      listArray4[l].remove();
    }
    $(".entry-text div+br").wrap("<div class='div_br'></div>");
    var result3 = document.evaluate('//div[@class="entry-text"]/*[not(@class="div_br") and not(self::td)][last()]', document, null, 7, null);
    result3.snapshotItem(0).classList.add("node_last");
    $(".node_last~td").prev().addClass("tomeo");
    $('.l_yoko').prev().addClass("sun");
    $('.entry-text>a[href*="/image-"],.entry-text>amp-youtube,.entry-text>amp-iframe').addClass("i_pic");
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。