
How to create an "Accelerator"?
Well it's a pretty simple two step process:
1. Create XML file
2. Create accelerator installation link
Let us create a simple accelerator which queries IMDB for movie titles and displays the result.
IMDB Accelerator
On closer observation, we find that URL for search page of IMDB is of form
http://www.imdb.com/find?q=SearchString
where "SearchString" is the string you are querying for. With this information, lets start making the accelerator.
Step 1: Create XML File
<?xml version="1.0" encoding="UTF-8"?>
<openServiceDescription xmlns="http://www.microsoft.com/schemas/openservicedescription/1.0">
<homepageUrl>http://www.imdb.com </homepageUrl>
<display>
<name>Search IMDB </name>
<icon>http://www.imdb.com/favicon.ico </icon>
</display>
<activity category="Search">
<activityAction context="selection">
<execute action="http://www.imdb.com/find">
<parameter name="q" value="{selection}" type="text" />
</execute>
</activityAction>
</activity>
</openServiceDescription>
This XML file is called the service description file and it contains specific description about the service provider and type of service it provides. The {selection} value on Line 11 refers to the text that you may highlight on a web page before performing the search. Save this file as search.xml.
Step 2: Create accelerator installation link
To let users use our accelerator, we will create a install button. Users can install the accelerator using this link. Here the code for link:
To let users use our accelerator, we will create a install button. Users can install the accelerator using this link. Here the code for link:
Install Accelerator
Install Accelerator
That's it, you are done. Install the accelerator and start searching.

2 comments:
Great idea! Been wanting to do this myself, saved me the effort.
Here is my attempt at an Accelerator: http://www.pressthered.com/how_to_create_an_ie8_accelerator/
Post a Comment