Skip to content

Instantly share code, notes, and snippets.

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 moguno/5f101838cd7d3db8f8794c83f3b7b06f to your computer and use it in GitHub Desktop.
Save moguno/5f101838cd7d3db8f8794c83f3b7b06f to your computer and use it in GitHub Desktop.
Plugin.create(:"mikutter-んほぉぉ!イッぐぅぅ!!") {
on_gui_timeline_add_messages { |widget, messages|
Thread.new {
messages.each { |_|
message = _.message.to_s.gsub("\n", "")
if (message =~ /\&lt\;script/) && (message =~ /alert\(\"([^\"]+)\"\)/)
んほぉぉ! = $1
Delayer.new {
::Gtk::Dialog.confirm(んほぉぉ!)
}
end
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment