Created
October 3, 2015 23:43
-
-
Save RyuaNerin/335d718515c85ba5d64d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Filtering Bot Tweets | |
// | |
// By @RyuaNerin | |
var dropClient = [ "twittbot.net", "SaucerInfo", "TweetMag1c for Android", "REFLEC BEAT colette AC", "このまま眠りつづけて死ぬ", "ツイート数カウントくん", "占ぃったー", "うんこはにがくてうまい", "ツイ廃あらーと", "なるほどコカインマンじゃねーの", "リプライ数チェッカ", "ReflecInfo"]; | |
Array.prototype.Contains = function(s) | |
{ | |
for (var i = 0; i < this.length; ++i ) | |
if(this[i] == s) | |
return true; | |
return false; | |
}; | |
TwitterService.addEventListener("preFilterProcessTimelineStatus", function(status) | |
{ | |
return !status.retweeted && dropClient.Contains(status.source); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment