Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Last active December 15, 2015 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/5181630 to your computer and use it in GitHub Desktop.
Save penguin2716/5181630 to your computer and use it in GitHub Desktop.
すべてのツイートを匿名にするmikutterプラグイン
# -*- coding: utf-8 -*-
Plugin.create :anonymous do
UserConfig[:anonymous_all_tweets] ||= false
filter_show_filter do |msgs|
if UserConfig[:anonymous_all_tweets]
msgs.map!{|m| Message.new(:message => m[:message], :system => true) }
end
[msgs]
end
settings "ツイートの匿名化" do
boolean "ツイートの匿名化を有効にする", :anonymous_all_tweets
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment