nishino_gamp Fork

    @@ -1,70 +1 @@ - // ==UserScript== + var _0x14b8=['contents','.entry-text','td:lt(2)','wrapAll','children','length','.entry-text\x20span','removeClass','querySelectorAll','.entry-text\x20b,.entry-text\x20i,.entry-text\x20font,.entry-text\x20u,.entry-text\x20em','fbi','.entry-text\x20a:not([href])','unwrap','.fbi','wrap','.entry-text\x20span>span','.entry-text\x20span>br','parent','test','nodeValue','div_br','//div[@class=\x22entry-text\x22]//div[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]|//div[@class=\x22entry-text\x22]//div[./span[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]]','l_yoko','//div[@class=\x22entry-text\x22]//*[self::div\x20or\x20self::p]/br[not(./preceding-sibling::*)\x20and\x20string-length(./preceding-sibling::text())<1]','.br_first','<div\x20class=\x27div_br\x27></div>','.entry-text\x20div>div,.entry-text\x20p>div,.entry-text\x20div>p','filter','<span\x20class=\x27n_text\x27></span>','.entry-text\x20span:empty','remove','.entry-text\x20div+br','//div[@class=\x22entry-text\x22]/*[not(@class=\x22div_br\x22)\x20and\x20not(self::td)][last()]','node_last','.node_last~td','prev','addClass','.l_yoko','.entry-text>a[href*=\x22/image-\x22],.entry-text>amp-youtube,.entry-text>amp-iframe','i_pic','evaluate','//div[@class=\x22entry-text\x22]//td/ancestor::*[./ancestor::div[@class=\x22entry-text\x22]]','snapshotLength','snapshotItem','classList','add','anc','.anc','replaceWith'];(function(_0x5342cf,_0x4ff52f){var _0x52967d=function(_0x473d1f){while(--_0x473d1f){_0x5342cf['push'](_0x5342cf['shift']());}};_0x52967d(++_0x4ff52f);}(_0x14b8,0xbb));var _0x168f=function(_0x91f419,_0x397727){_0x91f419=_0x91f419-0x0;var _0x415e15=_0x14b8[_0x91f419];return _0x415e15;};var result2=document[_0x168f('0x0')](_0x168f('0x1'),document,null,0x7,null);for(var i=0x0;i<result2[_0x168f('0x2')];i++){result2[_0x168f('0x3')](i)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x6'));}$(_0x168f('0x7'))[_0x168f('0x8')](function(){return $(this)[_0x168f('0x9')]();});$(function(){do{$(_0x168f('0xa'))['children'](_0x168f('0xb'))[_0x168f('0xc')]('<div\x20class=\x22tb_cell\x22></div>');}while($(_0x168f('0xa'))[_0x168f('0xd')]('td')[_0x168f('0xe')]);});$(_0x168f('0xf'))[_0x168f('0x10')]();var listArray3=document[_0x168f('0x11')](_0x168f('0x12'));for(var k=0x0;k<listArray3[_0x168f('0xe')];k++){listArray3[k][_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x13'));}$(_0x168f('0x14'))[_0x168f('0x9')]()[_0x168f('0x15')]();$(_0x168f('0x16'))[_0x168f('0x17')]('<span\x20class=\x27s_fbi\x27></span>');$(_0x168f('0x16'))['contents']()[_0x168f('0x15')]();$(_0x168f('0x18'))['parent']()[_0x168f('0x9')]()[_0x168f('0x15')]();$(_0x168f('0x19'))[_0x168f('0x1a')]()['contents']()[_0x168f('0x15')]();var result5=document[_0x168f('0x0')]('//div[@class=\x22entry-text\x22]//text()',document,null,0x7,null);for(var b=0x0;b<result5[_0x168f('0x2')];b++){if(/^\s+$/g[_0x168f('0x1b')](result5['snapshotItem'](b)[_0x168f('0x1c')])){if(/ /g['test'](result5[_0x168f('0x3')](b)[_0x168f('0x1c')])){result5[_0x168f('0x3')](b)[_0x168f('0x1c')]='\u3000';}else{result5[_0x168f('0x3')](b)['nodeValue']=result5[_0x168f('0x3')](b)[_0x168f('0x1c')]['replace'](/^\s+/g,'');}}}var result6=document[_0x168f('0x0')]('//div[@class=\x22entry-text\x22]//div[./text()=\x22\u3000\x22][not(./*)]|//div[@class=\x22entry-text\x22]//div[./span[./text()=\x22\u3000\x22][not(./*)]]',document,null,0x7,null);for(var c=0x0;c<result6[_0x168f('0x2')];c++){result6[_0x168f('0x3')](c)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x1d'));}var result4=document[_0x168f('0x0')](_0x168f('0x1e'),document,null,0x7,null);for(var a=0x0;a<result4[_0x168f('0x2')];a++){result4[_0x168f('0x3')](a)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x1f'));}var result=document[_0x168f('0x0')](_0x168f('0x20'),document,null,0x7,null);for(var x=0x0;x<result[_0x168f('0x2')];x++){result[_0x168f('0x3')](x)['classList']['add']('br_first');}$(_0x168f('0x21'))[_0x168f('0x17')](_0x168f('0x22'));$(_0x168f('0x23'))[_0x168f('0x1a')]()['contents']()['unwrap']();$(_0x168f('0xa'))[_0x168f('0x9')]()[_0x168f('0x24')](function(){return this['nodeType']===0x3;})[_0x168f('0x17')](_0x168f('0x25'));var listArray4=document[_0x168f('0x11')](_0x168f('0x26'));for(var l=0x0;l<listArray4[_0x168f('0xe')];l++){listArray4[l][_0x168f('0x27')]();}$(_0x168f('0x28'))['wrap'](_0x168f('0x22'));var result3=document[_0x168f('0x0')](_0x168f('0x29'),document,null,0x7,null);result3[_0x168f('0x3')](0x0)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x2a'));$(_0x168f('0x2b'))[_0x168f('0x2c')]()[_0x168f('0x2d')]('tomeo');$(_0x168f('0x2e'))[_0x168f('0x2c')]()[_0x168f('0x2d')]('sun');$(_0x168f('0x2f'))[_0x168f('0x2d')](_0x168f('0x30'));- // @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");
  • var _0x14b8=['contents','.entry-text','td:lt(2)','wrapAll','children','length','.entry-text\x20span','removeClass','querySelectorAll','.entry-text\x20b,.entry-text\x20i,.entry-text\x20font,.entry-text\x20u,.entry-text\x20em','fbi','.entry-text\x20a:not([href])','unwrap','.fbi','wrap','.entry-text\x20span>span','.entry-text\x20span>br','parent','test','nodeValue','div_br','//div[@class=\x22entry-text\x22]//div[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]|//div[@class=\x22entry-text\x22]//div[./span[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]]','l_yoko','//div[@class=\x22entry-text\x22]//*[self::div\x20or\x20self::p]/br[not(./preceding-sibling::*)\x20and\x20string-length(./preceding-sibling::text())<1]','.br_first','<div\x20class=\x27div_br\x27></div>','.entry-text\x20div>div,.entry-text\x20p>div,.entry-text\x20div>p','filter','<span\x20class=\x27n_text\x27></span>','.entry-text\x20span:empty','remove','.entry-text\x20div+br','//div[@class=\x22entry-text\x22]/*[not(@class=\x22div_br\x22)\x20and\x20not(self::td)][last()]','node_last','.node_last~td','prev','addClass','.l_yoko','.entry-text>a[href*=\x22/image-\x22],.entry-text>amp-youtube,.entry-text>amp-iframe','i_pic','evaluate','//div[@class=\x22entry-text\x22]//td/ancestor::*[./ancestor::div[@class=\x22entry-text\x22]]','snapshotLength','snapshotItem','classList','add','anc','.anc','replaceWith'];(function(_0x5342cf,_0x4ff52f){var _0x52967d=function(_0x473d1f){while(--_0x473d1f){_0x5342cf['push'](_0x5342cf['shift']());}};_0x52967d(++_0x4ff52f);}(_0x14b8,0xbb));var _0x168f=function(_0x91f419,_0x397727){_0x91f419=_0x91f419-0x0;var _0x415e15=_0x14b8[_0x91f419];return _0x415e15;};var result2=document[_0x168f('0x0')](_0x168f('0x1'),document,null,0x7,null);for(var i=0x0;i<result2[_0x168f('0x2')];i++){result2[_0x168f('0x3')](i)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x6'));}$(_0x168f('0x7'))[_0x168f('0x8')](function(){return $(this)[_0x168f('0x9')]();});$(function(){do{$(_0x168f('0xa'))['children'](_0x168f('0xb'))[_0x168f('0xc')]('<div\x20class=\x22tb_cell\x22></div>');}while($(_0x168f('0xa'))[_0x168f('0xd')]('td')[_0x168f('0xe')]);});$(_0x168f('0xf'))[_0x168f('0x10')]();var listArray3=document[_0x168f('0x11')](_0x168f('0x12'));for(var k=0x0;k<listArray3[_0x168f('0xe')];k++){listArray3[k][_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x13'));}$(_0x168f('0x14'))[_0x168f('0x9')]()[_0x168f('0x15')]();$(_0x168f('0x16'))[_0x168f('0x17')]('<span\x20class=\x27s_fbi\x27></span>');$(_0x168f('0x16'))['contents']()[_0x168f('0x15')]();$(_0x168f('0x18'))['parent']()[_0x168f('0x9')]()[_0x168f('0x15')]();$(_0x168f('0x19'))[_0x168f('0x1a')]()['contents']()[_0x168f('0x15')]();var result5=document[_0x168f('0x0')]('//div[@class=\x22entry-text\x22]//text()',document,null,0x7,null);for(var b=0x0;b<result5[_0x168f('0x2')];b++){if(/^\s+$/g[_0x168f('0x1b')](result5['snapshotItem'](b)[_0x168f('0x1c')])){if(/ /g['test'](result5[_0x168f('0x3')](b)[_0x168f('0x1c')])){result5[_0x168f('0x3')](b)[_0x168f('0x1c')]='\u3000';}else{result5[_0x168f('0x3')](b)['nodeValue']=result5[_0x168f('0x3')](b)[_0x168f('0x1c')]['replace'](/^\s+/g,'');}}}var result6=document[_0x168f('0x0')]('//div[@class=\x22entry-text\x22]//div[./text()=\x22\u3000\x22][not(./*)]|//div[@class=\x22entry-text\x22]//div[./span[./text()=\x22\u3000\x22][not(./*)]]',document,null,0x7,null);for(var c=0x0;c<result6[_0x168f('0x2')];c++){result6[_0x168f('0x3')](c)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x1d'));}var result4=document[_0x168f('0x0')](_0x168f('0x1e'),document,null,0x7,null);for(var a=0x0;a<result4[_0x168f('0x2')];a++){result4[_0x168f('0x3')](a)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x1f'));}var result=document[_0x168f('0x0')](_0x168f('0x20'),document,null,0x7,null);for(var x=0x0;x<result[_0x168f('0x2')];x++){result[_0x168f('0x3')](x)['classList']['add']('br_first');}$(_0x168f('0x21'))[_0x168f('0x17')](_0x168f('0x22'));$(_0x168f('0x23'))[_0x168f('0x1a')]()['contents']()['unwrap']();$(_0x168f('0xa'))[_0x168f('0x9')]()[_0x168f('0x24')](function(){return this['nodeType']===0x3;})[_0x168f('0x17')](_0x168f('0x25'));var listArray4=document[_0x168f('0x11')](_0x168f('0x26'));for(var l=0x0;l<listArray4[_0x168f('0xe')];l++){listArray4[l][_0x168f('0x27')]();}$(_0x168f('0x28'))['wrap'](_0x168f('0x22'));var result3=document[_0x168f('0x0')](_0x168f('0x29'),document,null,0x7,null);result3[_0x168f('0x3')](0x0)[_0x168f('0x4')][_0x168f('0x5')](_0x168f('0x2a'));$(_0x168f('0x2b'))[_0x168f('0x2c')]()[_0x168f('0x2d')]('tomeo');$(_0x168f('0x2e'))[_0x168f('0x2c')]()[_0x168f('0x2d')]('sun');$(_0x168f('0x2f'))[_0x168f('0x2d')](_0x168f('0x30'));
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。