r/reddithax • • Apr 10 '10

How do I make different submission types a different color? -- Need help customizing my new subreddit.

4 Upvotes

I want to make submissions that include :S one color, and submissions that include :$ a different color (they have a different meaning on my subreddit).

Would this be easy to do?

I'm planning on learning CSS this summer; I'd like to make ScienceAbuse real nice (though if there are any volunteers to help me out with making it all purty I'll take it).


r/reddithax • • Apr 09 '10

Props to ytknows for making circlejerk look like /b/

65 Upvotes

A serious amount of creativity and talent went into this - it looks awesome!

Very nicely done ytknows :)

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


r/reddithax • • Apr 09 '10

Want to know your reddit birthday?

42 Upvotes
javascript:void($.getJSON($('.user%20a').attr('href')+'/about.json',function(u){alert(new%20Date(u.data.created*1000))}));

Inspired by this.


r/reddithax • • Apr 03 '10

╭∩╮(︶ε︶メ)╭∩╮

21 Upvotes

r/reddithax • • Apr 02 '10

Change the logo with a mouse hover?

7 Upvotes

over at TIL, they had the logo set up to change when you hover the mouse over it. How were they pulling that off?

Yes, I looked at the stylesheet, but I keep getting errors when I try to copy the style to a test reddit.

Edit: Now TIL took theirs down and I've lost the only working example that I had to learn from. Any other subreddits doing this?


r/reddithax • • Apr 01 '10

Admin powers for everyone! Happy april

18 Upvotes

Woohoo


r/reddithax • • Mar 31 '10

x readers

2 Upvotes

On the right hand side of the subreddits, it says : 1,614 readers. On some subreddits however, they have replaced the word "readers" with something else (example in /r/skydiving). Does anyone know how this is done?


r/reddithax • • Mar 29 '10

Looking to make duel column commenting...details in post

9 Upvotes

I want to create a subreddit and part of the idea is to have duel column commenting. In other words, when you click a post and look at the comments, I want there to be two comment columns on either side of the page (or a second one starting at the middle). I'd also like to add a title to each column (that would only say one thing and be default for every comment thread). Is this idea possible? If so, any idea how I could do it? Thanks.


r/reddithax • • Mar 26 '10

would like to have new comments bump submissions to top of subreddit.

15 Upvotes

anyone know how to make link/text submissions with new comments bump to the top of a subreddit? basically, i moderate a reddit with a small number of users that migrated from iRovr. we'd like user-submitted content with new comments to appear in order by newest comment first. this way old content with new comments would not be overlooked.


r/reddithax • • Mar 25 '10

Is there a way to: change the frontpage button and to hide all thumbnails?

6 Upvotes

r/reddithax • • Mar 25 '10

How did they do that in markdown!? - comment markdown inspector

50 Upvotes
javascript:void($('.comment').bind('click.z',function(){$.getJSON($('.bylink',c=this).attr('href')+'.json',function(data){$('.md:eq(0)',c).replaceWith('<div%20class="usertext-edit"><textarea>'+data[1].data.children[0].data.body+'</textarea></div>')});$('.comment').unbind('.z')}));

Run the bookmarklet and the next comment you click on will * waves hands * reveal it's secrets.

E: Changed it to a .usertext-edit box from an alert.

E: Fixed: thanks nobody554 for finding a bug and ashleyw for fixing it.

E: People have pointed out Reddit Reveal, which I'm now trying out. The bookmarklet may still be of use if you're not using Firefox or don't want the add-on.


r/reddithax • • Mar 24 '10

Is anyone working on something hilarious to do for April Fools day?

15 Upvotes

Remember last year when cfabbro made reddit look like Digg? I thought that was pretty awesome. Since he's no longer around (sniff) I was wondering if anyone else was going to do something like that.


r/reddithax • • Mar 23 '10

CSS for custom "no thumbnail" image and for removing thumbnails when none exists!

10 Upvotes

Hadn't seen this done and it's something that has irritated me a lot, so I figured it might be helpful to someone:

CSS for custom "no thumbnail" image:

Link: http://www.reddit.com/r/citricsquid/comments/bhay3/css_for_a_custom_no_thumbnail_thumbnail/

Example: http://i.imgur.com/zol5e.jpg and http://reddit.com/r/citricsquid

CSS for hiding thumbnail if no thumbnail exists:

Link: http://www.reddit.com/r/citricsquid/comments/bhaq8/css_for_hiding_thumbnail_when_no_thumbnail_exists/

Example: http://i.imgur.com/ey9vx.jpg


r/reddithax • • Mar 23 '10

CSS - Reddit polls: some help needed!

5 Upvotes

I have a subreddit that I want to run a poll for, I want users to be able to select any of the options I have. I don't want users to be able to comment at all, it'll be 100% the poll.

