Next/Prev in an IMG Rated 5 out of 5 stars

The Prev/Next link gesture is great, one minor defect is it will handle only textContent. Sometimes the links are represented by an img like src="next.png"/src="prev.png", I patched it like this:

--- old/chrome/content/allinonegest/gestimp.js 2009-09-01 17:34:24.078125000 +0800
+++ new/chrome/content/allinonegest/gestimp.js 2009-05-18 09:17:00.000000000 +0800
@@ -1058,14 +1058,6 @@
loadURI(links[i].href);
return;
}
- for (j = 0; j < re.length; ++j)
- for (i = 0; i < links.length; ++i)
- if (links[i].firstChild && links[i].firstChild.nodeName == "IMG"
- && links[i].firstChild.getAttribute("src").search(re[j]) != -1
- && links[i].href) {
- loadURI(links[i].href);
- return;
- }
}

function aioSmartBackForward(aRwnd, aCurrDomainEndPoint) { // derived from SHIMODA "Piro" Hiroshi Rewind/Fastforward buttons

This review is for a previous version of the add-on (0.20.0).