r/reddithax • • Jun 10 '14

Change reddit "username".

Not sure if this has been posted, but I have tried to search for it in this subreddit and found nothing. So, here it is.

Disclaimer: It only works on subreddits that have the CSS codes needed. Because, well every subreddit have their own CSS. So, it's basically a subreddit username.

The trick is to hide your real username under the .author and create a fake name on the :after. The code will sorta look like this:

.author[href$="your_real_username"]{
    font-size:0
}
.author[href$="/your_real_username"]:after{
    font-size:10px; /*or whatever you choose*/
    content:"This is your fake name";
    display:inline-block;
}

Basically, that will work. But the problem is if you use RES, it will highlight users that are either submitter or moderator or friend or admin. In that case you need to change its background too. And I believe you know to do it.

Cheers

17 Upvotes

10 comments sorted by

View all comments

Show parent comment

1

u/marssantoso Jun 11 '14

Yes.

This is the codes I'm using on you:

.author[href$="/CHEEZYSPAM"], 
.author.submitter[href$="/CHEEZYSPAM"], 
.author.userTagged[href$="/CHEEZYSPAM"],
.author.flairselectable[href$="/CHEEZYSPAM"] {
	font-size:0!important; 
}

.author[href$="/CHEEZYSPAM"]:after{
	font-size:10px;
	font-family:Helvetica,Arial,sans-serif;
	font-weight:300;
	content:"A Lab Rat";
	display:inline-block;
}

.author[href$="/CHEEZYSPAM"]:hover:after{text-decoration:underline;}

.thing .tagline .author.submitter[href$="/CHEEZYSPAM"], 
.thing .collapsed .author.gray.submitter[href$="/CHEEZYSPAM"],
.thing .tagline .author.submitter[href$="/CHEEZYSPAM"]:hover, 
.thing .collapsed .author.gray.submitter[href$="/CHEEZYSPAM"]:hover
	{background-color:white!important;}
	
.thing .tagline .author.submitter[href$="/CHEEZYSPAM"]:after{color:#2f5cb5;}
.thing .collapsed .author.gray.submitter[href$="/CHEEZYSPAM"]:after{color:#888;}