Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
「よ」を「Yo」に書き換えてからツイートするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :mikutter_yo do
filter_gui_postbox_post do |gui_postbox|
text = Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text.gsub(/よ/, "Yo")
Service.primary.post :message => text
Plugin.call(:before_postbox_post, text)
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = ''
Plugin.filter_cancel!
end
end
@KOBA789

This comment has been minimized.

Copy link

@KOBA789 KOBA789 commented Jun 20, 2014

👎

@enkunkun

This comment has been minimized.

Copy link

@enkunkun enkunkun commented Jun 20, 2014

👍

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