ul2shoplist

[« Return to Code]

ul2shoplist is an iPhone bookmarklet for doing shopping or todo lists. It takes the first unordered list on a page whose first list item doesn’t contain a class attribute and transforms all of the items on that list into checkboxes; when the boxes are checked, they will move to the end of the list, and they will return to their original location if they’re unchecked. We do our shopping lists on a wiki, and this is designed to work with that; the “first list item doesn’t contain a class attribute” restriction is so that it skips over the “table of contents” list that MediaWiki puts in. I used John Gruber’s bookmarklet script to convert it to a bookmarklet.

To use it, bookmark this link.