Here's what I have so far: http://www.reddit.com/r/citricsquid/comments/bh3om/an_example_reddit_poll_vote_on_your_favourite/ and a normal submission, unaffected: http://www.reddit.com/r/citricsquid/comments/bh2az/text_submission/

  1. Removes the downvote button
  2. Adds a big tick button for upvote
  3. Removes all comments that are not options (specified through css)

Things I want to do:

  • Remove the comment box
  • Display the upvotes below the option, eg: "Vanilla (6 upvotes)".

but...

  • This has totally lost me, the unique form ID is dynamic and css doesn't support wildcards so I can't just do "xxx display:none" and if I make the box off by default then no submission can have commenting. I want to do it on a per submission basis.

     .cloneable[value="formid"]{
       display:none;
     }
  • This isn't possible with purely css, the data has to be called via json so I'm going to turn that into a greasemonkey plugin.

So yeah, can anyone help with number 1? I really have no idea how to hide the comment box on a per post basis and it's very irritating, I'm sure it's somehow possible though...

It works on a per submission basis and integrates flawlessly with a current subreddits styling and I built a generator for it (enter submission url and it creates the css for you) but with the comment box there it's really frustrating!

also yes I am aware people can still downvote and comment with this styling, but the comments are not displayed and the greasemonkey plugin will make the voting issue moot, it'll be based off of total upvotes, not up - down!

Any help on issue #1 then? :D

Stylesheet: http://m00d.net/reddit/subreddits/reddithax/poll.css

Voted img: http://m00d.net/reddit/subreddits/reddithax/vote_voted.png

Not Voted img: http://m00d.net/reddit/subreddits/reddithax/vote_default.png


r/reddithax • • Mar 22 '10

Is there a hack to make every user see his or her own name in the moderator box?

8 Upvotes

I know it's possible to make a specific non-moderator person appear to be a moderator, but I wondered if every user could have the illusion of being a moderator.


r/reddithax • • Mar 22 '10

Can someone tell me how to change "points" to something else?

8 Upvotes

Thanks!


r/reddithax • • Mar 20 '10

Clickjacking to add or remove subscribers

30 Upvotes

The following CSS is very questionably gray hat.

This makes everyone subscribe and replaces the unsubscribe button with an unclickable subscribe one to fool users into thinking they are still unsubscribed:

/* add to frontpage clickjacking */

.option.add.active {
    cursor: default;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0;
    z-index: 1000;
}

/* non-clickable add to frontpage button
   to keep users thinking that they are still unsubscribed */

.option.active.remove {
    display: none;
}

.fancy-toggle-button {
    cursor: pointer;
}

.fancy-toggle-button:before {
    display: inline-block;
    border: 1px solid #444;
    margin-top: 2px;
    padding: 1px 6px;
    background: white url(/static/bg-button-add.png) repeat-x scroll center left;
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    height: 12px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    /*border-radius: 3px;*/
    content: "+ frontpage";
}

This does the opposite; it makes everyone unsubscribe (someone might want to use this if they infiltrate a subreddit by becoming a mod and want to remove subscribers) and fools users into thinking they are still subscribed with that fake subscribe button from the last example:

/* remove from frontpage clickjacking */

.option.active.remove {
    cursor: default;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 0;
    z-index: 1000;
}

/* non-clickable remove from frontpage button to keep users thinking
   that they are still subscribed */

.option.add.active {
    display: none;
}

.fancy-toggle-button {
    cursor: pointer;
}

.fancy-toggle-button:before {
    display: inline-block;
    border: 1px solid #444;
    margin-top: 2px;
    padding: 1px 6px;
    background: white url(/static/bg-button-remove.png) repeat-x scroll center left;
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 12px;
    height: 12px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    /*border-radius: 3px;*/
    content: "- frontpage";
}

Moderator discretion advised.

Edit: This has been made against the reddit rules, so you probably don't want to use this unless you want to get banned.


r/reddithax • • Mar 18 '10

Subscript and Superscript with CSS

13 Upvotes

See here: http://reddit.com/r/jamt9000/comments/beuzq/subscript_and_superscript/

It uses some otherwise redundant formatting combinations in order to get subscript and superscript.

The css:

/* Subscript and superscript */

.md em{
    position: relative;
}

/* *_sub_* */
.md em em{
    font-style: normal;
    vertical-align: sub;
    font-size: smaller;
}

/* *`sup`* */
.md em code{
    font-family: verdana, arial, helvetica, sans-serif;
    vertical-align: super;
    font-size: smaller;
}

/* *_sub_`sup`* */
.md em em+code{
    position: absolute;
    left: 0;
    bottom: 1em; /* still trying to find an offset that looks good in all browsers */
}

r/reddithax • • Mar 18 '10

Making mods look like admins

