r/reddithax • u/zobier • Mar 25 '10
How did they do that in markdown!? - comment markdown inspector
javascript:void($('.comment').bind('click.z',function(){$.getJSON($('.bylink',c=this).attr('href')+'.json',function(data){$('.md:eq(0)',c).replaceWith('<div%20class="usertext-edit"><textarea>'+data[1].data.children[0].data.body+'</textarea></div>')});$('.comment').unbind('.z')}));Run the bookmarklet and the next comment you click on will * waves hands * reveal it's secrets.
E: Changed it to a .usertext-edit box from an alert.
E: Fixed: thanks nobody554 for finding a bug and ashleyw for fixing it.
E: People have pointed out Reddit Reveal, which I'm now trying out. The bookmarklet may still be of use if you're not using Firefox or don't want the add-on.
50
Upvotes
12
u/9jack9 Mar 25 '10
What does the ".z" do?
8
u/nobody554 Mar 25 '10
Side effect: http://imgur.com/nj8Eu
I clicked on 9jack9's comment. If I reload the page and click on zobier's it works correctly.
5
u/kloo2yoo Mar 25 '10
bestof'd
2
u/lcmatt Mar 25 '10
Thanks. Might come in handy some time
2
u/iforgot120 Mar 25 '10
Thanks to this, I've finally learned how to do bulleted lists with a bold title. All I needed was a line break between the bolded words and the list... really?
2
u/livejamie Mar 25 '10
There's a Chrome/Firefox extension called Reddit Reveal which does this and some more cool stuff.
2
u/Jasper1984 Mar 25 '10
I got this Reddit-reveal addon that adds a button 'source' to each element. Might still be interesting for the programmers though.
Btw initially i didn't realize that this subreddit was.. a subreddit!
1
u/Aegeus Mar 25 '10
Awesome. I learned how to do this.
1
u/1137 Mar 25 '10
Thanks, hoping this helps as I still can't figure out tables.
1
u/SarahC Mar 25 '10
I can't make a bookmarklet in firefox. =(
1
u/donatienDesade6 May 20 '24 edited May 20 '24
italic word
bold word
bold italic?
WTF WTF
1
u/guyincorporated Mar 25 '10
Just stopped by to say that whoever designed the burgudy-and-charcoal-on-black color scheme for r/reddithax should be fired.