Skip to content

Instantly share code, notes, and snippets.

View pocke's full-sized avatar
⌨️
Pocke is typing...

Masataka Pocke Kuwabara pocke

⌨️
Pocke is typing...
View GitHub Profile
@pocke
pocke / gray_protected_users.rb
Last active September 30, 2016 14:50 — forked from penguin2716/gray_protected_users.rb
鍵垢のツイート背景をグレーにするmikutterプラグイン
#-*- coding: utf-8 -*-
Plugin.create :gray_protected_users do
UserConfig[:protected_users_background_color] ||= [0xcccc,0xcccc,0xcccc]
filter_message_background_color do | mp, array |
if mp.message.user[:protected] == true && !Service.services.map(&:user).include?(mp.message.user.idname)
array = UserConfig[:protected_users_background_color]
end
[mp, array]
end