Improved GM Microsummaries generator

Following up on Create Microsummaries with Greasemonkey, I added a user interface for choosing between an element’s ID attribute or a simple location path component.

This consists of a floating panel, where the relevant elements are shown with their ID selected. You then can choose to use the simple location path instead, if more appropriate. The first element with ID selector will be used as the XPath root (looking from right to left, that is).

Example XPath selector panel

Update: WordPress messes up the HTML, using screenshot image (and see script page for a better example)

GM Microsummary Generator UI

Leaving the default choice results in:


Deselecting every ID attribute results in XPath:


Get the user script here: Generate a Microsummaries Generator for Firefox 2.x