Flickr Hacks / Discuss

Current Discussion

Request: A fast way to know if I've already commented a particular picture (just like the favorite star but for comments)
Latest: 3 hours ago
Flickr Award Counter Problem
Latest: 7 hours ago
# of favs in the photostream
Latest: 14 hours ago
GM Script: Flickr Easy Photo Post - Yet Another Way To Post Photo In Comments. (the easiest probably)
Latest: 15 hours ago
What are the best Greasemonkey scripts?
Latest: 34 hours ago
Award Counter for Google Chrome
Latest: 35 hours ago
GM Script: View date of addition in a group pool
Latest: 2 days ago
justified groups..... eeeeek
Latest: 2 days ago
Looking for a script that reveals my untagged groups
Latest: 3 days ago
A script to remove Aviary
Latest: 4 days ago
Flickr easy post help---
Latest: 4 days ago
flexplore
Latest: 4 days ago
More...

Search this group's discussions

GM Script: Smilies and other tools

view profile

Super Rabbit One  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.

www.ts0.com/flickrcommenttools/FlickrCommentTools.user.js
Posted at 4:44PM, 6 March 2007 PDT (permalink)

← prev 1 2
(1 to 100 of 191 replies in GM Script: Smilies and other tools)
view photostream

.CK says:

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

view photostream

Werner Wattenbergh  Pro User  says:

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

view photostream

Lynne Hand  Pro User  says:

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

view photostream

Super Rabbit One  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 64 months ago. (permalink)
Super Rabbit One edited this topic 64 months ago.

view photostream

dopiaza  Pro User  says:

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

◄DRB► [deleted] says:

Nicely done!
Posted 64 months ago. (permalink)

view photostream

premasagar says:

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

view photostream

Latente 囧 www.latente.it  Pro User  says:

noooo please
Originally posted 64 months ago. (permalink)
Latente 囧 www.latente.it edited this topic 64 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 64 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 64 months ago. (permalink)

view photostream

Super Rabbit One  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 64 months ago. (permalink)

PhiIip [deleted] says:

JS, it would be lovely if your image posting tool  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 64 months ago. (permalink)
PhiIip edited this topic 64 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 64 months ago. (permalink)

view photostream

aJ GAZMEN ツ GucciBeaR says:

bigg thanx
Posted 64 months ago. (permalink)

view photostream

Super Rabbit One  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 64 months ago. (permalink)

view photostream

Super Rabbit One  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 64 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 64 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 64 months ago. (permalink)
mortimer? edited this topic 64 months ago.

view photostream

mortimer?  Pro User  says:

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

view photostream

Super Rabbit One  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 64 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  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 64 months ago. (permalink)

view photostream

Super Rabbit One  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 64 months ago. (permalink)

PhiIip [deleted] says:

when both of u are done, it'll be great...:)
Posted 64 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 64 months ago. (permalink)
Colpro edited this topic 64 months ago.

view photostream

aJ GAZMEN ツ GucciBeaR 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 64 months ago. (permalink)

view photostream

Super Rabbit One  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 64 months ago. (permalink)

view photostream

Christine Lebrasseur  Pro User  says:

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

view photostream

Shemer says:

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

view photostream

Perla* says:

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

view photostream

APD Photo  Pro User  says:


Posted 64 months ago. (permalink)

view photostream

Perla* says:

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

view photostream

Perla* says:

See what I mean above? 
What's wrong???   Help!!!
Posted 64 months ago. (permalink)

view photostream

Chatdurouge says:

Don't know about the weird characters, you can go back and edit them and they come out.  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.  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.  I really like your smiley script but these are just some of the difficulties that I ran into.

Thanks.   
Posted 64 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 63 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 63 months ago. (permalink)

view photostream

Lutz-R. Frank says:

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

view photostream

Batram  Pro User  says:

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

view photostream

Super Rabbit One  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 63 months ago. (permalink)

view photostream

Perla* says:

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

view photostream

Super Rabbit One  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 63 months ago. (permalink)

view photostream

Super Rabbit One  Pro User  says:

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

view photostream

Gunther 8-) says:

Thank you!!!
Originally posted 63 months ago. (permalink)
Gunther 8-) edited this topic 63 months ago.

dillweed. [deleted] says:

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

NudiePatooties [deleted] says:

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

view photostream

xx3734  Pro User  says:

It's great!

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

view photostream

Mr Jaded 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 63 months ago. (permalink)

view photostream

rebecca~ says:

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

view photostream

rebecca~ 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?  
Posted 63 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 63 months ago. (permalink)

view photostream

Son of Groucho  Pro User  says:

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

view photostream

Super Rabbit One  Pro User  says:

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

view photostream

Todd Moon  Pro User  says:


Pretty fancy script!
Originally posted 63 months ago. (permalink)
Todd Moon edited this topic 63 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 62 months ago. (permalink)
Steve Stone edited this topic 62 months ago.

view photostream

: HimUpNorth :  Pro User  says:

I unfortunately cannot add anything other than offer a thank you for a great script.
Posted 62 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 62 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 62 months ago. (permalink)

view photostream

CORDAN  Pro User  says:

Same here
Posted 62 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 62 months ago. (permalink)

view photostream

~XANE~[AWAY] says:

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

view photostream

Cooriander  Pro User  says:

So cool!
Posted 62 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 62 months ago. (permalink)
Cooriander edited this topic 62 months ago.

view photostream

abhic says:

this is great.

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

view photostream

abhic says:

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

view photostream

pallettina says:

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

view photostream

♥moorz84♥ 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 62 months ago. (permalink)
♥moorz84♥ edited this topic 62 months ago.

view photostream

pallettina says:


no solution about it ?
Posted 61 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 61 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 61 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 61 months ago. (permalink)
shotbart edited this topic 61 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 61 months ago. (permalink)

view photostream

shotbart  Pro User  says:

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

view photostream

Super Rabbit One  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 61 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 61 months ago. (permalink)

view photostream

rebecca~ says:

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

thanks to

Posted 61 months ago. (permalink)

view photostream

rebecca~ says:

don't mean to be annoying, but....
any way to bring back the spell-check function?
Posted 61 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 61 months ago. (permalink)
shotbart edited this topic 61 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 61 months ago. (permalink)

view photostream

Super Rabbit One  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 61 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 61 months ago. (permalink)

view photostream

shotbart  Pro User  says:

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

view photostream

Super Rabbit One  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 61 months ago. (permalink)

view photostream

Super Rabbit One  Pro User  says:

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

view photostream

~PuRpLe lOveR*  Pro User  says:

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

view photostream

conejo aureo says:

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

view photostream

Stitch  Pro User  says:

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

view photostream

Su℮ ❥ says:

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

view photostream

S.D.  Pro User  says:

Wow, VERY Cool Script, Thanks For making it!
Originally posted 60 months ago. (permalink)
S.D. edited this topic 60 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 60 months ago. (permalink)
clickykbd edited this topic 60 months ago.

view photostream

mortimer?  Pro User  says:

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

view photostream

Super Rabbit One  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 60 months ago. (permalink)

view photostream

clickykbd  Pro User  says:

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

view photostream

mortimer?  Pro User  says:

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

view photostream

S.D.  Pro User  says:

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

Posted 60 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 60 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 60 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 60 months ago. (permalink)
clickykbd edited this topic 60 months ago.

view photostream

Super Rabbit One  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 60 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 admit validity to that viewpoint.

Which has the scary implication that I should be okay with all the crazy awards too. haha.

Which i'm not, so I guess the only recourse for people such as me is to continue building adblock definitions. *sigh*
Posted 60 months ago. (permalink)

view photostream

jciv  Pro User  says:

People would be using smiley images without this script anyway. This just makes it easier and probably encourages more people to do it. But for annoying images in comments, tiny little smilies are far from the worst offenders. Plus having all the smilies hosted in the same place makes the easily blockable by Adblock.

Recently someone else was complaining they didn't want to see image comments. Most don't really bother me that much as long as they aren't giant and animated, but I came up with a way to block them all. Using the RIP extension and the right rules I hid any image inside comments. No need to keep updating when you find new images (unless Flickr changes the page layout too much). See my post here.
Posted 60 months ago. (permalink)

view photostream

J.Chin Photography  Pro User  says:

Where can I find a list of more smileys so we can add them to this wonderful script?

I am particularly looking for a "thumb up" and "thumb down" smiley. Thanks.
Posted 60 months ago. (permalink)

← prev 1 2
(1 to 100 of 191 replies in GM Script: Smilies and other tools)
RSS 2.0 feedSubscribe to a feed of stuff on this page...</!!> Feed – Subscribe to Flickr Hacks discussion threads