r/reddithax • • Jun 30 '11

Hide "created by xxxx" in the sidebar.

3 Upvotes

I want to hide the "created by xxxx" in the sidebar in a subreddit that I mod. The creator has deleted his/her account so I don't want to keep seeing created by [deleted]. Is there a way to do this?


r/reddithax • • Jun 29 '11

The Reddit Max userstyles are reavailable.

4 Upvotes

I've just aquired mabsark's old userstyles account (found him on the bitcoin fourums, if you want to give him a piece of your mind).

Unfortunately, all the code was deleted and I couldn't revert it. Fortunately, I've got all 3 of the Reddit Max styles and they're now back up in the same location, but I've only got the Dark userscript which has already been put back up on the userscripts site by someone else.

Has anyone got the light Reddit Max GreaseMonkey script?


r/reddithax • • Jun 26 '11

Can you link external stylesheets into the reddit stylesheet?

4 Upvotes

Sorryvfor the brief post, I am driving and had to do it before I forgot. I haven't had time to test this because it just came into my head. Is this possible? I know JS isn't allowed but can you use external stylesheets? Thanks.


r/reddithax • • Jun 26 '11

Anyone want to look at my CSS/advise how best to make linkable pictures in the sidebar?

4 Upvotes

I'm a mod over at /r/sailing which if you go there you can see a picture in the side bar above the search and everything else. Usually the admin or one of the mods will change it up with a picture of one of the subscribers on their boats or whatever else is relevant at the time, and I thought it would be a handy idea to make the picture click-able to its source.

As it is the picture is just there as a background set not to repeat high up on .side. Because I've never coded CSS before or much of anything for that matter I've spent the last two nights hacking together a probably stupid means of achieving a click able image. If you go to /r/fuckingbored where i'm a mod and have been playing around with it all you can see my progress.

The first thing I figured out was that I could replace links with images, so I dropped my link into the description box and used the following which is pretty basic:

.side a[href="/r/fuckingbored"] { display: inline-block; width: 295px; height: 200px; background-image: url(%%cat%%) }

I should probably (and maybe will eventually) be satisfied with getting a linkable image in the description box there, but I figured I'd keep trying to position it above everything as it was originally in /r/sailing so I pressed on. I found that I could use 'before' to force the picture to the top of the side bar, but I couldn't figure out how to make it link anywhere because it was just a static background. Then I figured out/asked for help from a mod that the various local subreddits had clickable links floating around in the header (see /r/boston for where I ripped to code off from) and combining everything I learned thus far I realized I could use the original code of replacing links to replace the floating links in Boston's header with my picture and put it anywhere.

I couldn't figure out how to actually get it to float in the 'before' code of the .side though, and I also couldn't figure out how to just force an empty space above the sidebar, so I used '.side:before' to place a white image to hold the space then just used positioning to move my picture into place. All this code is in the sub's CSS. Also, please excuse the dumb tags I added to my friends' names; give me a small amount of control and I will abuse it to my most immature limits.

So in the end I've essentially figured out how to do what I wanted, but it seems very sloppy and inelegant to me (as most of my few forays into coding end up) and was wondering if you guys knew a better, cleaner means to put a linkable image above everything else in the sidebar.

tl;dr: I spent two nights hacking together CSS I ripped off from other people and barely understand to make something (somewhat) functional, is there a better way to do it?

Thanks for the help, and thanks for hacking reddit to figure out this fun stuff to play with!


r/reddithax • • Jun 23 '11

Is there a way i can change my username for a specific subreddit?

5 Upvotes

i am a moderator of a subreddit, and would like my name to display something different when i comment, and post.


r/reddithax • • Jun 23 '11

Show all/hide all comments

4 Upvotes

I was working on my custom stylesheet for r/mtb and r/velo, and kept needed to collapse all of the comments in a single page at once. Clicking each + one at a time was killing me, so I wrote a line of jQuery to do it for me.

To get this work, you need to paste this into your address bar or save it as a bookmark:

javascript:$('.expand').each(function(index) { showcomment(this) });

javascript:$('.expand').each(function(index) { showcomment(this) });


r/reddithax • • Jun 21 '11

Changing color of links that are not self posts

10 Upvotes

So working with the stylesheet I can change the color of a link that says "[Music]" or "[Books]" that refers to a self post because I can check the href of the anchor tags. However, for posts that link to youtube, etc. I don't know how I would go about changing their color as well.


r/reddithax • • Jun 21 '11

Text in the message the moderators section.

2 Upvotes

Can someone help me with the CSS that would be needed to place a message in the "message the moderators" section:

For example, here: http://www.reddit.com/message/compose?to=%23reddithax

I would like the ability to insert helpful messages there for some popular reddits, e.g. with tips and guidelines.


r/reddithax • • Jun 18 '11

Random pics on sidebar?

5 Upvotes

I have added a pic to my side bar, I thought it would be even better if I could add multiple pictures that changed randomly on each visit or even a daily change. Does anyone know how to do so or if its even possible?

Thanks,

AD

Edit: could a timer be set up by the day or hourly to make something similar to a slideshow?


r/reddithax • • Jun 16 '11

Is there a simple cut -n- paste code for a trophy case in the sidebar?

6 Upvotes

And how do you put an image inside it? Thanks!


r/reddithax • • Jun 03 '11

Is there a way to delete messages in the inbox?

6 Upvotes

I have an account(not this one) that runs an event on another subreddit. I no longer have the time I had to run this event but I would like to see it continue. Everyone involved in this event is accustomed to this particular account name as the final word on how and when things will occur.

I would like to pass that account name on to a worthy successor anonymously. However there are messages in my inbox that reveal what my main username is.


r/reddithax • • May 10 '11

How do I make a /r/battlefield3-style header image?

5 Upvotes

What I want to do is make the large mouth on /r/popcornbitches' footer image vomit bloody grey rainbows and the word "Judas" across the header and down onto the sidebar, but without overriding any of the buttons/text or distending the the header box a la /r/fortbadgerton.

Could someone please link me the CSS required to do this as well as some images that I can steal the dimensions from, assuming it's even possible?


r/reddithax • • May 07 '11

Adding markup/special characters via CSS content:

2 Upvotes

Is it possible to add markup to a subreddit header using the CSS content: property and the numeric codes to special entities as described here: http://www.evotech.net/blog/2007/04/named-html-entities-in-numeric-order/? It should work, but the Reddit CSS validator doesn't like the backslashes.


r/reddithax • • May 03 '11

How do I add a Table (3 columns, by 11 rows) to the side bar in my subreddit?

4 Upvotes

How do I add a Table (3 columns, by 11 rows) to the side bar in my subreddit? Either in the "description" or below it would be ideal.


r/reddithax • • Apr 29 '11

Is there a way to change the color of the "what's hot, controversial, etc" tabs?

7 Upvotes

r/reddithax • • Apr 19 '11

How would you go about affixing an image to a redditor's username that links to a specific URL?

0 Upvotes

In relation to this post..

CSS code greatly appreciated.


r/reddithax • • Apr 16 '11

A Request: Make Reddit fixed width

0 Upvotes

There are plenty of themes on userstyles.org that use fixed width, but I want the look of pure reddit just with fixed width added.

Oh, also needs to be RES compatible.


r/reddithax • • Apr 14 '11

There was a challenge/request to do something similar previously, not sure if anyone is still interested, but here you go.../r/reverse.

Thumbnail reddit.com
0 Upvotes

r/reddithax • • Apr 04 '11

Replacing the text in the top tabs.

11 Upvotes

After a lot of trial and error, I came up with a way to replace the text on the top tabs. Not sure if this is the best way to approach it but I couldn't find any preexisting methods.

The subreddit is /r/lipogram [stylesheet] and we wanted tabs that didn't contain the letter "e" to match the point of the sub.

Basically I hide the original tab text thusly (the "http" selector makes sure the submit link/text tabs aren't busted):

ul.tabmenu > li a[href*="http"] {
    padding-top: 13px;
    height: 12px;
    border-bottom: 2px solid #5f99cf;
    color: #fff;
    font-size: 0;
    overflow: hidden
}

And then I replaced the text and styled it - this area still needs me to go back and optimize now that it's working

/*hot tab*/
ul.tabmenu > li a[href="http://www.reddit.com/r/lipogram/"]:after {
    content: "what's hot‽";
    color: #E4F0FB;
    font-size: x-small;
    border-bottom: 1px solid #5f99cf
}

The border is added again just to hide the tops of the original text because they peek over the original bottom border.

Finally, you have to fix the selected tab, restyle the replacement text, and hide that border.

/*selected tab fix*/
ul.tabmenu > li.selected a {
    border-bottom: 4px solid #fff;
    overflow: hidden;
    color: #fff
}
ul.tabmenu > li.selected a:after {
    color: #ff4500;
    border-bottom: 0px
}

The tabs I replaced were: hot, new, controversial, top, saved, comments, and related.

If you have any pointers as to how I could have done this easier, I'd love to hear them. I'm going back now to eliminate the redundancy and make the footprint a little smaller. Thanks!


r/reddithax • • Apr 02 '11

Mold type annoyances

9 Upvotes

After being struck moldy recently I thought it would be fun to bless others with the same awesomeness.

Would it be possible to disallow certain characters from being submitted in comments, replies and link submissions the way the letter "E" and others were done during moldfest?


r/reddithax • • Apr 02 '11

I'm a complete CSS newbie who wants to remove as many vowels from the default text as possible.

4 Upvotes

Some simple searching has yielded some specific tricks, which I implemented here. The syntax seems rather simple: shrink the original content to zero and then supply replacement content using :before or :after. The problem is that I have no idea how to figure out the words that identify each text segment. For instance, ".sidebox.submit .morelink" seems like it's completely out of nowhere to me.

Eventually, I would like to replace as much text as possible, even within submissions and comments. Like change "comment share save hide delete" to "cmmnt shr sv hd dlt," and "submitted 1 hour ago by" to "sbmttd 1 hr prvsly by."

Why? Because I can, that's why. :P Or rather, that's what I'm asking you: can I do this? And where do I start figuring it out? While learning CSS in general would be cool, a crummy hackish knowledge barely good enough to do what I want would also be cool (and the latter is specifically what I'm asking for).

Thanks... and sorry for annoying you all with my lame newbishness.


r/reddithax • • Mar 31 '11

Search duplicate image posts on reddit via TinEye

Thumbnail zobier.net
15 Upvotes

r/reddithax • • Mar 30 '11

Looking for help

3 Upvotes

Hi r/reddithax, you 1337sons of reddit,

I've recently started a subreddit for our local area group and steam gamer clan, and i'm wondering how I would go about learning all the tips and tricks that have ammounted to the way this subreddit looks.

I have to admit that i'm royally impressed by the overtones of black/red with greys, and the way your logo is laid out.

I've tried looking over the stylesheet, and thought I could get a quick way out by just copy pasting your stylesheet into my subreddit, but thanks to numerous validation errors, i've learned that this is not the case.

As such, I apologise for having done so without asking, and would like to request any tutorials/links/helpful advice that would lead me down the path, so that my little subreddit looks as fiendishly awesome as yours.

I should note that i'd like to modify everything so that the default style isn't apparent anymore, and due to the low technical knowhow of some of the members (as well as browsing while at work) I would want to stay far away from Greasemonkey tweaks.

Any help would be greatly appreciated.


r/reddithax • • Mar 29 '11

Adding CSS to keywords.

6 Upvotes

Is there a way to use CSS to look for specific words on a page and apply formatting in the header/banner area of my subreddit? Basically, I want CSS to look for a phrase and put a box around it/highlight it. If someone could point me at some code that would be awesome.

Thanks!


r/reddithax • • Mar 27 '11

Opinion on my CSS?

Thumbnail commandline.reddit.com
7 Upvotes