1300

移行用のテストです

google_news_preview(searchpreview版)

var result = document.evaluate('//a[@class="hBookmark-widget-counter"]/img[1]',document, null, 7, null);
var result2 = document.evaluate('//a[@class="hBookmark-widget-counter"]',document, null, 7, null);
//var result2 = document.evaluate('//div[@class="g"]/div/a',document, null, 7, null);
for(var i=0;i<result.snapshotLength;i++)
{
    var n_url=result.snapshotItem(i).src;
    var n_train=n_url.split("/image/");
    //console.log(n_train[1]);
    var thum = document.createElement("img");
    thum.src="https://jp.searchpreview.de/preview?s="+n_train[1]+"&ua=Firefox&ver=1008&opts=1-1";
result2.snapshotItem(i).appendChild(thum);

}
.hBookmark-widget-counter img{display:none !important;}
.hBookmark-widget-counter img:nth-of-type(2){display:inline-block !important;}