Skip to content

Instantly share code, notes, and snippets.

@toshia
Created February 20, 2014 15:56
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 toshia/9116875 to your computer and use it in GitHub Desktop.
Save toshia/9116875 to your computer and use it in GitHub Desktop.
あっきぃが作ってたやつをちょっと変えてみた
# -*- coding: utf-8 -*-
Plugin.create(:mikutter_iconbyebye) do
ALTERNATIVE_IMAGE = "http://pbs.twimg.com/profile_images/434359790551068673/JTrPZYsz_normal.png".freeze
filter_show_filter do |messages|
replaced = messages.map do |message|
if UserConfig[:iconbyebye_sn].include? message.user[:idname]
message[:user] = Message::MessageUser.new(message.user, profile_image_url: ALTERNATIVE_IMAGE)
end
message
end
[replaced]
end
settings "アイコンバイバイ" do
multi "アイコンを見たくないユーザーのスクリーンネーム", :iconbyebye_sn
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment