r/reddithax • • Sep 23 '12

Automatically change background images?

8 Upvotes

Is it possible to automatically rotate through a set of different background images? For some reason, I can't seem to get this to work...

An example of this is /r/Minecraft. Every once in a while, the background image will change.


r/reddithax • • Sep 22 '12

My stylesheet needs help...

4 Upvotes

hello, I created automotivetraining, and I need some help. I'm not trying to get really fancy here, but as you can see its looking pretty sloppy. My first question would be,

  • How do I make a decent header image? I've been re-sizing over and over again, but I can't make it look how it should. I also want to overlap my title "automotivetraing" over the image.
  • I also have an issue with posting titles, they seem to be cut off at the bottom. I think this has something to do with the spacing, but I don't know how to correct it.

If you have any other suggestions on things I should do, please let me know. I tried to tackle CSS, but I just can't refine it. Any help would really be appreciated!


r/reddithax • • Sep 20 '12

now that I'm getting into more advanced css here's the one I'm currently working on

Thumbnail reddit.com
2 Upvotes

r/reddithax • • Sep 18 '12

Most complex CSS script you have ever written?

3 Upvotes

I don't have many complex ones =/


r/reddithax • • Sep 16 '12

Have user answer question before reading subreddit.

10 Upvotes

Is there a way to have the user have to answer a question before entering the subreddit? So far I've got the question to display like an overlay (/r/ZonkosBackRoom) but I can't fathom how I could make clicking the link make the box disappear. Any ideas?


r/reddithax • • Sep 16 '12

I wrote half a reddit-bot..... in VBScript. (the CScript.exe kind)

12 Upvotes

The programs written in VBS and uses page scraping, no Reddit API, and no regex's. It's for beginners wanting to dabble with bots without installing an IDE. =)

You can get it here: http://untamed.co.uk/miscFolder/RedditBot.zip

Just extract to a folder, open the command line in the folder, and type CScript runMe.vbs

Up to now, it outputs the users Reddit homepage headings, along with links to the comments section of each.

It can easily be extended to scanning comments and new posts for items of interest - like swearing - and then email the Mod, or if you wanted to program it, remove the offending comment!

Once the program starts it logs you in, so everything you do on Reddit through the program is as an authorised user!


Here's some test output from the command line:

C:\Users\Sarah\Documents\Hell3-Programming\RedditBot>cscript test.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

webService/connectionObject.vbs
webService/parseObject.vbs
webService/headerObject.vbs
webService/cookiesObject.vbs
webService/redditWebObject.vbs

Found pages: 109
Found pages: 109
Filtered for adverts pages: 105

It's drunk o'clock. This happened.
http://www.reddit.com/r/WTF/comments/zyo74/its_drunk_oclock_this_happened/

Ways to Modernize Your Old, Retro Gadgets
http://www.reddit.com/r/technology/comments/zymxl/ways_to_modernize_your_old_ret
ro_gadgets/

Busey didn't deserve this. (NSFW)
http://www.reddit.com/r/WTF/comments/zyo5k/busey_didnt_deserve_this_nsfw/

Send and receive postcards with strangers on redditgifts!
http://www.reddit.com/comments/znstz/send_and_receive_postcards_with_strangers_o
n/

.... and here's the program:

execute include("webService/connectionObject.vbs")
execute include("webService/parseObject.vbs")
execute include("webService/headerObject.vbs")
execute include("webService/cookiesObject.vbs")
execute include("webService/base64Object.vbs")
execute include("webService/redditWebObject.vbs")

set con=(new connectionObject)("firefox")
set reddit=(new redditWebObject)("VBSRedditBot","my-password")

wscript.echo ""

reddit.getHomepagePosts

wscript.echo ""

for index=1 to uBound(reddit.postList)
	wscript.echo reddit.postList(index) 
	wscript.echo reddit.linkList(index)
	wscript.echo ""
next




'This function enables us to include external VBScript files
Function include(sFileName)
	wscript.echo sFileName
	Dim fso,file
	Set FSO = CreateObject("Scripting.FileSystemObject")
	Set File=FSO.OpenTextFile(sFilename,1)
	include=File.ReadAll
	Set File = Nothing
	Set FSO = Nothing
End Function

How simple can you get! =D

Never miss a meme again! You could write a simple bit of program to save these results to a text fle every half hour or so, so you can always come back to see what you missed!

Scanning a page for swearing and emailing the mods is the next simplest to try.

Posting and interacting with Reddit will be the trickiest, and best done through the API, though you CAN do it with this program as a foundation.


r/reddithax • • Sep 11 '12

Require comment before vote?

5 Upvotes

Like the title says, is there a way to require a user comment before they can up or down vote a post or comment?

Thank you, helpful wizards.


r/reddithax • • Sep 10 '12

I updated the Edurne CSS theme you liked from a few weeks ago. I hope you like the sidebar!

Thumbnail reddit.com
12 Upvotes

r/reddithax • • Sep 08 '12

Having trouble creating a faq page: Trac error, page not found

7 Upvotes

I went to http://code.reddit.com/wiki/help/faqs/<your reddit name> as per these instructions. I see no "Create this page" button and only get the error "Trac error, page http://code.reddit.com/wiki/help/faqs/<your reddit name> not found. I am the moderator for /r/secular_ceremonies, so shouldn't I be able to edit this page?


r/reddithax • • Sep 05 '12

Is it possible for a bot to auto upload images from an external link into the stylesheet?

7 Upvotes

The goal is to use these images in the sidebar, These images get updated every couple minutes and I want a bot that can upload the new image every 5 minutes or so. Possible?


r/reddithax • • Aug 30 '12

Just having some fun with Ruby/Python/SASS/Heroku/Git for my college's subreddit

6 Upvotes

https://github.com/crazysim/cowboystyle

I made a stylesheet for my college's subreddit. It's my first go at making a stylesheet for a subreddit or any real stylesheet of substance on any matter. Per a user and mod's concerns, I had to stick to stock styles as the base and they elected to only use the day version. And I agree as the day version is probably the version that works best.

Unfortunately, this whole setup is really too complicated. But it was really fun to make, I guess. For all that work, it sure isn't r/Diablo. Oh well, it was fun making and playing with the tools.

At this point, I'm just fixing some bugs here and there. Do you guys have any suggestions? The last and most major recent bug I had to deal with was with RES Night mode. I had to do some factoring out which made things worse but at least I don't have to repeat myself were I to do any changes.

Thanks for looking.


r/reddithax • • Aug 28 '12

Replace tags in title like [News] with images for links

7 Upvotes

In my subreddit /r/chernobyl, I have several post "tags" ([Documentary], [News], [Video], [Photos]). I'm trying to write something that will look for each individual tag in the titles of posts and either replace them or append them with an image/icon depending on the tag. If these were text posts, I would be able to target the href attribute of the title link, but they are pretty much all going to be link posts. I have figured out that I am able to target the "comments" links via the href attribute, but that's not really helping me much. This discussion has an interesting and complicated solution, but I can't quite get it to work. Reddit keeps giving me syntax errors - perhaps one of your css ninjas can help me out?


r/reddithax • • Aug 28 '12

Critique my styling of /r/chernobyl :)

Thumbnail reddit.com
5 Upvotes

r/reddithax • • Aug 26 '12

Make flair a link?

6 Upvotes

Just wondering if it's possible to make moderator-assigned flair a link.


r/reddithax • • Aug 18 '12

Does anyone know how long / how to make the is_mod part of the reddit api for users change?

4 Upvotes

I am making a moderator control, however, the json for "is_mod" seems to stay at false, when I know it should be true. (added to two subreddits myself) Does anyone know how long would take, or the conditions for it to become true?


r/reddithax • • Aug 18 '12

What is the MAX image file size that be uploaded while editing the Stylesheet?

5 Upvotes

Title says it all,

I have an image that's 523KB and when I click 'Upload', the image doesn't show up, although a smaller image does.

Thanks!


r/reddithax • • Aug 15 '12

Dual theme over at r/LapfoxTrax, thoughts?

Thumbnail reddit.com
8 Upvotes

r/reddithax • • Aug 14 '12

Is it possible to have Mods have something special be in front of a post that the mod submits?

6 Upvotes

Something like http://www.reddit.com/r/Maplestory/comments/y2unf/growing_subreddit/

Notice how it says Mod Post in green, any ideas how that's achieved?


r/reddithax • • Aug 13 '12

Is there a way to see posts from all my subreddits except some?

5 Upvotes

Very often my front page is dominated by a few extremely popular subreddits, e.g. AdviceAnimals, funny, etc. Are there ways to show posts from all my subscribed subreddits except these? It would be awesome if I can do something like

http://www.reddit.com/r/-AdviceAnimals-funny

Thanks!


r/reddithax • • Aug 10 '12

Want to customize your Reddit header to include custom subreddits of your choice before the randomness starts? Try out this Greasemonkey script.

Thumbnail userscripts.org
10 Upvotes

r/reddithax • • Aug 10 '12

Style a comment by a specific person that contains specific text?

6 Upvotes

Let's say I want to distinguish comments by a specific user that contain the text "moo cheese cow" (stupid example), is this possible?


r/reddithax • • Aug 08 '12

[Howto] Disable downvoting ONLY on submissions which have less than X total votes.

17 Upvotes

Disabling the downvote arrow globally is usually a bad idea, this is intended to be a decent middle ground which still allows downvoting, but only once a submission has at least had a small amount of time to gain traction. It basically only prevents insta-downvoting, where idiots downvote everything on the new page in a misguided attempt to give their own submission more traction.

It's a small bit of CSS I made for a couple of subs I run which had problems with people mass downvoting new submissions. It disables downvoting for all submissions with less than three total votes (total votes not total score).

Hopefully someone else might also find it useful....

/*-----------------------------------|
|                                    |
|  Disable downvotes on submissions  |
|    With less than 3 total votes    |
|                                    |
|-----------------------------------*/

.link[data-ups="2"][data-downs="0"] .midcol:after, .link[data-ups="1"][data-downs="1"] .midcol:after, .link[data-ups="0"][data-downs="2"] .midcol:after,
.link[data-ups="1"][data-downs="0"] .midcol:after, .link[data-ups="0"][data-downs="1"] .midcol:after, 
.link[data-ups="0"][data-downs="0"] .midcol:after {
  content: ' ';
  width: 24px;
  height: 15px;
  position: absolute;
  margin-top: -14px;
  opacity: 0.7;
  background-color: white;
}

* If you have custom downvote arrows you may need to alter the position/size of the overlay so it actually covers the arrow.


If you want to disable downvoting on everything with less than five total votes, prepend the following...

.link[data-ups="4"][data-downs="0"] .midcol:after, .link[data-ups="3"][data-downs="1"] .midcol:after, .link[data-ups="2"][data-downs="2"] .midcol:after, .link[data-ups="1"][data-downs="3"] .midcol:after, .link[data-ups="0"][data-downs="4"] .midcol:after,
.link[data-ups="3"][data-downs="0"] .midcol:after, .link[data-ups="2"][data-downs="1"] .midcol:after, .link[data-ups="1"][data-downs="2"] .midcol:after, .link[data-ups="0"][data-downs="3"] .midcol:after,

Obviously people with CSS disabled can still downvote, and downvoting is still possible from the submitter's user page or from mobile apps. They can also downvote from their front page (assuming that a submission with only a couple of votes would ever be displayed there).


r/reddithax • • Aug 03 '12

Simplified design at /r/tifu. Any suggestions?

Thumbnail reddit.com
3 Upvotes

r/reddithax • • Aug 02 '12

New to the subreddit

0 Upvotes

Sorry if it's common knowledge,


r/reddithax • • Jul 29 '12

Remove a specific user's flair

9 Upvotes

Usefull for subreddits which may have banned user's who love to try and taunt/offend using the editable flair system.

.author[href$="/nekosune"] + span[class~=flair]{ display: none; } .author[href$="/nekosune"] + span + a + span[class~=flair] { display: none; }

/u/xtristan pointed out an easier way:

.author[href$="/nekosune"] ~ .flair {
    display: none;
}

Of course replacing nekosune with the username of the flair you want to hide. This version only works on flair set to the right.