Steve Wellens

Programming in the .Net environment

Sponsors

Links

IE 8 - IP Address Mapping Accelerator

On the ASP.NET forums where I moderate, the poster's IP address is displayed at the bottom of the post. Often I am curious and paste the poster's IP address into an IP locator web page to find out where they are posting from. This was tedious.

Once I installed Internet Explorer 8 and saw what accelerators could do, I decided to write one to do the work for me. It wasn't too hard.

Here is what the accelerator text looks like (it's just an XML file):

<?xml version="1.0" encoding="utf-8"?>
<os:openServiceDescription xmlns:os="http://www.microsoft.com/schemas/openservicedescription/1.0">
  <os:homepageUrl>http://www.infosniper.net</os:homepageUrl>
  <os:display>
    <os:name>Map IP Address with Info Sniper</os:name>
    <os:icon>http://www.infosniper.net/favicon.ico</os:icon> 
  </os:display>
  <os:activity category="Map">
    <os:activityAction context="selection">
      <os:execute method="get" action="http://www.infosniper.net/?ip_address={selection}" />
    </os:activityAction>
  </os:activity>
</os:openServiceDescription>
 

To install an accelerator, you have to launch it from a web page. This is annoying. I tried to make the URL a local file but that did not work. I ended up with this:

<button id="myButton" 
  onclick="window.external.AddService('http://weblogs.asp.net/blogs/stevewellens/Accelerators/InfoSniperAccelerator.xml')">  
  Add Info Sniper Accelerator
</button>

The button rendered:  

 

Here is what it looks like in action. Highlight the IP address, right click and…

Here is part of the resulting InfoSniper web page:

 

If you want to install this accelerator click this button: 

Here are some Microsoft's accelerators: http://ie.microsoft.com/activities/en-en/Default.aspx

Here is the Developer's Guide: http://msdn.microsoft.com/en-us/library/cc289775(VS.85).aspx

I hope someone finds this useful.

Steve Wellens

[Edit] Accelerators are stored here: 

    C:\Users\USERNAME\AppData\LocalLow\Microsoft\Internet Explorer\Services

Comments

progg.ru said:

Thank you for submitting this cool story - Trackback from progg.ru

# April 1, 2009 1:45 PM

XIII said:

Nice one Steve.

Grz, Kris.

# April 1, 2009 3:24 PM

Ed Lanphier said:

Nice Accelerator, Steve.

See: http://bit.ly/vJKbW

For readers who use Firefox and IE8, I wanted your readers to be aware that Firefox has a version of Accelerators too, it is called “KALLOUT - Accelerators for Firefox” It’s available as a free add-on through Firefox. See: http://bit.ly/vJKbW

I believe the IP Address Mapping accelerator will actually work directly with KallOut-Accelerators for Firefox so users can stick with Firefox if they want and still get the benefits of this useful accelerator.

EL

# April 2, 2009 1:09 AM

SGWellens said:

Thank you Ed.

# April 3, 2009 9:15 PM

Patrick Egan said:

Beautiful.

Just what I have been looking for.

Thanks Very Much!!

# September 3, 2009 7:09 AM

L Jones said:

Great Job! Just what I needed.

# December 20, 2009 6:53 PM

Rob said:

Love the app.

# September 6, 2010 3:24 AM

Larry Jones said:

Thank you! Quick and to the point. Good Job!

# November 29, 2010 6:35 PM

Dave said:

This is a cool tool....thanks for sharing, Steve.

# January 27, 2011 7:18 AM