Skip to content

Instantly share code, notes, and snippets.

@RyuaNerin
Created October 3, 2015 23:38
Show Gist options
  • Save RyuaNerin/7547f660dec479eacd17 to your computer and use it in GitHub Desktop.
Save RyuaNerin/7547f660dec479eacd17 to your computer and use it in GitHub Desktop.
var myid = TwitterService.currentUser.id;
// 유저 아이디를 " 으로 감싸서 넣으면 됨 , 으로 구분
var dropUser = [ "" ];
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
? dropUser.Contains(status.retweeted_by)
: (status.in_reply_to_status_id != myid && dropUser.Contains(status.user.screen_name));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment