📜 ⬆️ ⬇️

Writing Accelerators for Internet Explorer 8

Writing accelerators for Internet Explorer 8 is much easier than I thought. Everyone has probably already heard about the accelerator contest for IE8, which is held within Remix'09 . So I decided to write some interesting and useful accelerator. And it turned out even two (download if necessary):
a) search on Habrahabr ( link to vote )
b) viewing the user on Habrametr ( link to vote )
If you like these accelerators, you can vote for them on the site of the IE8 add- on contest (if they appear there of course). Well, you can also suggest any improvements or something else - to me personally;)
Here is a useful screencast about writing accelerators from M. Chernomordikov, then follow the link Article in MSDN about the development of Accelerators (EN), we study the topic further.
So, it turned out to realize accelerators - this is to write two xml files (for each accelerator on the file).
So, the description of the accelerator "search on Habrahabr":
<? xml version ="1.0" encoding ="utf-8" ? >
< openServiceDescription
xmlns ="http://www.microsoft.com/schemas/openservicedescription/1.0" >
< homepageUrl > outcoldman.habrahabr.ru </ homepageUrl >
< display >
< name > habrahabr </ name >
< icon > habrahabr.ru/favicon.ico </ icon >
</ display >
< activity category ="Find" >
< activityAction context ="selection" >
< execute action ="http://habrahabr.ru/search/{selection}/" >
< parameter name ="q" value ="{selection}" />
</ execute >
</ activityAction >
</ activity >
</ openServiceDescription >


* This source code was highlighted with Source Code Highlighter .

Where homepageUrl and display is the description of this accelerator, activity is what the accelerator does: in our case it takes selection (selected) text and, when you click on the accelerator menu, it goes to the action url from execute . The following file, the description of the accelerator ""
<? xml version ="1.0" encoding ="utf-8" ? >
< openServiceDescription
xmlns ="http://www.microsoft.com/schemas/openservicedescription/1.0" >
< homepageUrl > habrometr.ru/users/outcoldman </ homepageUrl >
< display >
< name > habrametr </ name >
< icon > habrometr.ru/favicon.ico </ icon >
</ display >
< activity category ="Share" >
< activityAction context ="selection" >
< preview action ="http://habrometr.ru/habrometr_88x120_{selection}.png" >
</ preview >
< execute action ="http://habrometr.ru/users/{selection}/" >
</ execute >
</ activityAction >
</ activity >
</ openServiceDescription >


* This source code was highlighted with Source Code Highlighter .
This accelerator is different from the previous category of activity and the ability to display a preview , which looks like this:


PS Just in case, the page of the contest is again: " Competition of add-ons for Internet Explorer 8 ", and you can vote for your favorite accelerator here in the " Gallery of add-ons for IE8 ". Thanks for attention!
PSS I don’t know how it happened, but today I’ve got a post about a visual search in IE8 , maybe it’s a day today that everyone thinks about accelerators for IE8 today :)
PSSS Would transfer to the Microsoft theme (as it would probably be more useful for readers of that block than for everyone), but I didn’t understand when I had the opportunity ...

')

Source: https://habr.com/ru/post/57427/


All Articles