What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

Currently I need to go to Winterbash and click on each of the hats I have earned then manually count all the sites I have earned each one. This takes some time, and I don't have that many fingers and toes.

Can we have a view which gives the number of each hat earned?

share|improve this question
1  
I don't think there's currently a way to do it directly, but I plan on writing a Greasemonkey script along these lines when I get home tonight. –  Polynomial Dec 19 '12 at 16:56
    
@Polynomial it would be better if we could have this… If Stackoverflow provided it. –  kmkaplan Dec 19 '12 at 17:04
    
@kmkaplan It would be, but I'll write something up anyway ;) –  Polynomial Dec 19 '12 at 18:24

1 Answer 1

up vote 11 down vote accepted
+100

As promised, I've written a Greasemonkey script to do this.

Hat summary

On the front page of Winter Bash, you'll see a small box saying "detailed list". Clicking on this begins the loading process, which involves an Ajax call per hat. From there you'll get a nice list of hats, with a list of sites you've unlocked the hat on and a total count.

Features:

  • Simple code, should be easy to modify.
  • Loading via ajax, with loading percentage shown.
  • Works with all hats displayed on the page. If you unlock any "super secret" hats, it should include those too.
  • Creative Commons licensed.

This has been tested on Firefox, but may also work on Chrome. If you run into any bugs or have any other ideas, let me know!


Version 1.11 released

  • Removed stupid debug text from page that I forgot to remove on release.

Version 1.10 released

  • Replaced spans with a table.
  • Fixed wrapping issue when a badge was earned on a large numbers of sites (thanks Gilles!)
  • Added a trick with text-indent and padding to keep left align relatively neat.
  • Added mouse-over highlighting to rows.
share|improve this answer
2  
dude - this rocks! –  Rory Alsop Dec 19 '12 at 20:52
    
Well I have to find something to do with my evenings! –  Polynomial Dec 19 '12 at 20:53
    
This is arguably more useful than my WInter Bash userscript :-D –  The Unhandled Exception Dec 19 '12 at 20:55
3  
@TheUnhandledException Arguably? Indubitably. :P –  Aarthi Dec 19 '12 at 20:58
    
Upvoted. Though I’d still rather have Stack Exchange provide the functionnality. –  kmkaplan Dec 19 '12 at 22:19
1  
I have tested it on Chrome, and it works, but sometimes you need to navigate away from Winterbash and come back to it, especially if you have more than one tab open with winterbash –  Rory Alsop Dec 20 '12 at 0:18
    
Nice. On Chrome (I haven't tried Firefox), the alignment is all wonky when the list of sites exceeds the available horizontal space: i.stack.imgur.com/tPc7T.png –  Gilles Dec 31 '12 at 0:08
    
@Gilles Yup, that'll happen if you end up with lots of sites on one line. I'll look into it. –  Polynomial Dec 31 '12 at 0:09
    
@Gilles Fixed, and I've added a few improvements too. –  Polynomial Dec 31 '12 at 0:36
    
Thanks. You forgot to remove “Testing 1, Testing 2”. –  Gilles Dec 31 '12 at 1:00
1  
Haha, whoops! Will remove them. –  Polynomial Dec 31 '12 at 1:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .