Created
May 11, 2015 19:08
-
-
Save 844196/04b999601e50ad35cc4f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Plugin.create(:view_on_web) do | |
command(:view_on_web, | |
name: 'View on Web Twitter', | |
condition: Plugin::Command[:HasMessage], | |
icon: Skin.get("forward.png"), | |
visible: true, | |
role: :timeline) do |m| | |
m.messages.map do |msg| | |
Gtk::openurl("http://twitter.com/#{msg.message.user.idname}/status/#{msg.message[:id]}") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment