1300

移行用のテストです

西野ブログメモ

http://let.hatelabo.jp/jigendaddy/let/hJmd2Myfq_we.js

// ==UserScript==
// @name         nishino_ameblo_fbi
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://ameblo.jp/nishino-akihiro/entry*
// @grant        none
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
// ==/UserScript==
var result = document.evaluate('//div[@class="skin-entryBody" or @class="entry-text"]//*[self::font or self::b or self::i]', document, null, 7, null);
for (var i = 0; i < result.snapshotLength; i++) {
  result.snapshotItem(i).classList.add("fbi");
}
$('.fbi').replaceWith(function () {
  return $(this).contents();
});
var result2 = document.evaluate('//div[@class="skin-entryBody" or @class="entry-text"]//*', document, null, 7, null);
for (var j = 0; j < result2.snapshotLength; j++) {
  result2.snapshotItem(j).removeAttribute('style');
}
var result3 = document.evaluate('//div[@class="skin-entryBody" or @class="entry-text"]//div[contains(text(),"━")]', document, null, 7, null);
for (var k = 0; k < result3.snapshotLength; k++) {
  result3.snapshotItem(k).classList.add("div_yoko");
}
var result4 = document.evaluate('//div[@class="skin-entryBody" or @class="entry-text"]//div[not(@class) or @id][./*[contains(@class,"div_yoko")][last()][not(./following-sibling::node())]]', document, null, 7, null);
for (var x = 0; x < result4.snapshotLength; x++) {
  result4.snapshotItem(x).classList.add("child_yoko_last");
}
.div_yoko+.div_br{display:none;}
.child_yoko_last+.div_br{display:none;}
.div_yoko+div:not(.div_br)>.div_br:first-child{display:none;}