You aren't signed in     Sign In    Help

Flickr Hacks / Discuss

Current Discussion

GM Script: Flickr Contacts Organiser - Tag your contacts
Latest: 48 minutes ago
Getting Flickr on my site
Latest: 2 hours ago
Pool Pictures on Homepage
Latest: 2 hours ago
GM Script: AllSizes+ v1.44
Latest: 6 hours ago
Script needed
Latest: 24 hours ago
GM Script: Group Pool Admin - Warn + Delete
Latest: 25 hours ago
GM Script: Flickr Mail Manager
Latest: 2 days ago
Filtering photostream by authorized users
Latest: 2 days ago
GM Script: Groups Organiser - Tag your groups, sort your group list and quit groups more easily
Latest: 2 days ago
GM Script: Multi Group Sender - Send your image to multiple groups at once
Latest: 3 days ago
GM Script: Scout Link
Latest: 3 days ago
GM Script: Insert Group Signature Photo Comment Tool
Latest: 4 days ago
More...
spacer image

GM Script: Smilies and other tools

view profile

Jessica Shannon  Pro User  says:


I've just fixed the image selector on my comment tools script that broke due to a change in the xml namespace on rss feeds from flickr (I think). And I decided to add smilies to it.

FlickrCommentTools.user.js
Posted at 4:44PM, 6 March 2007 PDT ( permalink )

< Prev 1 2
(1 to 100 of 115 replies in GM Script: Smilies and other tools)
view photostream

.CK  Pro User  says:

Good job. I like this.
Posted 18 months ago. ( permalink )

view photostream

Werner Wattenbergh  Pro User  says:

Oh no, please no smileys.
Posted 18 months ago. ( permalink )

view photostream

waɪ.tiː  Pro User  says:

Jessica, I salute your bravery. This is definitely a love it or hate it script. LOL
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

everyone loves smilies!

and its just one of things you can do, there's also an option to insert a link to pics straight off your photostream like this



as well as indent buttons for quotes

Originally posted 18 months ago. ( permalink )
Jessica Shannon edited this topic 18 months ago.

view photostream

dopiaza  Pro User  says:

I can see the lynch mob gathering right now...
Posted 18 months ago. ( permalink )

◄DRB► [deleted] says:

Nicely done!
Posted 18 months ago. ( permalink )

view photostream

premasagar  Pro User  says:

Oh no... Flickr embraces Web1.0...
Posted 18 months ago. ( permalink )

view photostream

Latente ★ HALP!  Pro User  says:

noooo please
Originally posted 18 months ago. ( permalink )
Latente ★ HALP! edited this topic 18 months ago.

view photostream

mortimer?  Pro User  says:

I these little blinky things, but if you don't, just go and install the counter script
Posted 18 months ago. ( permalink )

PhiIip [deleted] says:

mortimer, thank you for the counter script :)
JS, thank you for the part of the script that has no smileys...
;)
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

mortimer, did you just write that in response to my script? i just installed it, i've gone off the smilies
Posted 18 months ago. ( permalink )

PhiIip [deleted] says:

JS, it would be lovely if your image posting tool&nbsp; would implement the "flickr Easy Photo Post" script, that remember the last x pic visited... i love to post other people's pic that i like, instead of merely mine...

for now, i'll use both!

Originally posted 18 months ago. ( permalink )
PhiIip edited this topic 18 months ago.

view photostream

mortimer?  Pro User  says:

Jessica Shannon Well, I wanted to implement a script that replaces text smiley to images since a few weeks, then you come out with your great wysiwyg editor, with image smileys... and people start complaining, so just for fun (and because I couldn't fine an effective way of doing it in the other direction) I implemented that one :-D

I would love to use your script for the wysiwyg, but it doesn't seem to work with the Easy Photo Post. Do you think we can work together to make them compatible?
Posted 18 months ago. ( permalink )

view photostream

aJ GAZMEN ツ GucciBeaR  Pro User  says:

bigg thanx
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

moritmer, i tried to keep my script as compatible with everything else as possible. The wysiwyg editor is an iframe with design mode on, but the original textarea still exists (hidden) and i used an interval to monitor changes in either and copy from one to the other, since there's no reliable event to listen to. So any script changing the textarea should be reflected in the wysiwyg designer.

I was working on a history thing that would offer you the last so many visited photos too. Have you thought about using a popup like my image inserter? the code is on my blog here
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

think i found the problem, setting display none on the textarea means your xpath query doesn't work. but it can still be found via getElementsByTagName. I'll change the way it hides it for maximum compatibility
Posted 18 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Yes, you are right, it's not what I told you in my email, but a problem of the xpath... I'll fix that then. Thank you.
Posted 18 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Ok, it is what I told you in my email and not a simple problem of xpath ... if the element is hidden, no selectionStart availlable... how do you get that from an editing iframe?
Originally posted 18 months ago. ( permalink )
mortimer? edited this topic 18 months ago.

view photostream

mortimer?  Pro User  says:

Ok, I tried iframe.contentDocument.getSelection and createRange, but they are both empty... I am&nbsp; not an expert with iframes though.
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

inserting the text in the iframe is pretty easy
ifrm.contentDocument.execCommand('inserthtml',false,'hello world');

the problem is being able to find it reliably, and i dont like the idea that your script needs to be aware of mine in anyway, it's not well encapsulated and its my scripts fault.

can you set the cursor position programatically in a textarea? if so I could get it to mirror the position from the iframe and hide the textarea differently so you dont get those exceptions
Posted 18 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Well, currently, I tryed this fix (which is not satisfactory): if I get an exception, I suppose it's because of your script, search the iframe and work on that instead... but it's a bit odd and require dealing with unsafeWindow which is not recomended.

I am not sure you can modify the textarea.selectionStart (which is the caret position if there&nbsp; is no selection), I only read it to insert the content in the right place. But if display=none, it's not availlable. Perhaps if instead of hidding the element, you move it out of the window (hack the css position), it might work better.
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

yeah i can hide the textarea in another way that doesnt break that stuff, i just want to find a way that will let your script (and any similar ones) work as normal without having to know about mine. I'll let you know how it goes
Posted 18 months ago. ( permalink )

PhiIip [deleted] says:

when both of u are done, it'll be great...:)
Posted 18 months ago. ( permalink )

view photostream

Colpro  Pro User  says:

This is like a soapy! One isn't at all sure what is going on, who is bad or good, nor who is going to come out on top. Great script (yeh, a poor pun) and I for one can't wait for the final episode, just to see what all the intense discussion has achieved!
Originally posted 18 months ago. ( permalink )
Colpro edited this topic 18 months ago.

view photostream

aJ GAZMEN ツ GucciBeaR  Pro User  says:

how come i cant have both of my comment box script & icon reply script at same time.
it's either one or other!
:[ moooow

Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

same prob as the image posting script, i've been working for about 14 hours straight so i'll have to fix it tomorrow
Posted 18 months ago. ( permalink )

view photostream

Christine Lebrasseur  Pro User  says:

mortimer? Merci !
Posted 18 months ago. ( permalink )

view photostream

Shemer says:

Yey!Thank you!
Originally posted 18 months ago. ( permalink )
Shemer edited this topic 18 months ago.

view photostream

Perla*  Pro User  says:

Thank you!!!
Posted 18 months ago. ( permalink )

view photostream

Paul Vernon Photography  Pro User  says:


Posted 18 months ago. ( permalink )

view photostream

Perla*  Pro User  says:

I'm getting out kinds of weird characters whenever I use any smiley...&nbsp;
Posted 18 months ago. ( permalink )

view photostream

Perla*  Pro User  says:

See what I mean above?&nbsp;
What's wrong???&nbsp;&nbsp; Help!!!
Posted 18 months ago. ( permalink )

view photostream

Chatdurouge  Pro User  says:

Don't know about the weird characters, you can go back and edit them and they come out.&nbsp; When I first got greasemonkey, I would get the nbsp stuff with my refer comment script.

My problem is I can use quick comment and I can't copy codes of pictures and post them in my comments.&nbsp; Also, the insert image thing only shows my latest images, I can't seem to scroll through them.

Sorry if it seems like I'm complaining.&nbsp; I really like your smiley script but these are just some of the difficulties that I ran into.

Thanks.&nbsp; &nbsp;
Posted 18 months ago. ( permalink )

view photostream

Eric Paul Owens  Pro User  says:

It is probably the same problem outlined above but installing this makes it so the quick comment script does not work...
Posted 18 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

I updated the two scripts:
- flickr easy photo post
- flickr quick comment

so that they are compatible with that one. It's a hack, so it's gone work but is not very satisfying. You can re-install them for the moment until we find a better solution.
Posted 18 months ago. ( permalink )

view photostream

Lutz-R. Frank  Pro User  says:

Thanky you very much for a great plugin
Posted 18 months ago. ( permalink )

view photostream

Batram  Pro User  says:

Thank you Jessi!
Originally posted 18 months ago. ( permalink )
Batram edited this topic 18 months ago.

view photostream

Jessica Shannon  Pro User  says:

ok, i've just realised how the none-breaking spaces are getting in there, the firefox wysiwyg editor inserts them when you use two or more spaces together to force the extra white space to be displayed. But flickr is escaping html entities, so i'm going to have to swap them out with a regex.

New version coming asap!

I also had the idea of making smilies quietly link to a page about this script so more people can use it, does anyone think that would be a problem? I don't want to be intrusive.
Posted 18 months ago. ( permalink )

view photostream

Perla*  Pro User  says:

I think it's an awesome idea!! Bring it on! "-)
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

ok, i've added in the little link, hope thats ok with people.

I've also fixed the image alignment and a few other things, need to
start work on trying to get smilies to replace automatically (has to be
a way using ranges)

And I might finish the work on the image
selector that will let you browse all your images, and maybe a group
linker would be good?
Posted 18 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

i cant fix the alignment, or that annoying blue background, since flickr won't let any style attribs through
Posted 18 months ago. ( permalink )

view photostream

gunther_999 says:

Thank you!!!
Originally posted 18 months ago. ( permalink )
gunther_999 edited this topic 18 months ago.

dillweed. [deleted] says:

kudos to mortimer for the counter.
Posted 18 months ago. ( permalink )

view photostream

NudiePatooties  Pro User  says:

This is lovely!
Posted 18 months ago. ( permalink )

view photostream

xx3734  Pro User  says:

It's great!

Originally posted 18 months ago. ( permalink )
xx3734 edited this topic 18 months ago.

view photostream

Mr Jaded  Pro User  says:

It would be great if you added an "Edit HTML" option to this script as, at present, there is no way to add images not in your stream.
Posted 18 months ago. ( permalink )

view photostream

rebecca~  Pro User  says:

big hug!!! you've totally made my day.
Posted 17 months ago. ( permalink )

view photostream

rebecca~  Pro User  says:

actually i think there's a problem with the smiley script because now that i've installed it, the name reply/icon reply script no longer works... any thoughts?&nbsp;&nbsp;
Posted 17 months ago. ( permalink )

view photostream

Matt Madd  Pro User  says:

Thanks for this script, is there a way that you can also allow ICON REPLY using your script ?
As of now if I hv icon reply , then it will not show up on your comment window.
Posted 17 months ago. ( permalink )

view photostream

Son of Groucho  Pro User  says:

Your script is really useful, but I wondered about the same thing.
Posted 17 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

hi, sorry i've been a bit busy recently, have fixed the &nbsp; problem, will get onto the others shortly
Posted 17 months ago. ( permalink )

view photostream

Todd Moon  Pro User  says:


Pretty fancy script!
Originally posted 17 months ago. ( permalink )
Todd Moon edited this topic 17 months ago.

view photostream

Steve Stone  Pro User  says:

Great script - I really like it - thank you!
Two things:
1) Can anyone tell me why the built in spelling checker doesn't work by default in the text field? I changed layout.spellcheckDefault to 2 in the about:config page but I still have to right click and select 'spellcheck this field' to get the spell checker to work.

2) It would be lovely to have a blinking cursor in the text field when you click on it but haven't typed anything yet. I keep clicking on the box thinking I haven't selected it yet - a blinking cursor would show me that it will receive what I type!
(I am using FF 2.0.0.3)

Thanks (<- Just had to try these out!)
Originally posted 17 months ago. ( permalink )
Steve Stone edited this topic 17 months ago.

view photostream

: HimUpNorth :  Pro User  says:

I unfortunately cannot add anything other than offer a thank you for a great script.
Posted 17 months ago. ( permalink )

view photostream

~*Denise*~  Pro User  says:

I have a problem

After I installed the smiley script my "name reply" doesn't work any fix for this?
Posted 17 months ago. ( permalink )

GoldenGaze [deleted] says:

I had the same problem so I uninstalled the smiley tools script, would be nice to get them both working though.
Posted 17 months ago. ( permalink )

view photostream

CORDAN  Pro User  says:

Same here
Posted 17 months ago. ( permalink )

view photostream

~*Denise*~  Pro User  says:

Thanks for the replies CORDAN and GoldenGaze that's what I have had to do as well :o\
Posted 17 months ago. ( permalink )

view photostream

~XANE~ says:

it is giving me error on line 34 char 5 "document" is undefind. Plz help
Posted 17 months ago. ( permalink )

view photostream

Cooriander  Pro User  says:

So cool!
Posted 16 months ago. ( permalink )

view photostream

Cooriander  Pro User  says:

Spell checking is not working when using this GREAT tool or the name_reply/icon scrip ):

ETA: sorry I just noticed that spell checking and name/reply already have been addressed by other comments above.
Originally posted 16 months ago. ( permalink )
Cooriander edited this topic 16 months ago.

view photostream

abhic says:

this is great.

wondering if we could do icons for 'notes' as well?
Posted 16 months ago. ( permalink )

view photostream

abhic says:

just adding my vote also for icon reply/name reply with this script
Posted 16 months ago. ( permalink )

view photostream

pallettina  Pro User  says:

me too!
either name reply or icon reply didn't work, so I uninstalled it
Originally posted 16 months ago. ( permalink )
pallettina edited this topic 16 months ago.

view photostream

moorz84  Pro User  says:

FYI: When I try to give out an award like ABigFave or my winner trouphy....andi insert that copy and paste....it does not show up correct...here i will show you....

see this does work....can you fix? i have to say i love the smiley..s

this should show the actual award
<a href="http://www.flickr.com/groups/mywinners" title="Photo

Sharing"><img src="http://static.flickr.com/59/205703677_42bc2e7649_t.jpg"

width="71" height="100" alt="WINNER" /></a>

You are my winner!

Please add this photo to

www.flickr.com/groups/mywinners/
Originally posted 16 months ago. ( permalink )
moorz84 edited this topic 16 months ago.

view photostream

pallettina  Pro User  says:


no solution about it ?
Posted 16 months ago. ( permalink )

view photostream

shotbart  Pro User  says:

This is just a great script, and I'm loving it alot, but... it has an annoying bug:
when you try to insert html source code - in the case of awarding a
shot with a copy&paste code, for example - the resulting comment
incorporates the code as pure text (it seems it's treating the source
code as <pre> content...).

Would it be hard to incorporate
a new function/button in the script that allows the user to insert
source html code directly into the modified comment box?

This would make this script... perfect.

Thanks for your replies, and have a nice day
Posted 15 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

ok, as I had five minutes and that was a big request, I modified Jessica 's script to be more friendly with the other script.

You can get the new version here.

I tested it with:
- flickr refer comments
- easy photo post
- buddy icon reply
They all work fine now, please let me know if you find some other script that still doesn't work.

If someone sends me a nice icon for the toolbar, I'll add a button to insert simple html too ;)
Posted 15 months ago. ( permalink )

view photostream

shotbart  Pro User  says:

If you give me the width/height measures needed for it, I would do very happily the job in a hurry...
Originally posted 15 months ago. ( permalink )
shotbart edited this topic 15 months ago.

view photostream

mortimer?  Pro User  says:

well, it would have to be similar to the other icons in the toolbar, height: 19px, width: 19 (or 45 if you want to do something like the insert image). Cheers
Posted 15 months ago. ( permalink )

view photostream

shotbart  Pro User  says:

Already done... how can I submit it to you?
Posted 15 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

sorry i've been a bit crap at supporting this, but i guess this is the power of open source! thanks guys
Posted 15 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

Ok, I updated the script, now availlable here .


You'll now have a dialogue to put html source code in the comment box.

(thank you for the nice icon)
Posted 15 months ago. ( permalink )

view photostream

rebecca~  Pro User  says:

ooooo i'm in love!
this script makes writing comments more fun than looking at the photos. lol

thanks to

Posted 15 months ago. ( permalink )

view photostream

rebecca~  Pro User  says:

don't mean to be annoying, but....
any way to bring back the spell-check function?
Posted 15 months ago. ( permalink )

view photostream

shotbart  Pro User  says:

It's been a real pleasure to contribute for such a beautiful script!!!

Keep up the great work
Originally posted 15 months ago. ( permalink )
shotbart edited this topic 15 months ago.

ipernity.com/home/nicoleb / No to censorship [deleted] says:

I think, I rather have the spellcheck for now...but a very cool thing indeed!
:)
Posted 15 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

i've updated the script on my site

sorry , i changed the icon
yours was really good, I just needed to change the shading and I thought chevrons was a more common icon for HTML. I feel bad now
Posted 15 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

There is a very strange incompatibility with the Exif Decorator script.

If you have both installed, the exif info from the decorator are copyed at the end of your comment. I tried to find the problem, but I don't see what it ca be. Any idea Jessica?


It would be a good idea to limit the include of the script to something less than flickr/* as it's only useful in group discussions (flickr.com/groups/*/discuss), photo comments (flickr.com/photos/*/*) and edit of these comments.

The flickrmail compose is not compatible with this script as the html is not permitted there.
Posted 15 months ago. ( permalink )

view photostream

shotbart  Pro User  says:

Jessica, don't worry, it's been a pleasure anyway to... push the development
Posted 15 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

i cant get the exif script, it's a 404

is it doing a document.write that is being fired on the iframe used for the editor?
Posted 15 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

i've updated the includes
Posted 15 months ago. ( permalink )

view photostream

~PuRpLe lOveR*  Pro User  says:

Thanky you very much for a great plugin
Originally posted 15 months ago. ( permalink )
~PuRpLe lOveR* edited this topic 15 months ago.

view photostream

conejo aureo  Pro User  says:

Just love it, thanks a lot
Posted 15 months ago. ( permalink )

view photostream

Stitch  Pro User  says:

love it, hope Yahoo won't complain
Originally posted 15 months ago. ( permalink )
Stitch edited this topic 15 months ago.

view photostream

Su℮  Pro User  says:

I adore this script!
Posted 15 months ago. ( permalink )

view photostream

S.D.  Pro User  says:

Wow, VERY Cool Script, Thanks For making it!
Originally posted 15 months ago. ( permalink )
S.D. edited this topic 15 months ago.

view photostream

clickykbd  Pro User  says:

Does anyone else find this script particularly evil? I mean... it sticks a smiley in as an animated gif that everyone is forced to see. Usually most systems that use emoticons give users the option to ignore them... which is impossible here.

I think i'll be adding some urls to my adblock filters.
(which worked nicely)
Originally posted 15 months ago. ( permalink )
clickykbd edited this topic 15 months ago.

view photostream

mortimer?  Pro User  says:

clickykbd, check out: www.flickr.com/groups/flickrhacks/discuss/721575945743828...
Posted 15 months ago. ( permalink )

view photostream

Jessica Shannon  Pro User  says:

sorry you don't like them but there's no way for me to add functionality to hide them for people not using this GM script, i can put a link to the remove script on the site that the smilies click through too. Maybe i'll do that
Posted 15 months ago. ( permalink )

view photostream

clickykbd  Pro User  says:

mortimer? that link points back to this topic?
Posted 15 months ago. ( permalink )

view photostream

mortimer?  Pro User  says:

yes, it goes back to a particular post in this topic , read it.
Posted 15 months ago. ( permalink )

view photostream

S.D.  Pro User  says:

Maybe an Option flag to use Letters or Graphics?
Me, I like Graphics...

Posted 15 months ago. ( permalink )

view photostream

clickykbd  Pro User  says:

mortimer?
Thanks mort. Didn't catch that because it was actually reloading the page to get there. Still not used to that.
Posted 15 months ago. ( permalink )

view photostream

clickykbd  Pro User  says:

Jessica Shannon

Wouldn't a script that, instead of embedding them directly as images in the posted html, simply honors certain text smiley conventions and locates/generates them on page-load (only for the user running the script) make more sense?
Posted 15 months ago. ( permalink )

view photostream

clickykbd  Pro User  says:

I'd like to summarize my objection in a way that hopefully makes more sense and is less "gut" driven...

Basically. I view the use of UserScripts as a handy way to change your user experience on a website. That is their intended design. But when a user script changes EVERYONES experience... I think it steps beyond what someone should be doing to a service just because they want to do it. Mort's anti-smiley script is a hacky solution, and obviously won't work for anyone running browsers that don't support GM, or don't have the knowledge/will to implement such a defense.

This came up with "seen in xxx blah" comment script to, which I actually loved. But in retrospect I can see why many objected to it. For the very reason I mention above. Mort had posted earlier what I re-iterated, and that a proper smiley UserScript should only apply to that user. It's completely possible... and you would have no grumbly objectors like myself. ;-) (see I use them too, I just like the texty ones)
Originally posted 15 months ago. ( permalink )
clickykbd edited this topic 15 months ago.

view photostream

Jessica Shannon  Pro User  says:

You could argue though that part of my user experience is expressing myself in a certain way, using smilies.

The script could do it retrospectivly, but the comment displayed wouldn't necessarily be what the commenter had intended.
Posted 15 months ago. ( permalink )

view photostream

clickykbd  Pro User  says:

Being within a service where inclusion of images in comments is inherently built in (and the expressiveness that comes with that ability)... I suppose I have to admi