# hatena_star.rb # Itoshi Nikaido # Distributed under the GPL @hatena_star_options = { 'token' => 'Token', 'star.image' => '.hatena-star-star-image', 'star.add' => '.hatena-star-add-button-image', 'comment.image' => '.hatena-star-comment-button-image' } add_header_proc do hatena_star = %Q|\t\n| hatena_star << %Q|\t\n| hatena_star << %Q|\t\n| end add_conf_proc( 'hatena_star', 'Hatena::Star' ) do if( @mode == 'saveconf' ) then @hatena_star_options.keys.each do |o| @conf["hatena_star.#{o}"] = @cgi.params["hatena_star.#{o}"][0].strip if @conf["hatena_star.#{o}"].length == 0 then @conf["hatena_star.#{o}"] = nil end end end <<-HTML

Token

Star Image (URL)

Add Star Image (URL)

Comment Image (URL)

HTML end