はてなブックマークの検索結果からコメントないfavoritesの人を消すUserScript

// ==UserScript==
// @name         はてなブックマークの検索結果からコメントないfavoritesの人を消す
// @namespace    http://lai.so/
// @version      0.1
// @description  $name
// @author       laiso
// @match        http://b.hatena.ne.jp/search/*
// @grant        none
// ==/UserScript==

setTimeout(function() {
  $('ul.favorite li')
    .filter(function(){ return $(this).find('span.comment').text() === "" })
    .map(function(){ this.style.display = 'none' });
}, 3*1000);

いつもの感じのやつです

f:id:laiso:20150129125444p:plain

これがつらいので

f:id:laiso:20150129125443p:plain

こうする。

この部分非同期に挿入しているようでちゃんと書くのがめんどくさかったので3秒待って実行することにした。

Tampermonkey