我在这个网站上有一堆这个视频来源:
<li id="vidLink-1498229769" class="videoContainer vidLink">
<a href="/p/watch/1498229769:GM1ryG4eoTA6sMZV9wtDEpocuehpzDni">
<span class="content-video-thumb-hover"></span>
<img src="http://lockerz.vo.llnwd.net/o35/Lockerz/14/593/MEVIO-EmoGirlTV-SavesTheDay-TH1.jpg" id="clThumb_1498229769" class="videoThumb">
</a>
<a href="/p/watch/1498229769:GM1ryG4eoTA6sMZV9wtDEpocuehpzDni" class="videoTitle">Emo Girl TV - Saves the Day Interview</a>
<span class="PTZ-status PTZ-awarded">PTZ have been awarded for watching this video.</span>
是否可以隐藏整个id,vidlink - ***如果span类是那个部分?
<span class="PTZ-status PTZ-awarded">PTZ have been awarded for watching this video.</span>
我想要隐藏我在网站上看过的视频(带有greasemonkey),但我不知道如何...
答案 0 :(得分:3)
如果您尝试隐藏整个vidLink
,如果它包含.PTZ-status
,您可以这样做:
$('.vidLink:has(.PTZ-awarded)').hide();