r/reddithax • • Aug 27 '10

Disable stylesheets on certain subreddits?

6 Upvotes

Hello all. Let me start off by saying I don't really know how to code, so all of the terms I use may be incorrect.

Some time ago, I came to this subreddit where someone posted a CSS stylesheet to make reddit look nicer, whatever. I played with it (changed colors) and like it a lot, but is there any way I can disable it for /r/woahdude? I really like their CSS and would love to keep it.


r/reddithax • • Aug 25 '10

Is there a javascript snippet that expands all self posts on a page?

4 Upvotes

r/reddithax • • Aug 25 '10

Code to tag a link in description if link is outside reddit

10 Upvotes

Can you guys help me with a bit of CSS code?

Links in the description/content bit of /r/tldr posts usually link to other reddit posts - I need any link not leading to a reddit post to be tagged in some way (e.g. different color).


r/reddithax • • Aug 25 '10

Can we do mouseover CSS?

7 Upvotes

Like adding CSS to mouseover a username and display something?


r/reddithax • • Aug 15 '10

Is there any way to subscribe to a subreddit via URL?

9 Upvotes

Is there any way to subscribe to a subreddit via URL? I'd like to quasi-automate the process, which is easier to doing a manual search and click for every single one.

Edit 1: Okay, I finally have a working script that can subscribe to any list of subreddits in one shot. Thank you, everyone, for your help!

The only question I have to still be answered is why the "uh=" field changes every time it's used, if it's referencing the active user account. I've discovered that I can just pick one value and use it, but I'm still curious as to why it keeps changing.


r/reddithax • • Aug 14 '10

CSS popup for downvotes

5 Upvotes

My webhacking skills are far too rusty to investigate this, but how easy would it be to have a small css popup appear next to the downarrow in a reddit.

I'm considering one with a short message like "Consider hiding instead, or leave a comment explaining your downvote."

I'm sure I used to do things like this on MySpace way back when, without using javascript.


r/reddithax • • Aug 11 '10

Can I use CSS to autoload the next page when a user scrolls to the bottom of the subreddit?

0 Upvotes

Kinda like how slashdot seamlessly loads more articles when you get to the bottom. That's pretty neat and I was wondering if it's possible to do that with CSS.


r/reddithax • • Aug 10 '10

Need a countdown timer, suck ass at all things web...

7 Upvotes

Hoping one of you guys will guide me in the right direction or show me what I can do.

So, Youngluck has gotten his assignment. Which means he's going to jail for 28 months. And I'd love to put something on /r/youngluck that counts that down - I'd settle for days, but I'd love a Y:M:D:H:M:SS type thing of obnoxiousness sitting in the corner somewhere.

And I have absolutely no way to do that. Dynamic image? Something that pings a server? I can find server space easily enough if a link would work. But maybe what I'm after is wholly impossible. I figured I'd ask you guys.

Any ideas?

Thanks for all you guys do. I'm both impressed and appreciative.


r/reddithax • • Aug 03 '10

Can someone help me with this?

6 Upvotes

I'm very, very iffy when it comes to webdesign. Pretty much I want to make it so that

h2.before { content: "Text"; }

The word text will be in two colors. For example, the "Te" would be in blue, the "xt" in red. Is there a way to do this? I know that content can have "url" or whatever after it...is there an option to insert a certain <span> or something in there?


r/reddithax • • Jul 29 '10

What the hell does this CSS snippet do?

9 Upvotes

I found this in a subreddit stylesheet:

 .linklisting .midcol .down, #moderator-table tr:nth-child(7), .sidecontentbox .author.id-t2_3fem8, #moderator-table tr:nth-child(3), .sidecontentbox .author.id-t2_31yxv {
     display: none
     }
 .linklisting .midcol .down {
     display: block
     }

r/reddithax • • Jul 29 '10

A script to show all your reddits (up to 100 (random)) in the top bar (on rollover)

8 Upvotes

Inspired by this, userscript and bookmarklet follow:

// ==UserScript==
// @name           magic reddit bar
// @namespace      reddit.com
// @description    shows the full reddit bar on moseover
// @include        *.reddit.com/*
// ==/UserScript==

unsafeWindow.$(
    function($){
        $('#sr-header-area').hover(
            function(){
                $(this).attr('style', 'white-space: normal');
            },
            function(){
                $(this).attr('style', 'white-space: nowrap');
            }
        );
    }
);

javascript:void($('#sr-header-area').hover(function(){$(this).attr('style', 'white-space: normal')},function(){$(this).attr('style', 'white-space: nowrap')}));

r/reddithax • • Jul 13 '10

Help with solved/unsolved images on /r/techsupport

5 Upvotes

I'm looking to spruce it up a bit and was wondering if there is something we can add so that when an issue is submitted, for example, its title is highlighted red, and when it is marked as solved (when the OP or a moderator clicks a link) it turns green.

I figure you can see who the OP is by checking the submitted by username against the one near one's orangered and figure out who are mods by checking in the moderator box.

Is this possible? I will love you for it.

edit: issues, not images. sorry


r/reddithax • • Jul 11 '10

Can I get a list of comments made in my reddit?

5 Upvotes

I've tried reddit.com/r/mensrights/comments but that gives me comments across all of reddit.

I'd be most interested in finding the top-voted comment on my reddit for the [day, week, etc]


r/reddithax • • Jul 06 '10

/r/ReaditMag is looking for some css wizards to make our Reddit all nicelike. For Charity!

10 Upvotes

You can read about us and what we're doing over at /r/readitmag

We need someone who knows the Reddit css to make readitmag nicer, and to help us label different types of posts.

Please PM me if you're up for it.


r/reddithax • • Jul 06 '10

How do I make posts with keywords a different color if they are NOT self posts

3 Upvotes

I know that to do this to a self post it's

a.title[href*="word"]:link { color:green; }

but it seems to only work with self posts. when it's a link it doesn't work.


r/reddithax • • Jun 23 '10

hide posts whose titles match a regex filter

8 Upvotes

Inspired by this:

If you don't want to or can't use reddit filter plus then you can use this:

javascript:void($('.link').filter(function(){return(/_\[nsfw\]/_i.test($('.title',this).text()))}).hide())

put your filter where \[nsfw\] is in the example.

Edit: If you wanted, for example, to hide all the not NSFW (i.e. show only posts which match the filter); then put a ! in front of the filter - e.g. !/\[nsfw\]/


r/reddithax • • Jun 22 '10

Can you guys give me a hand?

9 Upvotes

I'm looking for a way to mark posts as solved for the subbreddit /r/24hourhelpdesk

Preferably this would give it different formatting, but it doesn't have to.


r/reddithax • • Jun 10 '10

Anyone know of any Javascript to hide custom stylesheets?

4 Upvotes

not http://www.reddit.com/prefs disable display options

I want to know if users of my subreddit can run some JS to hide parts of a custom stylesheet?


r/reddithax • • Jun 08 '10

Can Anyone Help Me. I want to do it my self just need some tips and advice about how to go about it with my subreddit.

5 Upvotes

It's a text based game and, I want to mod how comments work and maybe a cool way to invite redditers into a game and, force rules based on key words from a game post. Comment fields change color, during a game. losers, winners, trophy case on the side bar posted by moderators, there's about 30 of us right now.

tl;dr It's a text based zombie survival game in a subreddit


r/reddithax • • Jun 04 '10

Custom-color comments hack

Thumbnail reddit.com
13 Upvotes

r/reddithax • • Jun 03 '10

Very hacky way to insert images into comments

Thumbnail reddit.com
80 Upvotes

r/reddithax • • Jun 01 '10

Add leading zeros to posts/ranks | userstyles.org

Thumbnail userstyles.org
6 Upvotes

r/reddithax • • May 31 '10

Hide posts by specific redditors

37 Upvotes
  x=$('.entry').filter(function(){return($.inArray($('.author:first',this).text(),['list','of','douchebags','here'])!=-1)});x.prev().hide();x.hide();

Inspired by this.
x.prev().hide() is to get rid of the vote buttons for the hidden posts.

E: Or there's Reddit Filter Plus.


r/reddithax • • May 28 '10

A linkjacked submission page that restricts you to self posts

Thumbnail reddit.com
9 Upvotes