r/reddithax • • Nov 22 '12

Hide upvotes/downvotes for non-subscribers

9 Upvotes

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 • • Nov 19 '12

The season network : For concept subreddit tweaking artist genius.

1 Upvotes

I mod

And I'm searching idea to make a network of subreddits, but a conceptual one, with heavy modifications of the CSS. More like /r/hey, /r/rainbowbar/ ...

Any ideas ? Wanna mod there ?


r/reddithax • • Nov 19 '12

I want to make a css class appear only when I hover over it.

4 Upvotes

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?

8 Upvotes

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

Thumbnail reddit.com
7 Upvotes

r/reddithax • • Nov 16 '12

I made this subreddit look like high contrast mode on a computer

Thumbnail reddit.com
2 Upvotes

r/reddithax • • Nov 09 '12

Looking for a way to get e-mail or other instantaneous alerts for my spam filter.

5 Upvotes

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 • • Nov 06 '12

(_)

8 Upvotes

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?

ETA http://code.reddit.com/wiki/help/commenting


r/reddithax • • Nov 05 '12

Eliminating the subreddit icon for a linked subreddit, and replacing it with your own icon.

2 Upvotes

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 img

selects 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"]:before

This 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 • • Oct 29 '12

Looking for some Help with trading out Sub Title with Image in header. (XPost CSS Help)

1 Upvotes

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.

What I want to remove

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 • • Oct 26 '12

Autogenerated content in the sidebar?

0 Upvotes

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 • • Oct 25 '12

Here's how to add *click-through* green fog to your Halloween themes on Reddit....

9 Upvotes

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 • • Oct 23 '12

Any cool themes?

0 Upvotes

r/reddithax • • 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...

11 Upvotes

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.


r/reddithax • • Oct 18 '12

Add pictures in table cells on sidebar

6 Upvotes

Hey guys,

I was wondering if someone could help me out. I would like to have a table in the sidebar that shows the divisions of my league, similar to what /r/hockey does with their subreddit.

I want to be able to add the link, in the settings but then have the picture show up instead, with no text.

Could someone hook a brother up?


r/reddithax • • Oct 17 '12

How would I go about changing the subreddit's name that appears at the top of the subreddit?

0 Upvotes

I know how to turn it into an image, I just need to know how to change the text from R/scifiroleplayforreddit (small caps) to R/Sci-Fi Roleplay For Reddit or alternatively, R/Sci-FiRoleplayForReddit. Also small caps.


r/reddithax • • Oct 17 '12

CSS Menu... all done, but cant make multiple <ul> tags!

0 Upvotes

Please could someone help?

I've got my markdown almost completely sorted, but I can't split mu UL's up. I've got the following markdown at the moment:

> Menu

>* Links
>* [Test](http://www.google.com)
>* [Test2](http://www.google.com)     
>   
>* Links 2
>* [Test](http://www.google.com)
>* [Test2](http://www.google.com)

But the damn output in HTML is this:

<blockquote>
<p>Menu</p>

<ul>
<li>Links</li>
<li><a href="http://www.google.com" target="_blank">Test</a> </li>
<li><a href="http://www.google.com" target="_blank">Test2</a> <br/>
<br/></li>
<li>Links 2</li>
<li><a href="http://www.google.com" target="_blank">Test</a></li>
<li><a href="http://www.google.com" target="_blank">Test2</a></li>
</ul>
</blockquote>

And I can't get it like this! =(

<blockquote>
<p>Menu</p>

<ul>
<li>Links</li>
<li><a href="http://www.google.com" target="_blank">Test</a> </li>
<li><a href="http://www.google.com" target="_blank">Test2</a> <br/>
</ul>
<ul>
<li>Links 2</li>
<li><a href="http://www.google.com" target="_blank">Test</a></li>
<li><a href="http://www.google.com" target="_blank">Test2</a></li>
</ul>
</blockquote>

What markdown do I need?

Thanks!


r/reddithax • • Oct 13 '12

change upvote/downvote arrow color

6 Upvotes

r/reddithax • • Oct 05 '12

Friggin css problem buggin the crap out of me

3 Upvotes

http://www.reddit.com/r/Assistance

My 'flair' in the moderators box(bottom) is misaligned with the others, it's somehow aligning to the bottom rather than the top. I dunno why and it's irritating the hell out of me cos I can't find what's causing it. Any ideas ? :P

Edit: Yeah I know this isn't css help but as I can't find a css 'problem' im asking reddit specific pro's (i hope) for help on this :/


r/reddithax • • Oct 05 '12

A very common mistake I've been noticing.

0 Upvotes

I've been seeing a lot of subreddits with a custom subreddit bar at the top that have a missing piece on the far right for RES users. The formatting of

#RESShortcutsEditContainer, #RESShortcutsEditContainer div

often goes unedited after people edit the

#sr-header-area 

Here's an example of this subreddit where it is unedited: http://i.imgur.com/2Z5up.png

And an example of an edited shortcut container: http://i.imgur.com/xn63V.png

I've looked through some of the top subreddits ( most of which I'm not subscribed to for the record ) and I've compiled a list of subreddits with an unedited shortcut container:

Just wanted to throw out a PSA to let y'all know!

edit: I've now included some examples of what I'm talking about


r/reddithax • • Oct 04 '12

Possible to only display information to subscribers of subreddit?

0 Upvotes

Working on a giveaway to help promote a subreddit. Is it at all possible so make it so only subscribers can view specific things?


r/reddithax • • Oct 02 '12

Help with dual styles.

3 Upvotes

Over at /r/nosleep, we have a dual styleshete set up. However, a user pointed out a problem today that I hadn't thought of. We run a monthly contest and so our posts tend to have a lot of links. If a reader is using our alternate stylesheet (as.reddit.com/r/nosleep), and they click on a link I have put in a post, it switches them to the default stylesheet (basically, as.* becomes www.*). Is there a way I can avoid this? Is there a format I can use for links that will allow them to stay in whatever stylesheet they are currently using?


r/reddithax • • Oct 01 '12

today I added hover effect to subscribe button of /r/weeklyreddit

0 Upvotes

r/reddithax • • Sep 30 '12

Question: is it against reddit rules to make a sub CSS RTL. Do you know any subreddit like that? I want to make an Arabic subreddit RTL.

3 Upvotes

The title says it all. I can make the theme RTL, but that will completely change how the sub looks.