追記2
まさかここを見てということでもないでしょうが、機能しないエントリがありましたので書き足しました。
var result = document.evaluate('//div[@class="article-body-inner"]/text()[string-length(normalize-space()) > 1][last()]/following-sibling::*[not(self::br or @id="ad2")]/following-sibling::br',document, null, 7, null); var result2 = document.evaluate('//div[@class="article-body-inner"]/text()[string-length(normalize-space()) > 1][last()]/following-sibling::br',document, null, 7, null); var result3 = document.evaluate('//div[@class="article-body-inner"]/div[./span[not(./text())]][last()]/following-sibling::div',document, null, 7, null); var result4 = document.evaluate('//div[@class="article-body-inner"]/div[./a][last()]/following-sibling::div[./span or ./br]',document, null, 7, null); for(var i=0;i<result.snapshotLength;i++) { result.snapshotItem(i).style.display="none"; } for(i=0;i<result2.snapshotLength;i++) { result2.snapshotItem(i).style.display="none"; } for(i=0;i<result3.snapshotLength;i++) { result3.snapshotItem(i).style.display="none"; } for(i=0;i<result4.snapshotLength;i++) { result4.snapshotItem(i).style.display="none"; }
@-moz-document url-prefix("http://lineblog.me/nishino/") { .article{padding:0;} .article-footer {margin:0;} .article-share-buttons {padding:0;} .article-body-inner table{display:none;} }
追記3
また気になって書き換えたので置いておきます
var result = document.evaluate('//div[@class="article-body-inner"]/descendant::text()[string-length(.)>5][not(./ancestor::a)][last()]/ancestor::div[not(@class or @style)][1]/following-sibling::div[not(./a or ./iframe)]',document, null, 7, null); for(var i=0;i<result.snapshotLength;i++) { result.snapshotItem(i).style.display="none"; }
@-moz-document url-prefix("https://lineblog.me/nishino/") { .article { padding: 0; margin-top: 0; } .article-header { margin: 0; } .article-footer { margin: 0; } .article-date { margin: 0; } .article-share-buttons { padding: 0; } .article-body-inner table { display: none; } #conversation-footer { display: none; } }