Scriptish の一覧を表示するスクリプト
下記コメントがあったので作りました。
mo 2012/05/21 21:30
利用中の Greasemonkey を表示するスクリプト
Greasemonkey時代にはよく利用させていただきました。
最近Scriptishに移行したのですが、config.xmlが無いため一覧を作成できません。Scriptishでも利用中のスクリプト表示させる方法をご存じでしたらご教示ください。
echo-scriptish.rb
#!/usr/bin/ruby #$KCODE = 'SJIS' puts ARGV[0] while line=gets array = line.scan(/,"name\":\"(.+?)\",/) for i in 0..(array.size-1) print array[i],"\n" end end
使い方
echo-scriptish.rb ~/Library/Application\ Support/Firefox/Profiles/*.default/scriptish_scripts/scriptish-config.json
以上