Created
March 29, 2013 14:10
-
-
Save penguin2716/5271088 to your computer and use it in GitHub Desktop.
「女帝ちゃん」を「山下さん」に変換してからポストする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 :translate_jotei_yamashita do | |
filter_gui_postbox_post do |gui_postbox| | |
str = Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text | |
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = str.gsub('女帝ちゃん','山下さん') | |
[gui_postbox] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment