Last.fm - Favicon Changer

By Steven Rollason Last update Aug 8, 2008 — Installed 2,118 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 6 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
semer Scriptwright

Hi,

I was wondering if you could help me generalize this script so I can alter it to change... well, add, really... a favicon to a forum I use a lot? I'd also like one to change the google favicon back to the old one. I hate the new one!

I haven't programmed since high school, so the most I've been able to make so far for greasemonkey was a script to change some page titles :-/

 
VxJasonxV Scriptwright

X1011 check out my update to this script:
http://userscripts.org/scripts/show/14115

Steven, my update is all yours if you want it.
If you update your script to be transparent, I'll take mine down.

 
VxJasonxV Scriptwright

Soapynebula;
base64 encoding should be simple via pratically any scripting language.

PHP has the base64_encode() and base64_decode() functions.
(Use file_get_contents on an image into a variable, run the variable through echo base64_encode($theVariable); and you have the base64 you can put after the data:image/png;base64, part)

Ruby has the b64encode() method ( http://www.ruby-doc.org/stdlib/libdoc/base64/rd... )

Python uses b64encode() as well.

And perl uses encode_base64() ( http://perl.active-venture.com/lib/MIME/Base64.... ).

Enjoy.

 
X1011 Scriptwright

you should make the corner pixels transparent instead of white.

 
#&$#@ User

Wow, i wondered where you were hosting this favicon, so i looked at the source and it's genious! We're hosting it within greasemonkey! I'd never seen anything like that before! Awesome!

Mind telling me how you convert images into that base64 thingy? Love the script, too.

Cheers

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel