nishino_ameblo_only
by
jigendaddy
2021-01-25 [2021/01/25 11:00:42]
try to take over the world!
@@ -1,64 +1 @@
-// ==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('//div[@class="skin-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, "");
- }
- }
-}
-var listArray4 = document.querySelectorAll('.skin-entryBody div:empty');
-for (var l = 0; l < listArray4.length; l++) {
- listArray4[l].remove();
-}
-$('.fbi').wrap("<span class='s_fbi'></span>");
-$('.fbi').contents().unwrap();
-$('.skin-entryBody span>span').parent().contents().unwrap();
-$('.skin-entryBody span>br').parent().contents().unwrap();
-var result4 = document.evaluate('//div[@class="skin-entryBody"]//div[contains(text(),"━") or contains(text(),"==")]|//div[@class="skin-entryBody"]//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 result6 = document.evaluate('//div[@class="skin-entryBody"]//div[./text()=" "][not(./*)]|//div[@class="skin-entryBody"]//div[./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('//div[@class="skin-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").contents().filter(function () {
- return this.nodeType === 3;
-}).wrap("<span class='n_text'></span>");
-$(".skin-entryBody div+br").wrap("<div class='div_br'></div>");
-var result3 = document.evaluate('//div[@class="skin-entryBody"]/*[not(@class="div_br")][last()]', document, null, 7, null);
-result3.snapshotItem(0).classList.add("node_last");
-var result7 = document.evaluate('//*[contains(@class,"node_last")][string-length(.//text())<52 and not(.//table)]', document, null, 7, null);
-result7.snapshotItem(0).classList.add("tomeo");
+var _0xd4f1=['test','snapshotItem','nodeValue','replace','.skin-entryBody\x20div:empty','remove','.fbi','wrap','<span\x20class=\x27s_fbi\x27></span>','.skin-entryBody\x20span>span','contents','unwrap','parent','l_yoko','//div[@class=\x22skin-entryBody\x22]//div[./text()=\x22\u3000\x22][not(./*)]|//div[@class=\x22skin-entryBody\x22]//div[./span[./text()=\x22\u3000\x22][not(./*)]]','snapshotLength','div_br','//div[@class=\x22skin-entryBody\x22]//*[self::div\x20or\x20self::p]/br[not(./preceding-sibling::*)\x20and\x20string-length(./preceding-sibling::text())<1]','br_first','.br_first','.skin-entryBody\x20div>div,.skin-entryBody\x20p>div,.skin-entryBody\x20div>p','.skin-entryBody','.skin-entryBody\x20div+br','//div[@class=\x22skin-entryBody\x22]/*[not(@class=\x22div_br\x22)][last()]','node_last','//*[contains(@class,\x22node_last\x22)][string-length(.//text())<52\x20and\x20not(.//table)]','querySelectorAll','.skin-entryBody\x20*[style]','length','style','.skin-entryBody\x20font[color],.skin-entryBody\x20font[face]','removeAttribute','face','.skin-entryBody\x20b,.skin-entryBody\x20i,.skin-entryBody\x20font,.skin-entryBody\x20u','classList','add','fbi','evaluate','//div[@class=\x22skin-entryBody\x22]//text()'];(function(_0x4766f4,_0x30b80e){var _0x9ec92b=function(_0x3dfe14){while(--_0x3dfe14){_0x4766f4['push'](_0x4766f4['shift']());}};_0x9ec92b(++_0x30b80e);}(_0xd4f1,0x152));var _0x5d58=function(_0x4584aa,_0x53c4f0){_0x4584aa=_0x4584aa-0x0;var _0x7e2fd9=_0xd4f1[_0x4584aa];return _0x7e2fd9;};var listArray=document[_0x5d58('0x0')](_0x5d58('0x1'));for(var i=0x0;i<listArray[_0x5d58('0x2')];i++){listArray[i]['removeAttribute'](_0x5d58('0x3'));}var listArray2=document[_0x5d58('0x0')](_0x5d58('0x4'));for(var j=0x0;j<listArray2[_0x5d58('0x2')];j++){listArray2[j]['removeAttribute']('color');listArray2[j][_0x5d58('0x5')](_0x5d58('0x6'));}var listArray3=document[_0x5d58('0x0')](_0x5d58('0x7'));for(var k=0x0;k<listArray3[_0x5d58('0x2')];k++){listArray3[k][_0x5d58('0x8')][_0x5d58('0x9')](_0x5d58('0xa'));}var result5=document[_0x5d58('0xb')](_0x5d58('0xc'),document,null,0x7,null);for(var b=0x0;b<result5['snapshotLength'];b++){if(/^\s+$/g[_0x5d58('0xd')](result5[_0x5d58('0xe')](b)['nodeValue'])){if(/ /g['test'](result5[_0x5d58('0xe')](b)[_0x5d58('0xf')])){result5[_0x5d58('0xe')](b)[_0x5d58('0xf')]='\u3000';}else{result5['snapshotItem'](b)[_0x5d58('0xf')]=result5['snapshotItem'](b)[_0x5d58('0xf')][_0x5d58('0x10')](/^\s+/g,'');}}}var listArray4=document['querySelectorAll'](_0x5d58('0x11'));for(var l=0x0;l<listArray4[_0x5d58('0x2')];l++){listArray4[l][_0x5d58('0x12')]();}$(_0x5d58('0x13'))[_0x5d58('0x14')](_0x5d58('0x15'));$(_0x5d58('0x13'))['contents']()['unwrap']();$(_0x5d58('0x16'))['parent']()[_0x5d58('0x17')]()[_0x5d58('0x18')]();$('.skin-entryBody\x20span>br')[_0x5d58('0x19')]()['contents']()['unwrap']();var result4=document[_0x5d58('0xb')]('//div[@class=\x22skin-entryBody\x22]//div[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]|//div[@class=\x22skin-entryBody\x22]//div[./span[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]]',document,null,0x7,null);for(var a=0x0;a<result4['snapshotLength'];a++){result4[_0x5d58('0xe')](a)[_0x5d58('0x8')]['add'](_0x5d58('0x1a'));}var result6=document[_0x5d58('0xb')](_0x5d58('0x1b'),document,null,0x7,null);for(var c=0x0;c<result6[_0x5d58('0x1c')];c++){result6[_0x5d58('0xe')](c)[_0x5d58('0x8')][_0x5d58('0x9')](_0x5d58('0x1d'));}var result=document[_0x5d58('0xb')](_0x5d58('0x1e'),document,null,0x7,null);for(var x=0x0;x<result['snapshotLength'];x++){result['snapshotItem'](x)[_0x5d58('0x8')][_0x5d58('0x9')](_0x5d58('0x1f'));}$(_0x5d58('0x20'))[_0x5d58('0x14')]('<div\x20class=\x27div_br\x27></div>');$(_0x5d58('0x21'))[_0x5d58('0x19')]()['contents']()[_0x5d58('0x18')]();$(_0x5d58('0x22'))[_0x5d58('0x17')]()['filter'](function(){return this['nodeType']===0x3;})[_0x5d58('0x14')]('<span\x20class=\x27n_text\x27></span>');$(_0x5d58('0x23'))[_0x5d58('0x14')]('<div\x20class=\x27div_br\x27></div>');var result3=document[_0x5d58('0xb')](_0x5d58('0x24'),document,null,0x7,null);result3[_0x5d58('0xe')](0x0)['classList'][_0x5d58('0x9')](_0x5d58('0x25'));var result7=document[_0x5d58('0xb')](_0x5d58('0x26'),document,null,0x7,null);result7[_0x5d58('0xe')](0x0)[_0x5d58('0x8')][_0x5d58('0x9')]('tomeo');
var _0xd4f1=['test','snapshotItem','nodeValue','replace','.skin-entryBody\x20div:empty','remove','.fbi','wrap','<span\x20class=\x27s_fbi\x27></span>','.skin-entryBody\x20span>span','contents','unwrap','parent','l_yoko','//div[@class=\x22skin-entryBody\x22]//div[./text()=\x22\u3000\x22][not(./*)]|//div[@class=\x22skin-entryBody\x22]//div[./span[./text()=\x22\u3000\x22][not(./*)]]','snapshotLength','div_br','//div[@class=\x22skin-entryBody\x22]//*[self::div\x20or\x20self::p]/br[not(./preceding-sibling::*)\x20and\x20string-length(./preceding-sibling::text())<1]','br_first','.br_first','.skin-entryBody\x20div>div,.skin-entryBody\x20p>div,.skin-entryBody\x20div>p','.skin-entryBody','.skin-entryBody\x20div+br','//div[@class=\x22skin-entryBody\x22]/*[not(@class=\x22div_br\x22)][last()]','node_last','//*[contains(@class,\x22node_last\x22)][string-length(.//text())<52\x20and\x20not(.//table)]','querySelectorAll','.skin-entryBody\x20*[style]','length','style','.skin-entryBody\x20font[color],.skin-entryBody\x20font[face]','removeAttribute','face','.skin-entryBody\x20b,.skin-entryBody\x20i,.skin-entryBody\x20font,.skin-entryBody\x20u','classList','add','fbi','evaluate','//div[@class=\x22skin-entryBody\x22]//text()'];(function(_0x4766f4,_0x30b80e){var _0x9ec92b=function(_0x3dfe14){while(--_0x3dfe14){_0x4766f4['push'](_0x4766f4['shift']());}};_0x9ec92b(++_0x30b80e);}(_0xd4f1,0x152));var _0x5d58=function(_0x4584aa,_0x53c4f0){_0x4584aa=_0x4584aa-0x0;var _0x7e2fd9=_0xd4f1[_0x4584aa];return _0x7e2fd9;};var listArray=document[_0x5d58('0x0')](_0x5d58('0x1'));for(var i=0x0;i<listArray[_0x5d58('0x2')];i++){listArray[i]['removeAttribute'](_0x5d58('0x3'));}var listArray2=document[_0x5d58('0x0')](_0x5d58('0x4'));for(var j=0x0;j<listArray2[_0x5d58('0x2')];j++){listArray2[j]['removeAttribute']('color');listArray2[j][_0x5d58('0x5')](_0x5d58('0x6'));}var listArray3=document[_0x5d58('0x0')](_0x5d58('0x7'));for(var k=0x0;k<listArray3[_0x5d58('0x2')];k++){listArray3[k][_0x5d58('0x8')][_0x5d58('0x9')](_0x5d58('0xa'));}var result5=document[_0x5d58('0xb')](_0x5d58('0xc'),document,null,0x7,null);for(var b=0x0;b<result5['snapshotLength'];b++){if(/^\s+$/g[_0x5d58('0xd')](result5[_0x5d58('0xe')](b)['nodeValue'])){if(/ /g['test'](result5[_0x5d58('0xe')](b)[_0x5d58('0xf')])){result5[_0x5d58('0xe')](b)[_0x5d58('0xf')]='\u3000';}else{result5['snapshotItem'](b)[_0x5d58('0xf')]=result5['snapshotItem'](b)[_0x5d58('0xf')][_0x5d58('0x10')](/^\s+/g,'');}}}var listArray4=document['querySelectorAll'](_0x5d58('0x11'));for(var l=0x0;l<listArray4[_0x5d58('0x2')];l++){listArray4[l][_0x5d58('0x12')]();}$(_0x5d58('0x13'))[_0x5d58('0x14')](_0x5d58('0x15'));$(_0x5d58('0x13'))['contents']()['unwrap']();$(_0x5d58('0x16'))['parent']()[_0x5d58('0x17')]()[_0x5d58('0x18')]();$('.skin-entryBody\x20span>br')[_0x5d58('0x19')]()['contents']()['unwrap']();var result4=document[_0x5d58('0xb')]('//div[@class=\x22skin-entryBody\x22]//div[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]|//div[@class=\x22skin-entryBody\x22]//div[./span[contains(text(),\x22━\x22)\x20or\x20contains(text(),\x22==\x22)]]',document,null,0x7,null);for(var a=0x0;a<result4['snapshotLength'];a++){result4[_0x5d58('0xe')](a)[_0x5d58('0x8')]['add'](_0x5d58('0x1a'));}var result6=document[_0x5d58('0xb')](_0x5d58('0x1b'),document,null,0x7,null);for(var c=0x0;c<result6[_0x5d58('0x1c')];c++){result6[_0x5d58('0xe')](c)[_0x5d58('0x8')][_0x5d58('0x9')](_0x5d58('0x1d'));}var result=document[_0x5d58('0xb')](_0x5d58('0x1e'),document,null,0x7,null);for(var x=0x0;x<result['snapshotLength'];x++){result['snapshotItem'](x)[_0x5d58('0x8')][_0x5d58('0x9')](_0x5d58('0x1f'));}$(_0x5d58('0x20'))[_0x5d58('0x14')]('<div\x20class=\x27div_br\x27></div>');$(_0x5d58('0x21'))[_0x5d58('0x19')]()['contents']()[_0x5d58('0x18')]();$(_0x5d58('0x22'))[_0x5d58('0x17')]()['filter'](function(){return this['nodeType']===0x3;})[_0x5d58('0x14')]('<span\x20class=\x27n_text\x27></span>');$(_0x5d58('0x23'))[_0x5d58('0x14')]('<div\x20class=\x27div_br\x27></div>');var result3=document[_0x5d58('0xb')](_0x5d58('0x24'),document,null,0x7,null);result3[_0x5d58('0xe')](0x0)['classList'][_0x5d58('0x9')](_0x5d58('0x25'));var result7=document[_0x5d58('0xb')](_0x5d58('0x26'),document,null,0x7,null);result7[_0x5d58('0xe')](0x0)[_0x5d58('0x8')][_0x5d58('0x9')]('tomeo');
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。