@@ -10,17 +10,15 @@
// ==/UserScript==
$('.skin-entryBody>div>table').parent().addClass("div_table");
$('.l_yoko').prev().addClass("sun");
-$('.skin-entryBody>iframe+.div_br').addClass("i_pad");
-$('.skin-entryBody>a>img').parent().addClass("a_img");
-var result8 = document.evaluate('//div[@class="skin-entryBody"]/a[./img]/following-sibling::*[1][@class="div_br"]', document, null, 7, null);
-for (var e = 0; e < result8.snapshotLength; e++) {
- result8.snapshotItem(e).classList.add("i_pad");
+$('.skin-entryBody>iframe,.skin-entryBody>.div_table').addClass("i_pic");
+$('.skin-entryBody>a>img').parent().addClass("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");
}
-var result9 = document.evaluate('//div[@class="div_br"][./following-sibling::*[1][./img or self::iframe]]', document, null, 7, null);
-for (var f = 0; f < result9.snapshotLength; f++) {
- result9.snapshotItem(f).classList.add("i_pad");
-}
-$('iframe+.i_pad+iframe,iframe+.i_pad+.a_img,.a_img+.i_pad+iframe,.a_img+.i_pad+.a_img,.i_pad+.div_table').prev().removeClass("i_pad");
+$('.i_pic+.i_pad+.i_pic').prev().removeClass("i_pad");
var result7 = document.evaluate('//div[@class="skin-entryBody"]/*[not(self::iframe) and not(./*)][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");