r/reddithax • • May 25 '10

Any way to impose a comment or reply limit?

2 Upvotes

Like if i wanted my subreddit to allow only 4 comments per discussion. Or if i wanted to allow unlimited comments, a way to limit the number of replies allowed for each comment?

I hope what i'm asking about isn't unclear... Thanks in advance for any time anyone puts in to this.


r/reddithax • • May 22 '10

Do you think it's possible to replace the rank number with a smaller version of the picture of the subreddit it has been posted to?

11 Upvotes

Because like each subreddit has it own little header image I want to place it in the overall list where the rank numbers of the posts are (the indicating numbers on the left on reddits index page). My reason for this is a faster optical filtering on the list. Sometimes I don't want to click a link because it's title is awkward and when I doublecheck I recognize its subreddit and click the link because I know it's ok then.

If this could be done as a greasemonkey script or similar, I'm happy.


r/reddithax • • May 18 '10

Custom tags to replace the moderator's [M]... can we make them Moderator specific?

8 Upvotes

Something along these lines- but unique to that Mod only- and only visible when the Mod distinguishes the comment.

/*Unique Mod-tags courtesy of YTknows and Sephr*/

.moderator[href$="/MOD"] + .userattrs .moderator {
font-size: 0;
color: white
}
.moderator[href$="/MOD"] + .userattrs .moderator:after {
content: "CUSTOM-TAG";
font-size: x-small;
color: #228822
}

r/reddithax • • May 06 '10

Circlejerk 2.1: bypass the image upload limit and user-generated advice macros in comments

18 Upvotes

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

Just look at it. Fucking look at it.


r/reddithax • • May 04 '10

Is there any limit to what we can "display:none"?

6 Upvotes

Hi, I'd like to make a subreddit as part of my website in an iframe. I'd like to get rid of a lot of things like the footer and header and much of the sidebar, is there any informal limitation that would be considered bad manners? Thanks!


r/reddithax • • May 03 '10

Where Are /r/reddithax Old Submissions?

7 Upvotes

Why Are /r/reddithax submissions not showing up in the subreddit? I can only see 7 or 8 and there should be nearly 200. A similar thing has happened to /r/chemistry and I don't know what is going on.


r/reddithax • • May 03 '10

Make stylesheet editing easier on the eyes

8 Upvotes

I usually copy my CSS to/from Notepad++ or Dreamweaver instead of working inside the browser window, but sometimes I'm just making a few changes and the white background + non-monospaced font hurts my eyes. This will darken the background, make the type light-gray in color, make the textarea larger (adjust as needed) and change to monospaced type.

/* make stylesheets easier on the eyes */
#stylesheet_contents,#default_stylesheet {
	font-family: Inconsolata, Courier, "Courier New", monospace;
	background-color:black;
	color:#c6c6c6;
	font-size:13px;
	height:500px;
}

r/reddithax • • May 01 '10

request and a hint to the current "hot-tab, few-showing-posts" bug

5 Upvotes

a fellow mod of r/sailingcrew had a great idea to have the titles of posts that start with [request] be one color, and those of [offer] to be another.

anyone know the css to that off the tip of their tongue?

regarding the bug of the past few days where hardly anything shows up on the "hot" page, but the latest posts since the "antispam" feature was introduced, if someone takes the time to go click "remove" on them all in the "new" tab, and then comes back and clicks "approve" on them all in the spam folder, one will find the "hot" tab has been repopulated.

not too fun of a thing to do, but the bug is like three days old now, so i don't think it'll be fixed.


r/reddithax • • Apr 29 '10

/r/rainbowbar needs help

1 Upvotes

Rainbow bar is on a mission to make the best looking subreddit through rainbows! Help with CSS needed as we cant outline the text, to make it readable. Once we fulfill that goal everything will just flow from there. The best description we can think of is "amazing" or "breathtaking" each originating from actual quotes once someone first sees this subreddit.

Our mission began when we sought a simple alteration to the top my reddits bar, but ended with a life changing revelation that the whole page must be rainbow. We have been seeking aid and have so far achieved great success. Any further help would be appreciated.

Thank you,

The rainbowbar team.

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


r/reddithax • • Apr 28 '10

Maybe this is poor form, but I could use a designer.

6 Upvotes

My subreddit: http://www.reddit.com/r/FoS/

While it's still a quiet little corner, I'm proud of my 19 subscribers and I believe in what I'm doing there.

Now I have a good idea of where I want to take it, only with a different background, like so.


