Created
October 13, 2013 14:58
-
-
Save polamjag/6963257 to your computer and use it in GitHub Desktop.
ツイートのユニークURLをPocketに追加する #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 :add_tweet_to_pocket do | |
command(:add_tweet_to_pocket, | |
name: "ツイートのユニークURLをPocketに追加", | |
condition: Plugin::Command[:HasMessage], | |
visible: true, | |
role: :timeline) do |target| | |
target.messages.each do |mes| | |
Gtk::openurl("http://getpocket.com/saveclose?url=https%3A%2F%2Ftwitter.com%2F#{mes.idname}%2Fstatus%2F#{mes.id}") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment