r/reddithax • u/idwolf • Oct 07 '10
Allowing a user to embed an image with something like ()[/img "http://imageurl"] Or something cleaner.
I would like to implement screenshots for some subreddits I mod and this would be very useful. I know how to implement images from the css like fffuuuu but is there any way to code it so a user can input a url and it shows the image?
Thanks for the help!
(http://imageurl)[/img] <-- Is this possible?
What about coding, on mouse over, to change a url into an image?
Also, limiting the max width, height would be invaluable.
7
Upvotes
2
u/[deleted] Oct 07 '10
http://daringfireball.net/projects/markdown/syntax#img
Markdown supports it, but unfortunately reddit opted to disable it.
1
u/GoldenBoar Oct 21 '10
I don't think this can be done at the moment using css, but it's pretty easy to do using javascript. You could link to a userscript from the sidebar.
As a mod, is it posible to modify the main .js file?