Saturday, February 17, 2007

Rewrite EventID.net links (GreaseMonkey)

First things first, the script...

// ==UserScript==
// @name EventID.Net
// @include http://www.eventid.net/*
// ==/UserScript==

var allmskblinks,
thismskblink;
allmskblinks = document.evaluate(
'//a[@href="/subscribersonly.asp?feature=marticle"]',document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);
for (var i = 0; i < thismskblink =" allmskblinks.snapshotItem(i);" href =" 'http://support.microsoft.com/kb/'+thismskblink.firstChild.nodeValue;

This script will allow you to click through the Mxxxxx links in EventID.net. You need to install the script in Greasemonkey for Firefox.

Firefox download: www.getfirefox.com
Greasemonkey download: greasemonkey.mozdev.org
Installing this script: http://greasemonkey.mozdev.org/using.html

You can download the script here.

3 comments:

Anonymous said...

This script is incomplete...

:P

RogierG said...

No it isn't ;-) I do notice it is formatted wrong. Need to change that but for now I've included a link to the working script.

Xavio said...

Thanks :P

One error, to resolve correct
subscribersonly.asp?feature=qarticle
in
subscribersonly.asp?feature=marticle


:P

Thanks