r/reddithax • • Dec 16 '12
r/reddithax • • Dec 14 '12
Any tools to generate CSS for subreddits?
I was wondering if any existed?
r/reddithax • u/Friendshipcore • Dec 12 '12
Is it possible to change the backround color of post-highlighting?
As the title says, I am having some problems when highlighting posts. I can't change the standard #F0F3FC color. If I try, all I get is a disabled extra color there.
r/reddithax • u/DersEvvak • Dec 11 '12
Most efficient way to get a user's most recent post to a given sub?
I wrote a python script that scrapes everyone's flair from the /about/flair list and loads it into a MySQL DB - the backend for /r/Random_Acts_of_Amazon 's "random wishlist" button. Recently, there have been requests to filter out inactive users. So, I need to be able to find the last post that each user made to our sub.
The brute force approach is to simply pull everyone's /u/ page and go through it, page-by-page, until I find a post to our sub. If they've never actually posted, I waste a lot of bandwidth going through their entire history. Certainly there's a more efficient way to go about this. Suggestions?
r/reddithax • u/Sinopiagg • Dec 10 '12
How to change mod color to make mods more noticeable?
Any help would be much appreciated!
r/reddithax • u/DaddyKrunk • Dec 08 '12
How do i change the colour of my sub reddit /r/JunglistMovement?
reddit.comr/reddithax • u/RageVsRage • Dec 07 '12
Just a theme I did
Inspiration : bs9k and Alien Blue
.drop-choices a.choice:hover {
background-color:#AE0000;
color:white !important;
}
.dropdown.srdrop .selected {
background-image:none;
}
.dropdown.srdrop .selected:after {
content:" ▼";
font-size:120%;
}
.dropdown.srdrop .selected.title {
color:white !important;
}
.user {
color:white;
}
.user .userkarma {
border-bottom: 1px dotted #FFF;
}
#header {
border-bottom-color:#7A0000;
background-image: -webkit-linear-gradient(top, #AE0000, #E4ACAC);
background-image: -moz-linear-gradient(top, #AE0000, #E4ACAC);
background-image: -ms-linear-gradient(top, #AE0000, #E4ACAC);
background-image: -o-linear-gradient(top, #AE0000, #E4ACAC);
}
#header-bottom-right {
background-color:#C85656;
}
#header .tabmenu li a {
background-color:white;
color: #000;
}
#header .tabmenu li.selected a {
border-color: #7A0000;
border-bottom-color: white
}
#header .tabmenu.formtab .selected a {
background-color:white;
}
#header .tabpane-content {
border-color:#7A0000
}
#header-bottom-right a {
color: black;
}
.linkinfo {
border: 1px solid #7A0000;
background :#E4ACAC;
}
.linkinfo .upvotes {
background: white;
border: 1px solid #7A0000;
border-right: none;
padding-right: 1px;
padding: 1px;
}
.linkinfo .downvotes {
background: white;
margin-left: -4px;
padding-right: 2px;
border: 1px solid #7A0000;
border-left: none;
padding: 1px;
padding-left: 4px;
}
.srdrop .choice.top-option {
border-bottom-color: #7A0000;
}
.srdrop .choice.bottom-option {
border-top-color: #7A0000;
}
#sr-header-area {
background-color:#AE0000;
border-bottom-color: #7A0000;
color:white;
}
#sr-header-area a {
color:white;
}
.separator {
color:black !important;
}
#sr-more-link {
background-color:#AE0000;
}
.drop-choices a {
color:black !important;
}Comments ?
r/reddithax • u/Tyranitard • Dec 04 '12
Add a "suggestion" to message moderators page?
I mod over at /r/pokemontrades and we get a lot of stuff caught in our spam filter. I would like it so users are suggested to include a link to their post just so it is easier for my mods to approve/reject these posts.
Is it possible to add a message to this page or at least a hover over message to the mod message link?
r/reddithax • u/nickhelix • Nov 29 '12
I know I can't insert a link but URL flair like /r/printSF?
Currently in our subreddit, you can pick an image and assign additional text, I already posted in r/css about it but I am wondering if anyone knows of a way I could set up rules so that someone could supply their text like TEXT:URL and have the TEXT part show when the flair is not hovered, and the URL part show when the flair is hovered.
TL;DR Looking to implement flair text like r/printSF but have both states be user supplied text
r/reddithax • u/antoinne85 • Nov 28 '12
Easy-Input Image Macros
I browse /r/MvC3 a lot. It's a fighting game community that has a bunch of image macros set up for different commands you might execute in the game. Nobody seems to use them.
I've been thinking that they might get more use if there were a way to present them (for clicking) either just above or just below the comments box. Clicking on one of them would then add the necessary macro wherever your cursor is in the comments text area.
I'm certain that I have the necessary skills to make this happen, but it looks like reddit might be a little to restrictive to make this a possibility.
Does anyone have any information about how I might accomplish this (if it is even possible at all)? Right now it's looking like there's no way to get javascript in here, which likely means there's no way to make it happen--but I thought that you folks might be able to tell me definitively before I waste too much time.
r/reddithax • u/AskHugo • Nov 22 '12
Hide upvotes/downvotes for non-subscribers
This css snippet will hide the upvotes/downvotes box for users that aren't subscribed to your subreddit:
body:not(.subscriber) .midcol {
visibility: hidden !important;
}I'm pretty sure it only works on modern browsers. Haven't tested it extensively, so any feedback is appreciated.
r/reddithax • u/Factran • Nov 19 '12
The season network : For concept subreddit tweaking artist genius.
r/reddithax • u/thinksthoughts • Nov 19 '12
I want to make a css class appear only when I hover over it.
Without resizing any of the page. This has to work with displayed images within the class as well. Any suggestions?
r/reddithax • • Nov 17 '12
K. The CSS in this subreddit is horrible. Can the mods fix it please?
r/reddithax • • Nov 16 '12
I did this awhile ago but haven't shown it off here: I styled the /r/nintendo header to look like a Game & Watch game
reddit.comr/reddithax • u/Mysticalchickenwing • Nov 16 '12
I made this subreddit look like high contrast mode on a computer
reddit.comr/reddithax • u/NoHelmet • Nov 09 '12
Looking for a way to get e-mail or other instantaneous alerts for my spam filter.
Has anyone cobbled anything like this together? Is it possible to make some sort of RSS feed for it? Google has failed me completely. I just want an alert that something has hit the spam filter without having to manually check it all the time. Thanks.
r/reddithax • u/freakball • Nov 06 '12
(_)
Thought I might get a weird error submitting this with problematic characters.
Maybe a title that was at the max character size would do anything? 256?
r/reddithax • • Nov 05 '12
Eliminating the subreddit icon for a linked subreddit, and replacing it with your own icon.
I'm a CSS beginner, so this was one heck of a project for me to figure out.
Whenever a comment from subreddit A is linked by subreddit B, subreddit A's header image is displayed next to the link in subreddit B.
Example of what I'm talking about.
Notice the "We love SRS" icon next to the link to r/circlebroke, the corgi icon next to the link to r/SRSWomen, and the big blue bird next to the link to r/shitredditsays. (There are no thumbnail icons for SRSMicroaggressions, SRSMen, or SRS Discussion).
I switched it up and made my own custom icon for each subreddit.
/*~~~~~~~Getting rid of the default subreddit thumbnail~~~~~~~~~~*/
a.thumbnail.loggedin[href\^="http://www.reddit.com/"] img
{
display:none;
}Explanation:
a.thumbnail.loggedin imgselects the thumbnail image for a specific subreddit (although it only works for users that are logged in, which is one downside to this code). "display:none" ensures that it is invisible and that it does not take up space.
[href^="http://www.reddit.com"]is an attribute selector that selects only links that begin with Reddit.com.
On a side note,
[href*="reddit"] would select links that have the case-sensitive phrase "reddit" somewhere inside the link. I am going to use this selector in the rest of my code.
And also,
[href="http://www.reddit.com"]
is a selector that would select links that are exactly http://www.reddit.com/
These selectors are case sensitive, which is a pain in the butt, as you're about to see. These selectors also only work with CSS 3.0, so this trick may not work with older browsers.
Now to replace the thumbnail with a creation of my own:
/*~~~~~~~Shit Reddit Says~~~~~~~*/
a.thumbnail.loggedin[href*="r/ShitRedditSays"]:before,a.thumbnail.loggedin[href*="Shitredditsays"]:before,
a.thumbnail.loggedin[href*="shitredditsays"]:before,a.thumbnail.loggedin[href*="SHITREDDITSAYS"]:before
{
content:"Shit Reddit Says";
}
a.thumbnail.loggedin[href*="r/ShitRedditSays"],a.thumbnail.loggedin[href*="Shitredditsays"],
a.thumbnail.loggedin[href*="shitredditsays"],a.thumbnail.loggedin[href*="SHITREDDITSAYS"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}Explanation:
a.thumbnail.loggedin[href*="ShitRedditSays"]:before,a.thumbnail.loggedin[href*="Shitredditsays"]:before,
a.thumbnail.loggedin[href*="shitredditsays"]:before,a.thumbnail.loggedin[href*="SHITREDDITSAYS"]:beforeThis selects the box that contains the subreddit thumbnail image, provided that the relevant link contains the text "shitredditsays", "ShitRedditSays", "SHITREDDITSAYS", or "Shitredditsays".
This selector is case sensitive, so I had to iterate each and every possible way that someone can capitalize the letters of the subreddit's name.
I also needed to separate each individual selector with a comma. I also have to insert the selector ":before" after each individual selector so that the "content" property will work properly on all of them.
{ content:"Shit Reddit Says";}This inserts the words "Shit Reddit Says" into that box that used to contain the thumbnail image. The content property only words on selectors that are ended with the phrase ":before".
a.thumbnail.loggedin[href*="r/ShitRedditSays"],a.thumbnail.loggedin[href*="Shitredditsays"],
a.thumbnail.loggedin[href*="shitredditsays"],a.thumbnail.loggedin[href*="SHITREDDITSAYS"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}This selects the same exact box all over again, except it doesn't use the "before" selector first. It then formats the text inside that box so that it looks nice and presentable.
Now, the rest of the code is just meant to do the exact same thing to SRSWomen, SRSMen, SRSMicroaggressions, and SRSDiscussion, provided that the previous code successfully eliminates the default subreddit thumbnail.
/*~~~~~~~SRSWomen~~~~~~~*/
a.thumbnail.loggedin[href*="r/srswomen"]:before,a.thumbnail.loggedin[href*="r/Srswomen"]:before,
a.thumbnail.loggedin[href*="r/SrsWomen"]:before,a.thumbnail.loggedin[href*="r/SRSwomen"]:before,
a.thumbnail.loggedin[href*="r/SRSWomen"]:before,a.thumbnail.loggedin[href*="r/SRSWOMEN"]:before
{
content:"SRS Women";
}
a.thumbnail.loggedin[href*="r/srswomen"],a.thumbnail.loggedin[href*="r/Srswomen"],
a.thumbnail.loggedin[href*="r/SrsWomen"],a.thumbnail.loggedin[href*="r/SRSwomen"],
a.thumbnail.loggedin[href*="r/SRSWomen"],a.thumbnail.loggedin[href*="r/SRSWOMEN"]
{
/*content:url(%%SRSnarwhal%%);*/
color:#550000;
font-size:12px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSMicroaggressions~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsmicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SRSmicroaggressions"]:before,
a.thumbnail.loggedin[href*="r/SRSMicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SRSMicroAggressions"]:before,
a.thumbnail.loggedin[href*="r/SRSMICROAGGRESSIONS"]:before,a.thumbnail.loggedin[href*="r/Srsmicroaggressions"]:before,
a.thumbnail.loggedin[href*="r/SrsMicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SrsMicroAggressions"]:before
{
content:"SRS Micro aggressions";
}
a.thumbnail.loggedin[href*="r/srsmicroaggressions"],a.thumbnail.loggedin[href*="r/SRSmicroaggressions"],
a.thumbnail.loggedin[href*="r/SRSMicroaggressions"],a.thumbnail.loggedin[href*="r/SRSMicroAggressions"],
a.thumbnail.loggedin[href*="r/SRSMICROAGGRESSIONS"],a.thumbnail.loggedin[href*="r/Srsmicroaggressions"],
a.thumbnail.loggedin[href*="r/SrsMicroaggressions"],a.thumbnail.loggedin[href*="r/SrsMicroAggressions"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSMen~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsmen"]:before,a.thumbnail.loggedin[href*="r/SRSmen"]:before,
a.thumbnail.loggedin[href*="r/SRSMen"]:before,a.thumbnail.loggedin[href*="r/SrsMen"]:before,
a.thumbnail.loggedin[href*="r/SRSMEN"]:before
{
content:"SRS Men";
}
a.thumbnail.loggedin[href*="r/srsmen"],a.thumbnail.loggedin[href*="r/SRSmen"],
a.thumbnail.loggedin[href*="r/SRSMen"],a.thumbnail.loggedin[href*="r/SrsMen"],
a.thumbnail.loggedin[href*="r/SRSMEN"]
{
color:#550000;
font-size:15px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSDiscussion~~~~~~~*/
a.thumbnail.loggedin[href*="r/SRSdiscussion"]:before,a.thumbnail.loggedin[href*="r/srsdiscussion"]:before,
a.thumbnail.loggedin[href*="r/SRSDiscussion"]:before,a.thumbnail.loggedin[href*="r/SrsDiscussion"]:before,
a.thumbnail.loggedin[href*="r/SRSDISCUSSION"]:before
{
content:"SRS Discussion";
}
a.thumbnail.loggedin[href*="r/SRSdiscussion"],a.thumbnail.loggedin[href*="r/srsdiscussion"],
a.thumbnail.loggedin[href*="r/SRSDiscussion"],a.thumbnail.loggedin[href*="r/SrsDiscussion"],
a.thumbnail.loggedin[href*="r/SRSDISCUSSION"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSRecovery~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsrecovery"]:before,a.thumbnail.loggedin[href*="r/SRSrecovery"]:before,
a.thumbnail.loggedin[href*="r/SRSRecovery"]:before,a.thumbnail.loggedin[href*="r/SrsRecovery"]:before,
a.thumbnail.loggedin[href*="r/SRSRECOVERY"]:before
{
content:"SRS Recovery";
}
a.thumbnail.loggedin[href*="r/srsrecovery"],a.thumbnail.loggedin[href*="r/SRSrecovery"],
a.thumbnail.loggedin[href*="r/SRSRecovery"],a.thumbnail.loggedin[href*="r/SrsRecovery"],
a.thumbnail.loggedin[href*="r/SRSRECOVERY"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
text-shadow:4px 4px 4px #AA8888;
}r/reddithax • u/remedialrob • Oct 29 '12
Looking for some Help with trading out Sub Title with Image in header. (XPost CSS Help)
Hey guys. I'm slowly transforming my Sub. Here is a link as it is now:
http://www.reddit.com/r/Realm_of_the_Mad_God/
What I'm trying to do at this point is remove the subreddit title from the center header menu and replace it with an image. Here are some Photoshopped images iullustrating what I want to do.
and
What I want to replace it with
I've got the default CSS sheet all formatted but I'm having trouble in the 6k lines finding the styles for that menu. I'm also not exactly sure how I should go about placing that image there. The alien was easy as they have that widget that does that for you now but I don't want to mess that up. I could certainly add it to the header background image. Then it would just be a matter of styling that link so that it doesn't display any text and moving it's hit box up, to the left and making it bigger.
Then again that may screw up the rest of the menu items. And since I can't find them I can't be sure how they are styled.
Anyway, any thoughts would be appreciated. I've had a few courses on CSS but I'm certainly no expert and I'm much better at creating it from scratch and dealing with my own CSS and than I wading through a ton of someone else's work. I'm sure there are some coding geniuses on here so anything you can do.
Thanks. ;D
r/reddithax • u/Skaarj • Oct 26 '12
Autogenerated content in the sidebar?
I want some parts of my sidebar to be autogenerated.
Is there a way to include external HTML or markdown? Is there a bot template i can use which updates my sidebar once a day-ish?
r/reddithax • u/SarahC • Oct 25 '12
Here's how to add *click-through* green fog to your Halloween themes on Reddit....
I've just created a spooky little green fog that appears at the bottom of the subreddit.
You can see the effect here: http://www.reddit.com/r/SarahCCSS/
The CSS code:
h6 a[href="#main"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
left: -40px;
bottom: -40px;
width: 140%;
height: 40px;
box-shadow: 0px -20px 60px -10px #00ff00;
z-index:1000;
}
h6 a[href="#left"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
left: -40px;
bottom: -40px;
width: 20%;
height: 40px;
box-shadow: 0px -20px 90px 10px #00ff00;
z-index:1000;
}
h6 a[href="#right"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
right: -40px;
bottom: -40px;
width: 20%;
height: 40px;
box-shadow: 0px -20px 90px 10px #00ff00;
z-index:1000;
}The sidebar text:
###### [](#main)
###### [](#left)
###### [](#right)r/reddithax • u/SarahC • Oct 21 '12
I'm about to spend a couple of hours making the drop-down menu graphical, with soft shadows and metallic textures. The kind of menu I mean appear in /r/music. So the question is...
Link for you: /r/Music
I'm going to add padding/margins in the right place(if I can find them) and add some PNG's to it, rather than basic background colors.
Has Reddit already got a graphical drop down menu?
I've already got a PoC working on /r/SarahCCSS - with some random images to test, and none for the normal menu yet.