1300

移行用のテストです

西野ブログ対策簡易版

// ==UserScript==
// @name         ameblo_lastbr
// @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
// ==/UserScript==
var result = document.evaluate('//div[@class="skin-entryBody"]/descendant::br', document, null, 7, null);
var result2 = document.evaluate('//link[@rel="canonical"]', document, null, 7, null);
if (result2.snapshotItem(0).href in localStorage) {
  var user_br = localStorage.getItem(result2.snapshotItem(0).href);
  for (var i = 0; i < user_br; i++) {
    result.snapshotItem(result.snapshotLength - (i + 1)).style.display = "none";
  }
} else {
  user_br = prompt("br消したい");
  localStorage.setItem(result2.snapshotItem(0).href, user_br);
  location.reload();
}
@-moz-document url-prefix("https://ameblo.jp/nishino-akihiro/entry") {
.skin-entryBody{margin:0;}
.js-blogGenreRank{display:none;}
.skin-entryHead{margin:0;}
.hashtag-module-wrapper{display:none;}
}