ArticleDirectory
- Preparations
- Accelerator description
- Install
Troubles
Do you often encounter some articles that mention some external resources but do not provide links, or do not provide superlinks when giving addresses? In this way, if you want to visit these resources, You have to copy the address, paste it in the address bar, and press Enter! Although Google Chrome can be used to "paste and convert to", the steps are still cumbersome, isn't it?
I can't stand it anymore. I think it would be nice if I could do something simple to achieve direct jump. I noticed that IE8 has a new "accelerator" function, can an accelerator be implemented? It looks okay!
For more information about the Internet Explorer 8 accelerator, see here.
Preparations
I searched and read some articles about accelerator development. In the end, I thought this msdn document was the most useful. After reading it carefully, I found that the accelerator has the homepageurl restriction. That is to say, the domain names of all requests are fixed and cannot be changed. This requires us to switch to different addresses, close the door. Wait. Is that true? We can create a service, accept an address request, and redirect, right?
Instead of creating one on your own, it is better to use a ready-made version! That ready-made is Google's "good luck "!
Next, let's take a look at how "good luck" Works (ignore it if you know ):
Open the Google homepage and click the I'm feeling lucky button to jump to this address:
Http://ipv6.google.com/search? Hl = en & source = HP & Q = & btni = I % 27 m + feeling + lucky & AQ = F & AQL = & AQI = & OQ =
Taking a closer look, what actually works is btni = I'm... This string indicates that we press the "good luck" button. The front is the keyword. When we search for it, the keywords are assigned to Q. This should be correct, you can change it to verify it.
Accelerator description
Now I know how to deal with "good luck", and then I will follow the document to describe the accelerator's XML:
<? XML Version = " 1.0 " Encoding = " UTF-8 " ?> < Openservicedescription Xmlns = " Http://www.microsoft.com/schemas/openservicedescription/1.0 " > < Homepageurl > Http://ipv6.google.com </ Homepageurl > < Display > < Name > Luckily jump </ Name > < Icon > Http://ipv6.google.com/favicon.ico </ Icon > < Description > Perform & Quot; Feeling lucky & Quot; Jump! </ Description > </ Display > < Activity Category = " Jump " > < Activityaction Context = " Selection " > < Execute Method = " Get " Action = " Http://ipv6.google.com/search? Btni = I % 27 m + feeling + lucky & Amp; Q = {selection} " /> </ Activityaction > </ Activity > </ Openservicedescription >
The content is very simple. Just write it according to the document.
Install
The document says that the script window. External. addservice ('xml description file path') can be used to add it to the browser. When running locally, I receive an error message:
There are two solutions:
1. Create a new website in Vs, add an XML file (lucky. XML), and replace the content of the default. aspx body tag with the followingCode:
<ButtonOnclick= "Window. External. addservice ('lucky. xml ')"Style="Height:74px;Width:139px ">Add lucky jumper</Button>
Then run the website and click the button to install it.
2. Upload to IE add-ons Gallery, register an account there, and complete upload to share. I have uploaded the file. The address is:
Http://www.ieaddons.com/en/details/other/Luckily_jump_to/
Click Add to Internet Explorer to install the SDK.
Summary
Do it yourself!