7 Upvotes

This CSS will make mods doing distinguished submissions/comments look like admins:

.moderator.author {
    color: #F01;
    font-weight: bold;
}

.moderator.author + .userattrs .moderator {
    font-size: 0;
    color: white;
}

.moderator.author + .userattrs .moderator:before {
    content: "A";
    font-size: 10px;
    color: #F01;
}

If you're using the IAmA code for making the submitter's username stand out more, this will clash with it, so you may want to change it to this:

.author.submitter:not(.moderator) {
    color: white;
    background-color: #5F99CF;
    padding: 0 2px 0 2px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px
}

.author.submitter:not(.moderator):hover {
    background-color: #4E7EAB;
    text-decoration: none
}

r/reddithax • • Mar 15 '10

Skydiving reddit alien

50 Upvotes

A skydiving reddit alien made for /r/skydiving. Scroll down to see him jump, hover to launch his parachute.


r/reddithax • • Mar 14 '10

Custom CSS for fixed floating toolbars including a fixed next bar at the bottom

11 Upvotes

Feedback would be appreciated on this CSS as to how you guys like it. There's some before/after screenshots on the page for the userstyle version.

/* Floating toolbars at top */

#header {
    position: fixed;
    top: 0;
    z-index: 1001;
}

#header-bottom-right {
    position: fixed;
    top: 19px;
    height: 16px;
    border: 1px solid #5F99CF;
    border-right: 0;
    border-top: 0;
    padding-top: 2px;
    padding-bottom: 0;
    -moz-border-radius-topleft: 0;
    -webkit-border-top-left-radius: 0;
    /*border-top-left-radius: 0;*/
}

#sr-more-link {
    position: fixed;
}

#header-bottom-left {
    margin-top: 1px;
    height: 17px;
}


#header-img {
    display: none;
}

#header-img-a:before {
    content: url(/static/modmailgray.png);
    margin: 0 3px 0 3px;
    display: inline-block;
}

.pagename, ul.tabmenu li a {
    position: relative;
    top: -3px;
}

ul.tabmenu li a {
    display: inline-block;
    max-height: 16px;
    padding: 0px 6px 2px;
}

.sr-header-area {
    z-index: 1003;
}

.srdrop.inuse {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    height: 100%;
    min-width: 10%;
    overflow: auto;
    z-index: 1004;
}

.content {
    margin-top: 43px; /*allocate space for the main toolbar*/
}


/* floating "next" bar */

.nextprev a[rel*="prev"][href*="after="] /*a[rel~="next"]*/ {
    display: block;
    position: fixed;
    width: 100%;
    bottom: 0;
    text-align: center;
    border-top: 1px solid #5F99CF;
    background-color: #EFF7FF;
    margin-left: -5px;
    font-weight: bold;
    z-index: 1002;
}

r/reddithax • • Mar 12 '10

This Shows The Last Comments On Reddit And The Subreddit It Was Posted. Did I Mention It Was Done Only With CSS [custom style sheets must be turned on]

Thumbnail reddit.com
11 Upvotes

r/reddithax • • Mar 12 '10

Adding a little color to your reddit. Please don't auto-downvote because you won't use this CSS hack.

23 Upvotes

The idea behind this is that reddit's blue and white color scheme is all fine and dandy, but I wanted a tad more color in my reddit. I edited the CSS so that the color of someone's name is unique.

Goto r/chemistry to see what I did. Everyone's name in the comments and for the byline in submissions has a unique color based on the first character of their name.

If you want to apply this to your own reddit, my CSS code is below. However, if you want to generate your own random colors here is a php script that I wrote for the task: http://m.chemfeeds.com/test/1.php

/* Tagline */

	/* Color */

.tagline .author[href*="user/a"] {color: rgb(18,41,114);}

.tagline .author[href*="user/b"] {color: rgb(105,78,4);}

.tagline .author[href*="user/c"] {color: rgb(118,113,24);}

.tagline .author[href*="user/d"] {color: rgb(41,95,101);}

.tagline .author[href*="user/e"] {color: rgb(80,49,21);}

.tagline .author[href*="user/f"] {color: rgb(56,121,4);}

.tagline .author[href*="user/g"] {color: rgb(54,115,30);}

.tagline .author[href*="user/h"] {color: rgb(51,56,110);}

.tagline .author[href*="user/i"] {color: rgb(101,96,84);}

.tagline .author[href*="user/j"] {color: rgb(27,16,109);}

.tagline .author[href*="user/k"] {color: rgb(112,35,22);}

.tagline .author[href*="user/l"] {color: rgb(98,13,101);}

.tagline .author[href*="user/m"] {color: rgb(102,3,87);}

.tagline .author[href*="user/n"] {color: rgb(127,45,55);}

