Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Created March 26, 2013 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/5244763 to your computer and use it in GitHub Desktop.
Save penguin2716/5244763 to your computer and use it in GitHub Desktop.
RTされたツイートだけを抽出するタブを追加するmikutterプラグイン
# -*- 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