2015-07-09 17 views
2
刪除微博

到目前爲止,我有這樣的代碼:少於3轉推與Greasemonkey的

$('.js-stream-item:has(span.ProfileTweet-action--retweet:has(span.ProfileTweet-actionCount[data-tweet-stat-count="0"]))').toggle(); 

它工作正常,但只有0銳推刪除微博,我該如何使用屬性「數據鳴叫,stat-計數「的條件?

在此先感謝。

回答

1

我想你可以做這樣的事情:

$('div.stream-item-footer:has(span.action-retweet:has(span.actionCount))').filter(function() { 
    return parseInt($(this).find('span.actionCount').attr('data-tweet-stat-count')) >= 3; 
}).toggle(); 
+1

它可以完美的男人,非常感謝你! – Enma1011

+1

不適用於我=/ – computerguy

+0

@computerguy檢查我的最後一個問題的布洛克亞當斯的答案,使用該代碼,這裏是鏈接:http://stackoverflow.com/questions/32062362/how-to-convert-a-jquery -filter換用與 - waitforkeyelements/32062715#32062715 – Enma1011