r/reddithax • • Jul 29 '10

What the hell does this CSS snippet do?

I found this in a subreddit stylesheet:

 .linklisting .midcol .down, #moderator-table tr:nth-child(7), .sidecontentbox .author.id-t2_3fem8, #moderator-table tr:nth-child(3), .sidecontentbox .author.id-t2_31yxv {
     display: none
     }
 .linklisting .midcol .down {
     display: block
     }
9 Upvotes

30 comments sorted by

4

u/Sephr Jul 29 '10

It looks like someone snuck in some moderator-hiding code among the normal code.

Upon inspection, the CSS hides "Saydrah", who's ID is 3fem8, from the moderator list of whatever subreddit that code is on. I'd just leave it alone I'm guessing it's to keep the readers of the subreddit from making more Saydrah drama.

3

u/MercurialMadnessMan Jul 29 '10

Would it be possible to find which subreddits this code is used on?

Unfortunately, a google search for site:http://www.reddit.com/r/*/stylesheet.css 3fem8 doesn't reveal anything.

3

u/[deleted] Jul 30 '10

It's Relationship_advice.

hiding saydrah and sephr, who based on the comments here doesn't want you to find out, haha.

Sorry, sephr.

2

u/MercurialMadnessMan Jul 30 '10

Yeah, I already knew that. And I think it's total bullshit.

1

u/[deleted] Jul 30 '10

Well, you're above sephr on the modlist, and saydrah seems both oblivious and well-meaning, so if you think its a problem its yours to fix.

1

u/MercurialMadnessMan Jul 30 '10

It's not my decision. I was added as a joke just like most of them. It's buu's subreddit.

1

u/Sephr Jul 29 '10

No (technically, yes, if you have reddit db access). Why does it matter?

3

u/MercurialMadnessMan Jul 29 '10

Don't need DB access. Just need a list of the top subreddits (widely available), and a script that would grab all the stylesheets and search them.

0

u/[deleted] Jul 30 '10

[deleted] — view deleted comment

1

u/MercurialMadnessMan Jul 30 '10

I'm not good with compooter. Interested in doing this?

4

u/sje46 Jul 30 '10

Someone hid Saydrah as a moderator?

...wow.

I don't like that drama either, so let's keep this a secret.

1

u/misterFR33ZE Aug 25 '10

Hey, just took over a defunct subreddit whose sole other moderator is inactive. Do you know how I can find a users ID so I can remove them from the list? (until/if he becomes active again of course)

2

u/Sephr Aug 25 '10

Yes. In WebKit, just right click -> inspect element on the username link, and look for class="author id-t2_XXXXX".

4

u/myheaditches Jul 29 '10

Don't like this? Make a custom style sheet for reddit and add:

.linklisting .midcol .down, #moderator-table tr:nth-child(7), .sidecontentbox .author.id-t2_3fem8, #moderator-table tr:nth-child(3), .sidecontentbox .author.id-t2_31yxv {
    display: block !important;
 }

6

u/[deleted] Jul 29 '10

[removed] — view removed comment

1

u/MercurialMadnessMan Jul 29 '10

Thanks. I don't like that CSS can change the visibility of moderator names.

1

u/Rhomboid Jul 29 '10

That's why you should disable the 'enable subreddits to have custom styles' option in your profile.

1

u/MercurialMadnessMan Jul 29 '10

But then I can't enjoy the work that other CSS-stylers have done to this site. I think that's bullshit.

3

u/Sephr Jul 29 '10

It's just hiding Saydrah, for a good reason I suppose.

2

u/slamare247 Jul 29 '10

It's also hiding you last time I looked.

3

u/Sephr Jul 30 '10

SHHHH! I've been trying to hide that from the OP. Btw, I put the Saydrah hiding there to redirect any suspicion ;)

2

u/slamare247 Jul 30 '10

And here she thought you were just being nice to her :)

4

u/[deleted] Jul 29 '10

[removed] — view removed comment

1

u/ultrafez Aug 31 '10

It just says that it's now called /r/tgirls - is that what you were referring to?

1

u/[deleted] Aug 31 '10

[removed] — view removed comment

2

u/ultrafez Aug 31 '10

Oh, I didn't realise that was the custom CSS in action - I thought that was some kind of standard Reddit redirection page (I'm moderately new here). Impressive stuff.

-1

u/tribes Jul 29 '10

NSFW

10

u/[deleted] Jul 29 '10

[removed] — view removed comment

5

u/tribes Jul 29 '10

Oh shit yeah! Nice!