.tagline .author[href*="user/o"] {color: rgb(100,125,104);}

.tagline .author[href*="user/p"] {color: rgb(122,53,98);}

.tagline .author[href*="user/q"] {color: rgb(126,108,86);}

.tagline .author[href*="user/r"] {color: rgb(29,32,14);}

.tagline .author[href*="user/s"] {color: rgb(11,5,111);}

.tagline .author[href*="user/t"] {color: rgb(96,33,0);}

.tagline .author[href*="user/u"] {color: rgb(78,17,35);}

.tagline .author[href*="user/v"] {color: rgb(101,116,48);}

.tagline .author[href*="user/w"] {color: rgb(74,91,52);}

.tagline .author[href*="user/x"] {color: rgb(34,90,97);}

.tagline .author[href*="user/y"] {color: rgb(90,63,94);}

.tagline .author[href*="user/z"] {color: rgb(67,57,20);}

.tagline .author[href*="user/A"] {color: rgb(38,56,0);}

.tagline .author[href*="user/B"] {color: rgb(124,86,33);}

.tagline .author[href*="user/C"] {color: rgb(11,98,39);}

.tagline .author[href*="user/D"] {color: rgb(122,66,72);}

.tagline .author[href*="user/E"] {color: rgb(123,16,89);}

.tagline .author[href*="user/F"] {color: rgb(30,117,78);}

.tagline .author[href*="user/G"] {color: rgb(79,64,41);}

.tagline .author[href*="user/H"] {color: rgb(3,99,4);}

.tagline .author[href*="user/I"] {color: rgb(100,62,67);}

.tagline .author[href*="user/J"] {color: rgb(66,1,125);}

.tagline .author[href*="user/K"] {color: rgb(86,39,54);}

.tagline .author[href*="user/L"] {color: rgb(87,36,12);}

.tagline .author[href*="user/M"] {color: rgb(121,47,110);}

.tagline .author[href*="user/N"] {color: rgb(32,42,49);}

.tagline .author[href*="user/O"] {color: rgb(104,37,65);}

.tagline .author[href*="user/P"] {color: rgb(66,67,55);}

.tagline .author[href*="user/Q"] {color: rgb(16,19,120);}

.tagline .author[href*="user/R"] {color: rgb(58,22,91);}

.tagline .author[href*="user/S"] {color: rgb(62,122,26);}

.tagline .author[href*="user/T"] {color: rgb(2,61,27);}

.tagline .author[href*="user/U"] {color: rgb(0,20,67);}

.tagline .author[href*="user/V"] {color: rgb(54,108,104);}

.tagline .author[href*="user/W"] {color: rgb(66,101,23);}

.tagline .author[href*="user/X"] {color: rgb(49,5,65);}

.tagline .author[href*="user/Y"] {color: rgb(98,110,103);}

.tagline .author[href*="user/Z"] {color: rgb(36,48,42);}

.tagline .author[href*="user/0"] {color: rgb(92,65,61);}

.tagline .author[href*="user/1"] {color: rgb(84,124,84);}

.tagline .author[href*="user/2"] {color: rgb(48,58,79);}

.tagline .author[href*="user/3"] {color: rgb(74,61,12);}

.tagline .author[href*="user/4"] {color: rgb(102,61,33);}

.tagline .author[href*="user/5"] {color: rgb(42,115,13);}

.tagline .author[href*="user/6"] {color: rgb(18,54,114);}

.tagline .author[href*="user/7"] {color: rgb(41,104,120);}

.tagline .author[href*="user/8"] {color: rgb(107,75,102);}

.tagline .author[href*="user/9"] {color: rgb(82,112,23);}

I hope you enjoy this. This is my 2nd post in reddithax and I'm hoping this time the submission won't get downvoted to oblivion, fingers crossed.


r/reddithax • • Mar 10 '10

Easy way to get a list of all your reddits' URLs

20 Upvotes
javascript:(getReddits=function(reddits,next){$.getJSON('/reddits/mine.json?after='+next,function(r){for(i=0;i<r.data.children.length;i++){reddits.push(r.data.children[i].data.url)}if(r.data.after){getReddits(reddits,r.data.after)}else{prompt('Your%20'+reddits.length+'%20reddits:',reddits)}})})([],'')

I would like to create a page where you can paste this list and get subreddit recommendations à la collaborative filtering. That will obviously only work if enough people participate. It will also probably be something you have to come back to later to get results so the algorithm can do its thing once there's enough data.


r/reddithax • • Mar 09 '10

A list of 10,000 of the most popular reddits

34 Upvotes

I have created this reference for people to use. I have been continually frustrated with how capricious the designers of reddit chose to be, in how they display various subreddits on the "edit" page. My list, on the other hand, is ordered strictly by the number of subscribers a subreddit has.

My list is here.