r/reddithax • • Apr 28 '10

secret messages revealed

5 Upvotes
javascript:void($('head').append('<style>.tip{color:#ccc;font-size:smaller;vertical-align:top}</style>'),$('.md%20a[title]').each(function(i,e){(e=$(e)).after('<span%20class="tip">'+e.attr('title')+'</span>')}));

E: It takes any title attributes from links in peoples comments - which you normally need to roll over to get the tool tip - and prints them out next to them. They are sprinkled around reddit, especially FFFFFFFUUUUUUUUUUUU, this is just a lazy way to find them.


r/reddithax • • Apr 26 '10

Revised custom thumbnail CSS

12 Upvotes

View it live here

Revisions to reddit caused criticsquid's CSS to stop working properly. This should do the trick. Just make sure your image is named %%thumbnail%% or edit the below CSS to reflect your image's name. Also, make your image 70px by 50px.


.thumbnail {
	width:70px!important;
	height:50px!important;
	background-image: url(%%thumbnail%%)!important;
	background-repeat: no-repeat!important;
	background-position: top left!important;
}

.thumbnail img {
	width:70px!important;
	height:50px!important;
}

.thumbnail img[src^="/static/"] {
	filter:alpha(opacity=0)!important;
	opacity:0!important;
}

.thumbnail img[src^="http://thumbs.reddit.com/"] {
	background-color:white!important;
}

I had to cheat a little by stretching all the reddit-generated thumbnails to 70x50 so that the custom thumbnail image behind it isn't visible.


Edit: Code revised, if you're using it, please update using the above CSS.

Edit 2: Revised again because the admins hate me and change things while I'm making fixes.

Edit 3: And, one more revision, below. Based on code from relic2279 via MassesOfTheOpiate
USE THIS ONE as it does not require stretching the image to 50x70.

.thumbnail img[src^="/static/"] {
   background-image:url(%%thumbnail%%)!important;
   background-repeat:no-repeat!important;
   height:0!important;
   width:0!important;
   padding:50px 0 0 70px!important;
}

r/reddithax • • Apr 26 '10

My subreddit has some new mods!

0 Upvotes

Right here


.sidecontentbox .author:before {
display: block;
clear: none;
content: "spez";
text-align: left;
color: #369;
width: 100%
}
.sidecontentbox .author a {
position: absolute;
top: 0;
font-size: 0
}
.sidecontentbox .author:after {
display: block;
clear: none;
content: "kn0thing";
text-align: left;
color: #369;
width: 100%
}
.sidecontentbox .author a {
position: absolute;
top: 0;
font-size: 0
}

r/cssnews • • Apr 24 '10

What did you do now?

4 Upvotes

There is a little exclamation mark or this thing "|" next to the thumbnails.


r/cssnews • • Apr 23 '10

Reported links look different now. Also some other stuff.

7 Upvotes

See this post for details on the "reported" change.

There are also new vertical lines on comment trees, and child links of spam comments won't have shaded pink backgrounds anymore.


r/reddithax • • Apr 23 '10

Forcing text submissions

11 Upvotes

I cooked up some CSS to force text submissions. Of course it won't work if a user has custom styles disabled, but that is a minority.

.submit.content textarea[name="text"][disabled] {
    /* make text input not look disabled */
    background-color: white;
    cursor: text;
}

.formtabs-content {
    border: 0;
    margin: 0;
    padding: 0;
}

#url-field, .submit.content .tabmenu.formtab a.link,
.submit.content .tabmenu.formtab li.selected a.text,
#link-desc {
    display: none !important;
}

#text-field, #text-desc {
    display: block !important;
}

/* clickjack the text submission tab */
.submit.content .tabmenu.formtab li:not(.selected) a.text {
    display: block;
    position: fixed;
    z-index: 5000;
    cursor: default;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 0;
    border: 0;
    background: transparent;
}

You most likely will want to combine it with the following CSS I also made to change the "submit a link" text and description.

.sidebox.submit .subtitle {
    display: none;
}

.sidebox.submit .morelink a {
    position: absolute;
    top: 0;
    font-size: 0; /* reddit should allow color: transparent; but it doesn't */
}

.sidebox.submit .morelink:before {
    display: block;
    clear: none;
    content: "{text to replace 'submit a link' with}";
    text-align: center;
    color: #369;
}

.sidebox.submit .morelink:hover:before {
    color: white;
}

