Skip to content

Instantly share code, notes, and snippets.

@cobodo
Forked from penguin2716/open_favstar_of_tweet.rb
Last active October 14, 2016 14:06
Show Gist options
  • Save cobodo/598afa767b83e13910b2f5a29e3f3f45 to your computer and use it in GitHub Desktop.
Save cobodo/598afa767b83e13910b2f5a29e3f3f45 to your computer and use it in GitHub Desktop.
選択されたTweetをブラウザで見るmikutterプラグイン
# -*- coding: utf-8 -*-
# statusを開く
Plugin.create :open_status do
command(:open_status,
name: 'このTweetをブラウザで見る',
condition: Plugin::Command[:HasMessage],
visible: true,
role: :timeline) do |opt|
opt.messages.each do |m|
Gtk.openurl("https://twitter.com/#{m.user.idname}/status/#{m.id}")
end
end
end
@cobodo
Copy link
Author

cobodo commented Oct 14, 2016

なぜ途中でバイナリになったのか……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment