[thelist] Bookmarket to copy favicons

Richard Bennett richard.bennett at skynet.be
Sun Sep 26 10:55:15 CDT 2004


On Sunday 26 September 2004 11:38, Peter-Paul Koch wrote:
> > I was hoping folks on the list could point me towards some resources that
> > would help me write a bookmarklet/favelet. I'm creating a favicon gallery
> > and I'd like to write a bookmarklet that will copy the favicon from a
> > site to my local drive; huge time saver!
>
> That's impossible.
>
> JavaScript cannot write files to your filesystem, because that would
> create an unacceptable security hazard.

Sure you can...
Run a server off your local pc.
Set up an image-upload cgi script on it.
make a bookmarklet that appends the site your are visitng's root URL/ + 
favicon to 'http://yourIP/cgi-bin/imageuploadscript.pl.

;o)







More information about the thelist mailing list