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 :empty_majide_filter do | |
filter_gui_postbox_post do |gui_postbox| | |
text = Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text | |
if text =~ /^(@[a-zA-Z0-9_]+)\s*$/i | |
Plugin.create(:gtk).widgetof(gui_postbox).widget_post.buffer.text = $1 + " まっじで!" | |
end | |
[gui_postbox] | |
end |
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
#!/usr/bin/env ruby | |
#-*- coding: utf-8 -*- | |
# http:// から始まるURLをopenできるようにする | |
require 'open-uri' | |
# JSONをHashに変換するために必要 | |
require 'json' | |
# APIのベースとなるURL | |
BASE_URL = "http://zipcloud.ibsnet.co.jp/api/search?zipcode=" |
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 |
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 :extract_retweets do | |
tab(:extract_retweets, "RTされたツイートを抽出します") do | |
set_icon MUI::Skin.get("retweet.png") | |
timeline(:extract_retweets) | |
end | |
on_appear do |ms| |
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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import sys | |
class Message: | |
def to_bool(self, string): | |
if string == 'True': | |
return True |
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 :auto_unfav_enkunkun do | |
on_favorite do |service, user, msg| | |
if user == Service.primary.user and | |
msg.user.to_s == 'enkunkun' | |
msg.unfavorite | |
end | |
end |
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 :fill_postbox do | |
command(:fill_postbox, | |
name: '投稿ボックスを埋める', | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :postbox) do |opt| | |
str = Plugin.create(:gtk).widgetof(opt.widget).widget_post.buffer.text |
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 :qrust_score do | |
command(:qrust_score, | |
name: 'こいつのQrustのスコアを表示', | |
icon: "http://qru.st/favicon.ico", | |
condition: lambda{ |opt| true }, | |
visible: true, | |
role: :timeline) do |opt| |
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 :extract_teokure_users do | |
UserConfig[:teokure_users] ||= [] | |
tab(:teokure_users, "ておくれなユーザ") do | |
set_icon File.expand_path(File.join(File.dirname(__FILE__), "icon.png")) | |
timeline :teokure_users | |
end | |
on_appear do |ms| |