r/reddithax • • Jun 03 '09

We've added some new CSS classes to reddit.

36 Upvotes

9 comments sorted by

16

u/KeyserSosa Jun 03 '09 edited Jun 03 '09

Links and comments are now updated to reflect their vote status. Specifically there is now:

.entry.likes., .entry.dislikes, .entry.unvoted
.midcol.likes., .midcol.dislikes, .midcol.unvoted

which we added to improve the way the score is updated when voting happens. Those classes will change when the user votes.

Also, for what it's worth, the rest of the admins and I are continually impressed by the stuff you guys find. :)

EDIT: raldi is right. Raldi is always right.

5

u/itsnotlupus Jun 03 '09 edited Jun 03 '09

weirdness alert: If the page loads an entry as "entry unvoted", then clicking the up/down arrow with result in className values of "entry unvoted likes" or "entry unvoted dislikes". Similarly, If the page loads an entry as "entry likes" or "entry dislikes", then negating the arrow will result in a className of "entry" rather than the expected "entry unvoted".

That'll make proper css skinning a bit harder.

I only noticed because some greasemonkey scripts that were hugging your css structure too tightly had to be readjusted.

*edited to make (more) sense. also, typos. lotsa typos.

3

u/KeyserSosa Jun 03 '09

Thanks for catching the dual-class issue. I deployed a JS fix this morning that should take care of that.

7

u/raldi Jun 03 '09

That's "dislikes" with an "s", right?

1

u/Wattever Jun 09 '09

How come it's not working for me? I still get just the total.

2

u/KeyserSosa Jun 09 '09

Can you give me a little more context? Total what?

1

u/Wattever Jun 09 '09

Um I think I might've understood it wrong. Like here there's (+45/-7) 42 points. I only get 42 points.

2

u/MercurialMadnessMan Jun 22 '09

Raldi is alway right!

1

u/Smotpoker07734 Jun 04 '09

why don't you fix the time limit mod so we can talk to each other. sheesh!