← All projects

Building Marketplace Listing Helper

Part 1

Building Marketplace Listing Helper

Marketplace Listing Helper: A helper that never presses Publish - Part 1

~6 min read I had a few dozen things to sell, mostly Warhammer models, and a spreadsheet describing them. Facebook Marketplace wanted each one typed into a form, one at a time: title, price, category, condition, description, photos. None of it is hard. All of it is repetitive, and repetition is exactly what a computer should be doing for me. So I started building a Chrome extension to do the typing, and the first decision was about what it must not do. The rule everything else hangs off The
Andrew Townsend
Andrew Townsend
3 min read

Part 2

Building Marketplace Listing Helper

Marketplace Listing Helper: Filling in Facebook's form - Part 2

~7 min read Filling in a form sounds like the easy half of the job. It's the half that breaks. Facebook's Create listing form is built from generated markup with no stable ids, its inputs are controlled by React, and its dropdowns are custom widgets. This post is about how the extension copes, and about the one rule that keeps it honest when it can't. Finding a field without an id There's nothing like #title to select. What is stable is the text a person reads, so findField() looks fields up
Andrew Townsend
Andrew Townsend
3 min read