// ==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');
for (var k = 0; k < listArray3.length; k++) {
listArray3[k].classList.add("fbi");
}
var result = document.evaluate('//div[@class="skin-entryBody"]//div[./br[not(./following-sibling::node() or ./preceding-sibling::node())]]', document, null, 7, null);
for (var x = 0; x < result.snapshotLength; x++) {
result.snapshotItem(x).classList.add("div_br");
}
var result2 = document.evaluate('//*[@class="fbi"]/br[not(./preceding-sibling::* or ./following-sibling::*)]', document, null, 7, null);
for (var y = 0; y < result2.snapshotLength; y++) {
result2.snapshotItem(y).remove();
}
var result3 = document.evaluate('//div[@class="skin-entryBody"]/div[not(@class="div_br")][last()]', document, null, 7, null);
for (var z = 0; z < result3.snapshotLength; z++) {
result3.snapshotItem(z).classList.add("div_last");
}