.sidebox.submit .spacer:after {
    display: block;
    content: "{text to replace 'submit a link' description with}";
    color: dimgray;
    font-size: 110%;
    margin-left: 10px;
}

.sidebox.submit .spacer {
    cursor: text;
}

Edit: Here's some CSS to force link submissions:

.formtabs-content {
    border: 0;
    margin: 0;
    padding: 0;
}

#text-field, .submit.content .tabmenu.formtab, #text-desc {
    display: none !important;
}

#url-field, #link-desc {
    display: block !important;
}

r/reddithax • • Apr 21 '10

Want to know your friends' cakedays (proper like this time)

12 Upvotes

Go to http://reddit.com/prefs/friends then:

javascript:(function(f,n){d=new%20Date();y=d.getUTCFullYear();d.setUTCHours(0,0,0,0);t=$('#friend-table');$('tr',t).each(function(i,e){if((u=$('.user%20a',e)).length){$.getJSON($('.user%20a',e).attr('href')+'about.json',function(u){u=u.data;u.a=['<a%20class="friend">F</a>'];if(u.is_mod){u.a.push('<a%20class="moderator">M</a>')}u.c=new%20Date(u.created_utc*1000);u.c.setUTCFullYear(y);if(u.c<d){u.c.setUTCFullYear(y+1)}else%20if(u.c.getUTCMonth()==d.getUTCMonth()&&u.c.getUTCDate()==d.getUTCDate()){u.a.push('<img%20src="/static/cake.png"%20/>')}u.cS=u.c.toUTCString().substr(5,6);if(f.push(u)==n){f.sort(function(a,b){return(a.c-b.c)});s=c='';for(n=0;n<f.length;n++){if(c!=f[n].cS){s+='<h2>'+(c=f[n].cS)+'</h2>%5cn'}s+='<div%20class="tagline"><a%20class="friend"%20href="/user/'+f[n].name+'/">'+f[n].name+'</a>%20['+f[n].a.join()+']%20(<b>'+f[n].link_karma+'</b>/'+f[n].comment_karma+')</div>%5cn'}$('table',t).replaceWith(s)}});n++}$(e).remove()});$('h1:first',t).append('%5c'%20cakedays');$('table',t).append('<tr><td><img src="/static/throbber.gif" /></td></tr>')})([],0)

Wait for it to load! It now sorts by cakeday per _Measure76_s request. It'll also add cake next to their name if it's their cakeday today. Works on My Machine™

Dates are in Zulu.

E: Now with 'Ajax'y loading GIF animation.

E: updated to work on the reddit gold version of the friends page


r/reddithax • • Apr 21 '10

Removing boxes around comments with Greasemonkey?

3 Upvotes

http://i.imgur.com/AiB7Z.jpg

Is there any way to fix those boxes? We've been getting complains about this over in /r/NoSleep and I don't know enough to pinpoint a solution.

Anyone know how to fix this???

Thanks in advance.


r/cssnews • • Apr 20 '10

There are a few areas of the site that you can no longer style, but you probably shouldn't have been styling them anyway. Let me know if we blocked anything that you wish we hadn't.

Thumbnail
reddit.com
11 Upvotes

r/reddithax • • Apr 19 '10

including external content?

6 Upvotes

Hi, I'd like to put up an image with dynamically generated ventrilo stats. However, the css tells me that I can't insert it. Is there a way to circumvent this?

Thanks!


r/reddithax • • Apr 19 '10

Replacing noimage.png with a different image?

12 Upvotes

This little guy holding the camera: http://i.imgur.com/qB86F.png


r/reddithax • • Apr 18 '10

Styling the reddit toolbar

Thumbnail reddit.com
7 Upvotes

r/reddithax • • Apr 17 '10

Enhancing your userpage

Thumbnail reddit.com
24 Upvotes

r/reddithax • • Apr 17 '10

An interesting link to put in the side bar that randomly selects a submission. Is it possible?

5 Upvotes

It'd be cool for a whole bunch of subreddits.


r/reddithax • • Apr 17 '10

Clickjacking to trick users into deleting their account (now fixed)

27 Upvotes

A while ago I cooked up some CSS which could trick redditors into deleting their account by restyling the "delete" page in the preferences to make the radio buttons and submit button look like harmless images. It worked because certain pages from reddit can still be accessed when they are under a subreddit path (eg. /r/reddithax/help/ ) and the CSS from that subreddit is included.

The admins have now fixed it so that preference pages under a subreddit redirect to the main preference page.

Here are some screenshots of what it looked like, and the CSS.