[Greasemonkey] smileyfy

Jeremy Dunck jdunck at gmail.com
Tue Apr 12 09:55:08 EDT 2005


On Apr 12, 2005 8:44 AM, Amit Upadhyay <upadhyay at gmail.com> wrote:
> Hi list, 
>  
>  I have just created a user script: smileyfy (converts :-) etc to their
> appropriate gif representations).
> http://www.rootshell.be/~upadhyay/2005/04/smileyfy-is-here.html

Well, if this script gets popular, your provider is going to get slammed:

var provider = "http://www.rootshell.be/~aurum/smileys/";

Consider creating data URIs for each of the smiley image using Hixie's util:
http://software.hixie.ch/utilities/cgi/data/data

e.g. the following data URI was created using that util and passing it
the following source URL:
http://www.rootshell.be/~aurum/smileys/01.gif

data:image/gif,GIF89a%12%00%12%00%C4%FF%00%FF%FF%FF%FF%FF3%FF%FF%00%FF%CC%CC%FF%BD%00%FF%99%99%CC%CC%FF%CC%CCf%CC%CC3%C0%C0%C0%99%FFf%99%00%00%84%82%00ff3f3333%CC%00%00%00%C0%C0%C0%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00!%F9%04%01%00%00%11%00%2C%00%00%00%00%12%00%12%00%40%05t%60%24%8EdI%3A%01A%04%08%C20m%BA%3Af%E4%DCxm%07%7C%EF%F3%B4%11J%A1p5%1A%0C%02Q%10%3C%A1~%B7%D2%B3%F7%E0U%7DA%07a%B0%18%FC%02%DC%01%A1i%5B%09%CEh%C1Xg%C3Eu%D3o%80%BC%EBAx%F7%5E3%1E0%F0%FCX%22Z%03%84_%84bYJ%03%05%08%3E%08%05%84k%82%2B%3C-1%01jtm%04%07%9D%07c%9Al5!%00%3B%0E%99x%23r%8C-%87w%13%80%13P%07%B4%07%09%04y%3E%BA%26!%00%3B

This will distribute all the needed images along with the script, and
avoid centralised server load.


More information about the Greasemonkey mailing list