Archive for August, 2007

xkcd Greasemonkey script

Nick put me on to xkcd.com a while ago. One thing that’s annoyed me about it for quite some time is that to read some of the joke you have to hover over the image to read the title attribute; and if that attribute’s value is too long you end up having to view the source to read it. Boring.

Greasemonkey to the rescue! I heard about this extension for firefox before but had no need of it, it allows you to write some javascript that will get executed for a particular website. Cool.

Before

Before applying the script to xkcd

After

After applying the script to xkcd

Script (Download xkcd.com comic title greasemonkey script)

// ==UserScript==
// @name xkcd comic title
// @namespace http://xkcd.com
// @include http://*xkcd.com/*
// ==/UserScript==

var arrObjImages = document.getElementsByTagName(”img”);

var iImg;
for(iImg = 0; iImg < arrObjImages.length; iImg++){
var objImage = arrObjImages[iImg];

var sImgTitle = objImage.getAttribute("title");
if(sImgTitle != null && sImgTitle.length > 0){
//image title
objImage.parentNode.insertBefore(document.createTextNode(sImgTitle),

objImage.nextSibling);

//two line breaks
objImage.parentNode.insertBefore(document.createElement(”br”), objImage.nextSibling);
objImage.parentNode.insertBefore(document.createElement(”br”), objImage.nextSibling);

};//end if
};//end for

Dive into Greasemonkey (Sounds a perverted don’t you think?)

Start Slide Show with PicLens Lite PicLens

Crazed local man caught on camera

Crazed local man seen taking bottles out of new recycling bins.

Adam - Bottle

Police have described the man as “mostly harmless” and have advised the public to just leave him be.

More information

Start Slide Show with PicLens Lite PicLens

Answer: What do Collier and Comedy Dave have in common?

They both play the nose flute!

Collier playing his nose flute

Caution. Clicking on the following link may cause nausea or bleeding from the ear.
Adam Wilson ft Ripper on noseflute - Lucy In The Sky (Rare) 56kbs

Folking good singing

Start Slide Show with PicLens Lite PicLens

Chanel watches again in the swiss replica watches forefront of the times, the concept of replica watches innovation and high-tech equipment and the Swiss tradition of combining technology to create a unique artistic quality. In the omega replica most advanced production plant, a traditional clock technology combined with replica hublot sophisticated technology and equipment, ensure each link smoothly, from production to installation of advanced watchcase watchband movement of production by the Swiss specialized manufacturers, and Chanel will each creative transformation into full of new products.