@@ -63,7 +63,7 @@
$('.l_yoko.l_tate').removeClass("l_tate");
$('.div_br:not(.i_pad):not(.kabuse)+.e+.div_br:not(.i_pad):not(.furi):not(.sun)').prev().addClass("solo");
$('.l_tate.solo').removeClass("solo");
-$('.solo+.div_br+.solo,.solo+.div_br+.div_br+.solo').removeClass("solo");
+$('.solo+.div_br+.solo,.solo+.div_br+.div_br+.solo').addClass("solo_ren");
$('.i_pic').css('opacity','1');
$("a.i_pic").mouseover(function () {
$(this).animate({
// ==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>.i_pic+.div_br').addClass("i_pad");
$('.skin-entryBody>.i_pic').prev().addClass("i_pad");
var listArray6 = document.querySelectorAll('.i_pad:not(.div_br)');
for (var n = 0; n < listArray6.length; n++) {
listArray6[n].classList.remove("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");
for (var i = 0; i < $('iframe.i_pic').length; i++) {
$('iframe.i_pic').eq(i).after('<a href="' + $('iframe.i_pic').eq(i).attr("src") + '">動画リンク</a>');
}
$("iframe.i_pic").wrap("<div class='iframe-wrap'></div>");
$("#entryBody>*>span").contents().unwrap();
for (var j = 0; j < $("#entryBody>*:not(.div_br)").length; j++) {
if ($("#entryBody>*:not(.div_br)").eq(j).text().length < 64) {
if ($("#entryBody>*:not(.div_br)").eq(j).text().length > 0) {
$("#entryBody>*:not(.div_br)").eq(j).addClass("e");
}
}
}
$('.n_fbi.e,.n_text.e,#entryBody>a:not(.i_pic):not(.movie_link).e').addClass("n_ren");
$(".skin-entryBody *:contains('━')").html(function (_, html) {
return html.replace(/(━+)/g, '<span>$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:not(.i_pad):not(.kabuse)+.e+.div_br:not(.i_pad):not(.furi):not(.sun)').prev().addClass("solo");
$('.l_tate.solo').removeClass("solo");
$('.solo+.div_br+.solo,.solo+.div_br+.div_br+.solo').addClass("solo_ren");
$('.i_pic').css('opacity','1');
$("a.i_pic").mouseover(function () {
$(this).animate({
opacity: "toggle",
}, 3000);
});
$("iframe.i_pic").mouseover(function () {
$(this).animate({
opacity: "toggle",
}, 10000);
});
$("a.i_pic").mouseout(function () {
$(this).stop();
});
$("iframe.i_pic").mouseout(function () {
$(this).stop();
var tmp = $(this).css('display');
if (tmp == "none") {
$(this).parent().css('display', 'none');
}
});
var result5 = document.evaluate('id("entryBody")//a[./img]/following-sibling::div[1][./a[contains(@href,"silkhat.yoshimoto.co.jp/projects/883")]][string-length(./text())<2]', document, null, 7, null);
for (var g = 0; g < result5.snapshotLength; g++) {
result5.snapshotItem(g).classList.add("ad_link");
}