1300

移行用のテストです

勝間和代オフィシャルサイト オフィシャルメールマガジン広告対策

// ==UserScript==
// @name         katsumaweb_ad
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.katsumaweb.com/news.php?id=*
// @grant        none
// ==/UserScript==
document.body.innerHTML = document.body.innerHTML.split('---').join('<div class="ad">---</div>');
var result3 = document.evaluate('//div[@class="ad"]/following-sibling::node()', document, null, 7, null);
for (var k = 0; k < result3.snapshotLength; k++) {
  result3.snapshotItem(k).remove();
}
var result = document.evaluate('//div[@class="page_left"]//text()[string-length(normalize-space())>1]/following-sibling::br[1]', document, null, 7, null);
for (var i = 0; i < result.snapshotLength; i++) {
  result.snapshotItem(i).classList.add("br_first");
}
var listArray = document.querySelectorAll('.br_first+br:not(.br_first)+br:not(.br_first)');
for (var a = 0; a < listArray.length; a++) {
  listArray[a].classList.add("br_third");
}
var result2 = document.evaluate('//br[@class="br_third"]/following-sibling::node()', document, null, 7, null);
for (var j = 0; j < result2.snapshotLength; j++) {
  result2.snapshotItem(j).remove();
}
@-moz-document url-prefix("https://www.katsumaweb.com/news.php?id=") {
  .ad {
    display: none;
  }
  .back_btn2 {
    margin: 0;
  }
}