It should work like this:
- Fire a bookmarklet
- Select the first element by clicking
- Select the second element
- It outputs a series of jQuery calls which would allow selecting the second element given a reference to a first element (i.e. using relative positions of the two elements in a DOM tree).
Is there such a bookmarklet (or browser extension)? If no may be you could give me a clue about how to write one?