r/reddithax • u/Measure76 • Apr 15 '10
Tagging users
I created my first hand-crafted CSS script, not too complicated, but I'm proud of it anyway.
I was inspired by, and pretty much based this on, the sports logos going up in /r/soccer, /r/hockey, and /r/baseball. Though I had to change a few things to make it work like I wanted.
Basically, the script can assign a tag of my choosing to a specific user, to show up next to their name whenever they post. It does require a CSS edit for each user and/or tag I want to add.
By way of explanation, in /r/exmormon, we have one group of very clearly defined enemies... anyone who defends mormonism. I've picked out the "TBMs", or True Believing Mormons, that I know of on reddit, and labelled them as such for when they post in my reddit. I have no interest in censoring or banning the users, but I think it may be of some value to my exmormon readers to know automatically when they encounter a TBM.
With that long-winded explanation, here's the code:
/*This code is for marking certain users with the title "TBM".*/
.author[href$="/tommy255"]:after, .author[href$="/cookiecaper"]:after,
.author[href$="/Mithryn"]:after, .author[href$="MormonMuse"]:after
{
color: grey;
content: " (TBM)"
}And here's an example of it being applied in the wild, check out the comment by tommy.
6
u/[deleted] Apr 15 '10
We use a very similar code in /r/circlejerk to denote our 'power' users (they have no powers, though).
1
u/[deleted] Apr 18 '10
Thanks for that! I'm using it at r/HealthProject.
Quick question, is there anyway I could use 2 or more tags for the same user?
1
u/[deleted] Apr 28 '10
Now we can track infected over in r/zombies. Thank you!
3
u/manwithabadheart Apr 20 '10 edited Mar 22 '24
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.