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 :unko_moll do | |
on_appear do |ms| | |
ms.each do |m| | |
if !m.retweet? && m.user.to_s != Service.primary.user.to_s && m.message.to_s =~ /💩ウンコモル💩/ | |
m.favorite | |
Service.primary.post :message => "💩ウンコモル💩" | |
end | |
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 -*- | |
require 'rexml/document' | |
require 'open-uri' | |
Plugin.create(:mikutter_inmu_filter) do | |
filter_show_filter do |msgs| | |
msgs = msgs.select do |item| | |
if item.to_s =~ /(sm\d+)/ | |
video = "http://i.nicovideo.jp/v3/video.array?v=" + $1 | |
doc = REXML::Document.new(open(video)) |
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 -*- | |
require 'gtk2' | |
module Gtk | |
class PostBox | |
class PostToPrimaryService | |
def post(*args, &proc) | |
if args[0][:message] =~ /.+(,|,|、).+(感じ|ところ)だ?(。|.|\.)?/ | |
d = Dialog.new |
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
// 女児アニメかどうかを判定するやつ | |
// | |
// MITライセンス | |
// | |
// C++11 | |
// OpenCV 2.4.9 | |
// | |
// 使用した顔検出用学習データ | |
// lbpcascade_animeface | |
// https://github.com/nagadomi/lbpcascade_animeface |
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 -*- | |
# | |
# Copyright (c) 2015 suna-pan | |
# Released under the MIT license | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# 参考:mikutter/core/plugin/display_requirements/display_requirements.rb | |
# |
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
class NullcholFuck | |
def initialize(prog) | |
@program = [] | |
until prog.empty? | |
/^(あっ|えー|あの|えっと|その|…|、|。)(.*)/ =~ prog | |
raise "文法に誤りがあります." unless $1 | |
@program << $1 | |
prog = $2 | |
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(:mikutter_nolove_bars) do | |
on_boot do | |
@buf = Array.new | |
@id = 0 | |
end | |
on_appear do |msg| | |
msg.each do |m| |
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(:mikutter_exclude_rt) do | |
filter_show_filter do |msgs| | |
msgs = msgs.select{|m| not m.retweet?} | |
[msgs] | |
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(:mikutter_bbswitch) do | |
filter_gui_postbox_post do |postbox| | |
buf = ObjectSpace.each_object(Gtk::PostBox).to_a.first.widget_post.buffer | |
if buf.text =~ /^bbswitch/ then | |
on if buf.text =~ /on$/ | |
off if buf.text =~ /off$/ | |
state if buf.text =~ /state$/ | |
buf.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(:mikutter_unicode) do | |
filter_gui_postbox_post do |postbox| | |
text = Plugin.create(:gtk).widgetof(postbox).widget_post.buffer.text | |
text = text.unpack('U*').collect! do |i| | |
unless(i == 0xfffd) | |
[i].pack('U') | |
else | |
next |