Home > Uncategorized > Google Toolbar buttons

Google Toolbar buttons

With the new version of Google toolbar, you can add your own buttons to it, with quite a simple technique.
 
Step 1.Create an .ico file,
 
Step 2. Base 64 encode it :
 

FileStream fsIco = new FileStream(tbIco.Text,FileMode.Open);

byte[] bIco = new byte[fsIco.Length];

fsIco.Read(bIco,0,(

int)fsIco.Length);

this.tbOutput.Text = Convert.ToBase64String(bIco);

fsIco.Close();

 

Step 3: Create an XML file containing the encoded icon

 

<?xml version="1.0" encoding="utf-8" ?>
<custombuttons xmlns="http://toolbar.google.com/custombuttons/">
<button>
<title>CheapFlights.ie</title>
<description>Cheap Flights from Ireland</description>
<search>http://www.cheapflights.ie/search.aspx?txt={query}</search&gt;
<icon mode="base64" type="image/x-icon">AAABAAEAEBAAAAEAGABoAwAAFgAAACgAAAAQAAAAIAAAAAEAGAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAAAAD/aXz/aXz/aXz+aHz7Z3q+YG7+aHv+aXv+aXz+aHv/aXz/aXz/aXz/aXz/aXz/aXz+aHz/aHv/aHz+aXz5ZnnXvMD+rbj+Y3f+an7+aXv+aHz+aHv+aXz+aXz/aXz/aXz+aXz/aHv+aHv+aXz+an3gipb8+vvglaC4ZW/9aX3+aXz+aHv+aXv+aXz/aXz/aXz+aHv/aHv+aHv+aXv+aXv0Z3jd09T3+Pfss7z9c4X+an3+aXz+aHz+aXz/aXz/aXz+aXz9aXv+aXv+aHz+aHz+aXrXj5f6/Pzuy9CUZ2/ohIv+aXz+aXv+aXz/aXz/aXzrY3TCe4X+bH/+aXz+aHz+aXzQaXjs6ev+/v780tj9lqT+aHv+aXv+aHv+aHz+aXz0ZHbhxsr7u8LRUWPOWWbPWmeqTFnd3dz+//796+3nZHbUXG3UW23UW23kXm7+Z3v9aHvTkZr6+fnV2dnS2tjR2tjU2dj4+Pj+/v79/v7c3t7Axsa/xsW/x8XLx8j4dof9aXzAgYj7+fr++Pj++Pn++Pn89/j8/f3+/v7+/v79+/z++Pn9+Pn++Pn+9/j9jZzsY3TAo6n93uP7c4X+fo7+fI3Sb3ji4+H9/v7+/Pz5laP+e4v+e4z+e4z8eYn+ZXnzZHfxo67+e4z+Z3v+aXv+aX27Wmfg4eH+/v7GuLzpcYD+aXz+aXz+aXz+aXz+aXz+aHz+aHv+aXv+aXz+aXz9anyhc3j2+Pf99PXzwsr7qLT+aXv+aXz+aHv+aHv+aHv+aXv/aXv+aXz+aXv+aHzcYnSorrD+/v6/kpj9YHT+Y3b+aHv+aXv+aXz+aXz/aHv/aXz/aXz/aXz+aHz+aX2bY23y8vL90Nb9qbT9boD+aXz/aXz/aXz/aXz/aXz/aXz/aXz/aXz/aXz+aXv5aHu1pKn+3uT9bH7+Y3f+aHv+aXz/aXz/aXz/aXz/aXz/aXz/aXz/aXz/aXz+aHz9Z3v3laL9cYL+Z3r+aHz+aHv/aHz/aXz/aXz/aXz/aXz/aXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</icon>
</button>
</custombuttons>

 

step 4.

Host the xml file on line  – I called it slashdot_button.xml

Then let people download it from

http://toolbar.google.com/buttons/add?url=http%3A%2F%2Fwww.cheapflights.ie%2Fslashdot_button.xml

 

Advertisements
Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: