Skip to content

Instantly share code, notes, and snippets.

View tsutsui's full-sized avatar

Izumi Tsutsui tsutsui

View GitHub Profile
@tsutsui
tsutsui / gray_protected_users.rb
Last active January 2, 2018 11:51 — 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
array = UserConfig[:protected_users_background_color]
end
[mp, array]
end