下面的html是Clicky.com主頁儀表板的精簡版本,我期待隱藏論壇div
標籤總共有一個H4
標籤,其中包含短語「Clicky論壇」。根據H4標記中包含的特定文本隱藏div
<div class="fl small nounderline nowrap">
<h4 class="inline">Clicky Forums</h4>
<a class="no-ajax" href="/forums/">See more...</a>
<br>
<span class="">Sep 6</span>
<a class="no-ajax" href="http://clicky.com/forums/?id=18929">Adding goal to form submission javascrip...</a>
<br>
<span class="">Sep 5</span>
<a class="no-ajax" href="http://clicky.com/forums/?id=18928">no show visitor statistic</a>
<br>
<span class="">Sep 3</span>
<a class="no-ajax" href="http://clicky.com/forums/?id=18924">Number of new visitors per url in a spec...</a>
<br>
</div>
[求助與隱藏DIV標籤,基於文本內容,使用Greasemonkey](https://stackoverflow.com/a/6921491) – wOxxOm