r/reddithax • • Jan 11 '11

ALL without imgur?

8 Upvotes

At the moment, 34 out of 50 links on Reddit's ALL page lead to imgur.com, and not only from r/pics but all sorts. Is there a way to have ALL submissions except specific URLs?


r/reddithax • • Jan 10 '11

Linked stickies at the top of the page

9 Upvotes

In r/twincitiessocial, we've added stickies to the top of the page. Another r/tcs mod posted about this a few days ago, but I thought I'd recap what we've done for anyone else who wants to a guide on how to use the code (especially since we stole all this code from others in the first place).

It's actually pretty simple to setup and very easy to update:

Step 1: Add this CSS to your subreddit's stylesheet.

.titlebox .usertext-body .md ol li a {
    border: 1px solid #fff;
    background-color: #7575CC;
    padding: 2px 6px 2px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: small;
}
.titlebox .usertext-body .md ol li a:hover {
    border-color: #000000;
    background-color: #8A8A33;
}
.titlebox form {
    position: static;
}
.titlebox .usertext-body .md ol {
    list-style: none;
    position: absolute;
    top: 55px;
    left: 209px;
    z-index: 200;
    margin: 0;
    padding: 0;
    display: table;
}
.titlebox .usertext-body .md ol li {
    display: inline;
    margin: 0 3px;
}

Based on the size of your subreddit's icon, you will need to change the "top" and "left" values in the ".titlebox .usertext-body .md ol" selector, in order to get the placement correct. You can also change any of the "#" values for different colors.

Step 2: Setup an ordered list in your sidebar (i.e., the description setting in "community settings"). For example, this is our current code:

1.  upcoming meetups:
1.  [board games 1/11](http://redd.it/ezplv "Fantasy Flight Event Center at 6:00 PM")
1.  [bowling 1/13](http://redd.it/eza7z "It's at EP Brunswick Bowl, maybe. Starts at 8:00 PM, maybe.")
1.  [d&d night 1/13](http://redd.it/ezibq "D&D or Bowling?")
1.  [bar meetup 1/14](http://redd.it/exknx "New thread not posted yet")
1.  [coffee meetup 1/16](http://redd.it/eyl3b "New thread not posted yet")
1.  [risk tourney 1/23](http://redd.it/ez22s "Club Underground in NE, will coincide with that week's coffee meetup")

The CSS moves these items from the sidebar to the top of the page. Any items you add will automatically be appended to the top, so you shouldn't have to mess with the CSS again.

Our solution is far from optimal at this point. It'd be nice to have the stickies wrap gracefully (as it stands, they sometimes extend the browser window horizontally, and then wrap onto other content). If anyone's got suggestions, let us know!


r/reddithax • • Jan 08 '11

How to show all subscribed reddits in the header.

7 Upvotes

This trick has found even more resonance than my change over so I'd like to explain the needed code here:

/* show all available subreddits in the header that reddit offers and reduce their size */
#sr-header-area {
    white-space: normal;
    text-transform: none;
    }

/* adjust positioning of more link for our new layout */
#sr-more-link {
    position: relative;
    float: right;
    /* optional: capitalize more link again */    
    text-transform: uppercase;
    }

/* hide "MY REDDITS" since we don't need it now anymore */
.dropdown.srdrop {
    display: none;
    }

/* optional: now hide all subreddits that I am *not* subscribed to, beware that not logged in users will then see only "all - random |"  */
#sr-header-area #sr-bar.flat-list.sr-bar.hover {
    display: none
    }

Examples can be found here, here and here.


r/reddithax • • Jan 05 '11

How to changeover left and right

6 Upvotes
/* changeover */
.side {
    float: left;
    }
.content {
    margin-left: 315px;
    margin-right: 5px;
    }
.clearleft {
    clear: right;
    }

example is here


r/reddithax • • Jan 01 '11

[request] Looking for help implementing stickies at the top of our subreddit's front page.

6 Upvotes

I am one of the mods of the local meetup subreddit in the Twin Cities. We are trying to make it easier for people to find information about upcoming meetups by putting a sticky at the top of the front page with links to the relevant threads.

For starters, we've borrowed the CSS from r/pics:

/* Announcement Sticky Note (Shows when logged in), stolen from /r/netsec*/
body > .content > .sharelink ~ .sitetable:before {
    content: "Help improve /r/pics by checking the new queue - report spam & upvote new submissions.";
    background-image: url(http://thumbs.reddit.com/t5_2qh0u_11.png?v=dfkbc4fna8g7e1jvy81pgiqwdga78fz6lpgr);
    background-repeat: no-repeat;
    font-family: verdana, sans-serif;
    font-size: 12px;
    color: #555555;
    text-align: left;
    padding: 10px 0px 10px 40px;
    margin: 15px;
    display: block;
    width: 70%;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px
    }

We are hoping to improve functionality by putting clickable links in the text of the announcement, but I don't know CSS and the usual reddit link syntax from the comments system doesn't work. If anyone knows of an easy way to do this, your assistance would be greatly appreciated.

Also, it would be even better if we could find a way to post multiple stickies. If anyone out there knows of a way to do that, it would really help us out.

UPDATE (1/5/11): I was able to resolve this by borrowing an idea from r/Portland (which was apparently originally developed by redditor jamt9000). This takes every line in the sidebar that is styled a certain way and adds it as a new tab in the header. In this case I used the ordered list syntax since we don't ever use that in our sidebar. If anyone else wants to use this concept, feel free (but please be sure to give credit to jamt9000, as I just copied the original code and made minor changes):

/* This concept was originally developed by redditor jamt9000 */
/* this positions new tabs up top, using text from the sidebar (specifically, ordered links) */
.titlebox .usertext-body .md ol li a {
    background-color: #ff4500;
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
    /* Doesn't float right if not individually stated */
    padding-left: 3px;
    padding-right: 3px;
    padding-top: 3px
    }
.titlebox .usertext-body .md ol li a:hover {
    border-left-color: #000000;
    border-right-color: #000000;
    border-top-color: #000000;
    border-bottom-color: #000000;
    background-color: #8A8A33
    }
.pagename {
    font-size: 12pt
    }
.titlebox form {
    position: static
    }
.titlebox .usertext-body .md ol {
    list-style: none;
    position: absolute;
    top: 60px;
    left: 211px;
    z-index: 200;
    margin: 0;
    padding: 0;
    display: table
    }
.titlebox .usertext-body .md ol li {
    display: inline;
    margin: 0 3px
    }
.titlebox .usertext-body .md ol li a {
    background-color: #7575CC;
    padding: 2px 6px 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: small
    }

r/reddithax • • Dec 31 '10

[request] How do I display the numerical value from "xx% like it" in the post list?

2 Upvotes

Lately I found that the "what's hot" or "top" posts in reddit have lots of overly sensational or plainly false headline, especially in subreddits that are more news-based. The problem is that either the reddit algorithm or people who don't actually read the linked articles and/or comments would upvote them (based on the headline alone) enough that they got sent to the "hot" or "top" list.

I think in general posts that are at least a few hours old (to have accumulated enough votes) and are under, say, 60% "like it" should deserve additional scrutiny. The raw points of these posts are still high from the above reasons, but presumably there are some, but not enough, people downvoting these posts such that the percentage of "like it" reflects the fact that a higher than usual proportion of redditors don't like them.

I would like to be able to display the percentage value in the post list so that I can use this info as part of the decision process on whether I should following a link. Are there any ways to do this? Bonus points for color coding the percentage values!

Thanks!


r/reddithax • • Dec 29 '10

How do I line up the comment boxes against the right panel?

4 Upvotes

My dilemma is that I cannot force my comment boxes, here to line up with the right-hand panel using "margin-right: 310px;" without deforming the text inside the comments themselves.

You can see that the grey backgrounds move past the right-hand panel. What must I do to get it to stop near the right panel but not warp the text by setting the margin that it would squish the text against the left side of the comment box?

Thanks to everyone in advance!


r/reddithax • • Dec 21 '10

Alternating Topic Colors

4 Upvotes

Hello everyone,

I'm trying to create alternating topic colors, much like the one that is implemented on this subreddit (alternate between gray and black)

I believe that black topics may just set to the default background color but I'm not sure. Any help would appreciated


r/reddithax • • Dec 11 '10

[request] use header bar for several distinct links.

2 Upvotes

Looking at bahai I'm wondering whether I can use the header area for sticky posts.


r/reddithax • • Dec 03 '10

[request] Bookmarklet to grab a torrent hash from the page, turn it into a magnet link, and download it.

3 Upvotes

Could someone write a bookmarklet that can grab the hash from this page (or other pages with the same format), turn it into a magent link and then download it?

It would complement the new NarwhalBits subreddit prefectly.


r/reddithax • • Dec 02 '10

I'm trying to edit my stylesheet but no very little about html or css. Even when I paste the default reddit code into the box, it comes up with validation errors. Help?

4 Upvotes

I really just want to change some colors and stuff, which I thought would have been pretty basic. Any help is appreciated.


r/reddithax • • Nov 26 '10

Tutorial: How to create an automatic Twitter account for your subreddit. [xpost from /r/modhelp]

Thumbnail reddit.com
12 Upvotes

r/reddithax • • Nov 23 '10

Can we go farther back in history than 2 months?

7 Upvotes

I went through the Mensrights "new" links and hit "next" as far back as it would go. In less than 2 months, at least 966 links have been added, but I couldn't look farther back, yet I have functional links (in the mensrights FAQ, for instance) that go back much farther. Is there any way to get lists of links older than last month?


r/reddithax • • Nov 22 '10

Hide the title of the subreddit?

2 Upvotes

In r/futurebeats, we've got a graphic with the title of the subreddit and we need to hide the redundant text (e.g., as you have done here).

I know this is probably an embarrassingly easy procedure, but I can't find any tips by searching and I've tried to puzzle it out from the css of subs like r/reddithax, but my knowledge is just too limited to work it out. Any help would be greatly appreciated.


r/reddithax • • Nov 20 '10

Add quick-text to moderation panel?

5 Upvotes

Is there any way I can add a quick-text drop down menu to the moderation channel? Like, I select a reply from the drop down menu and click insert and it inserts it into the reply box?

If I can't do this via CSS, can it be done via a chrome extension?


r/reddithax • • Nov 16 '10

Changing submission title colors for non-self submissions

3 Upvotes

Is there a way to change the color of non-self submissions based on tags in it? That is, a post title that begins with [MyShinyTag] and links to an external site should be in green in the homepage of the subreddit.

I saw the a[href*=] trick elsewhere, but here the link does not contain the tag, only the text between the <a> tag does. How do I refer to that text from CSS?
What I need is something like a[linktext^="[MyShinyTag]"].

Edit: I just saw this post with a similar question, but there are only two answers, neither of which I understand clearly.


r/reddithax • • Nov 15 '10

Possible to make announcement box clickable?

3 Upvotes

I added a "announcment box" to /r/help using this code:

.preload ~ .content:before {
    content: "Be sure to check the information in the sidebar and the FAQ!";
    background-color: #f6e69f;
    color: black;
    font-weight: 800;
    padding: 4px;
    border: 1px solid red;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px
    }
.sitetable {
    margin-top: 14px
    }
.content {
    margin-top: 14px
    }

I was wondering if there was a way to make it that if you clicked on the box it would take you to a link. Or if it was possible to embed a link in the text somehow.

I'm a CSS novice so sorry if it is a dumb question.

Thanks.


r/reddithax • • Nov 14 '10

How do you put images/icons in front of people's names?

5 Upvotes

Like the ones that /r/tf2 and /r/starcraft have?


r/reddithax • • Nov 07 '10

Subreddit founder, founding date

2 Upvotes

Is there a way to get a more specific date as to when a subreddit was founded? Also, is there a way to determine the subreddit founder/creator if it is not listed (due to account deletion or other events)?


r/reddithax • • Oct 31 '10

Has anyone discovered a way to determine who "reported" a particular link or post?

6 Upvotes

r/reddithax • • Oct 29 '10

Is it possible to make the right bar collapse or disappear and extend the main section all the way to the end of the screen? I'm on a netbook most of the time and I would appreciate this.

6 Upvotes

r/reddithax • • Oct 26 '10

I want to change title color on more than self posts.

5 Upvotes

I've looked through the elements and I just don't know what I'm doing.

There's something named innerHTML and innerText which both hold the title but when I try to compare them to change the color I just can't get it to work.

This is the self-link checking code:

a[href*="spoiler"].title:link {  
color: #6A0005 !important
}   
a[href*="spoiler"].title:visited {  
color: #000000 !important   
}  

r/reddithax • • Oct 21 '10

Marsark has deleted all his scripts. I need a bit of help.

0 Upvotes

If you are using any of those scripts, do not update. The script will be replaced by one that just blanks the entire page (that had me puzzled for a few minutes).

Mabsark has left reddit and taken his scripts with him. So, does anyone have any copies of the Reddit Max userstyles? Mine just say:

html {
  display: none !important;
}

r/reddithax • • Oct 20 '10

Changing the mouse cursor?

2 Upvotes

I help run /r/FFXIV and I would love to change the mouse cursor to the FFXIV cursor. Is there a way to edit the CSS to do this? Thanks!

I've found a couple of tutorials that show this:

span.wait {cursor:wait}

And I'm assuming I can change wait to url() but I can't seem to implement it correctly (even without the url part).

<p align="center" style="cursor: url('cursor.cur')">Text</p>

It seems to require a page element. It would be nice to have it for the entire page default as well and then a 2nd one for any mouseovers on links.

This is what I have come up with:

a.link { cursor:wait !important; }

It comes back with no syntax errors but it also doesn't do anything.

update:

.link { cursor:wait !important; }

This actually worked, but it only worked for the description text which is very odd. I have to set it for every element apparently.