@@ -59,6 +59,7 @@
$(this).parent().toggleClass("main_10", cnt % 3 == 2);
$(this).parent().toggleClass("main_9", cnt % 3 == 0);
});
+$('a.i_pic,.i_pic>a').css('opacity','1');
$("a.i_pic,.i_pic>a").mouseover(function () {
$(this).animate({
opacity: "toggle",
// ==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 *>.i_pic').parent().addClass("i_pic");
$('.skin-entryBody .i_pic .i_pic').removeClass("i_pic");
$('.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");
$('*:not(.i_pad):not(.i_pic)+.div_br+.i_pad').prev().addClass("furi");
var result9 = document.evaluate('id("entryBody")/*[self::div or self::p][not(contains(@class,"div_br")) and not(contains(@class,"l_tate")) and not(contains(@class,"i_pic"))]', document, null, 7, null);
for (var f = 0; f < result9.snapshotLength; f++) {
result9.snapshotItem(f).classList.add("step1");
}
$('.step1>span').contents().unwrap();
var result7 = document.evaluate('//*[self::div or self::p][contains(@class,"step1")][not(./a) and not(./text()/following-sibling::text())][string-length(./text())<52 and string-length(./text())>0]', document, null, 7, null);
for (var d = 0; d < result7.snapshotLength; d++) {
result7.snapshotItem(d).classList.add("e");
}
$('.div_br:not(.i_pad):not(.sun)+.e+.div_br:not(.i_pad):not(.sun)').prev().addClass("solo");
$('.skin-entryBody>*').removeClass("step1");
$('.skin-entryBody>*:not(.node_last)').removeClass("e");
$(".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>');
});
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");
$('.l_yoko.l_tate').removeClass("l_tate");
var cnt = 0;
$('#main').click(function () {
cnt++;
$(this).parent().toggleClass("main_14", cnt % 3 == 1);
$(this).parent().toggleClass("main_10", cnt % 3 == 2);
$(this).parent().toggleClass("main_9", cnt % 3 == 0);
});
$('a.i_pic,.i_pic>a').css('opacity','1');
$("a.i_pic,.i_pic>a").mouseover(function () {
$(this).animate({
opacity: "toggle",
}, 3000);
});
$("a.i_pic,.i_pic>a").mouseout(function () {
$(this).stop();
});
var result5 = document.evaluate('id("entryBody")//a', document, null, 7, null);
for (var g = 0; g < result5.snapshotLength; g++) {
if (/^https:\/\/(gamp\.)?ameblo\.jp\/nishino-akihiro\/entry-\d+\.html$/g.test(result5.snapshotItem(g).href)) {
result5.snapshotItem(g).classList.add("entry_link");
}
}