Created
March 26, 2013 11:38
-
-
Save penguin2716/5244763 to your computer and use it in GitHub Desktop.
RTされたツイートだけを抽出するタブを追加するmikutterプラグイン
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
# -*- coding: utf-8 -*- | |
Plugin.create :extract_retweets do | |
tab(:extract_retweets, "RTされたツイートを抽出します") do | |
set_icon MUI::Skin.get("retweet.png") | |
timeline(:extract_retweets) | |
end | |
on_appear do |ms| | |
ms.each do |m| | |
if m.retweet? | |
m.retweet_source_d.next { |s| | |
timeline(:extract_retweets) << s | |
} | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment