def output_favorites(target, threshold)
favorites = parse("http://favotter.matope.com/user.php?user=#{target}&threshold=#{threshold}")
public_storage[:favorited_ids].clear
alphabet = '$a'
max_amount_width = favorites.map {|f| now = f[2].to_s.size }.max
favorites.reverse.each do |id, text, amount, users|
public_storage[:favorited_ids][alphabet] = id
color = fav_color(amount)
fav = "fav#{amount == 1 ? '' : 's'}"
favorites_info = "(#{amount} #{fav})".rjust(max_amount_width + 7)
format = "<GREEN>#{favorites_info} #{alphabet}</GREEN> <YELLOW>%s</YELLOW>: <#{color}>%s</#{color}>"
values = [users.join(', '), CGI.escape(text)]
puts CGI.unescape(TermColor.parse(format % values ))
alphabet.succ!
end
end