Skip to content

Instantly share code, notes, and snippets.

@polamjag
Created October 13, 2013 14:58
Show Gist options
  • Save polamjag/6963257 to your computer and use it in GitHub Desktop.
Save polamjag/6963257 to your computer and use it in GitHub Desktop.
ツイートのユニークURLをPocketに追加する #mikutter プラグイン
# -*- 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