kevencrick
Personal AI Slop

I made Facebook Marketplace show me stuff I can actually go pick up

A free Chrome extension that hides "Ships to you", resellers, ads and bait prices, and puts the distance on every photo.

October 31, 2026 · 2 min

Marketplace used to be the local classifieds. Now I search for a graphics card and half the page "Ships to you" from who knows where, one card is a reseller in California, and every so often there's a video ad for a coffee machine. I just want the guy across town with a used 3070 and a garage.

So I had a coding agent build me a Chrome extension. It's called Unshipped, and it does exactly one thing: it makes Marketplace local again.

Side-by-side Facebook Marketplace search for graphics card in Duluth, Minnesota. Before, most cards say Ships to you. After, every card is in Duluth or nearby, with a distance badge on each photo.
Same search, same city. Left: 10 of the first 15 results ship from somewhere else. Right: all 15 are local pickup. (Duluth is just a sample city for the screenshots, not where I live.)

What it does

  • Turns on Local pickup for every search. Facebook already has this filter. It's buried under Delivery method, and it forgets it every time you search. Unshipped adds it for you, so Facebook fills the page with local listings instead of the extension just hiding junk and leaving you a sparse page. If you switch it back to All yourself, it leaves your choice alone.
  • Hides what still gets through: "Ships to you" listings, partner listings (third-party resellers), sponsored and video ads in the grid, and bait prices like $1, $123 and $123,456.
  • Hides anything too far away. By default the limit is your Marketplace radius × 1.5 plus 15 miles, or you can pick 25, 50, 100 or 250.
  • Muted words. Type for parts or wanted and those listings disappear.
  • Puts the distance on every photo. Green means under 10 miles.

If you want to see what it's catching, switch it to Outlined:

Marketplace results with red outlines and tags reading Ships to you, Partner listing 1,570 mi and Sponsored on the junk, and green distance badges on the local listings.
Outlined mode, no pickup filter. On this page it caught 35 of 80 cards: 29 shipped, 4 ads, a reseller 1,570 miles away and a bait price.

The popup tells you what it found on the page you're looking at:

The Unshipped popup showing 35 hidden on this page, 44 percent junk, 45 local listings left, nearest under 1 mile, with counts for each category.
The popup (top half). Every category has its own switch.

Nothing leaves your browser. Distances are worked out with a bundled list of US towns (public Census data), so there's no lookup service and no account.

Get it

  1. Unzip it.
  2. Open chrome://extensions and turn on Developer mode (top right).
  3. Click Load unpacked and pick the Unshipped folder (the one with manifest.json in it).
  4. Pin it, then reload any Marketplace tab you already had open.

It's built for desktop Chrome. Other Chromium browsers should work, but I haven't tried them. Distance only works for US towns, and it's straight-line distance from town to town, not driving distance.

It will break eventually

Facebook rewrites its page markup now and then, and when it does, some junk will slip back in. You don't need to wait for me to fix it. Hand the folder to whatever AI coding assistant you use, along with a screenshot of what's getting through, and ask it to update src/detect.js. The comments in that file describe what the page looked like when this version worked.

Or skip my version and have your AI build its own. This is the prompt:

Build me a Chrome extension (Manifest V3, loaded unpacked) called "Unshipped"
that makes Facebook Marketplace show only things I can pick up locally.

What it should do:
1. On every Marketplace search, add Facebook's own filter to the URL:
   deliveryMethod=local_pick_up. Add an optional "Nearest first" toggle that
   adds sortBy=distance_ascend. Only add these once per search, so if I switch
   Delivery method back to "All" myself, it respects that.
2. Hide junk cards in the results grid:
   - "Ships to you" listings
   - "Partner listing" cards (third-party resellers)
   - Ads: grid cells with no /marketplace/item/ link that link out through
     l.facebook.com/l.php and carry an "Ad" or "Sponsored" label (the label
     can contain zero-width spaces)
   - Bait prices: $1, $12, $123, $1,234, $123,456 and similar
   - Listings farther than a maximum distance I choose
   - Listings whose title contains words I mute
3. Put a distance badge ("4 mi") on each listing photo, in the top-right
   corner (Facebook puts "Just listed" in the top-left). Read my location from
   Facebook's filter text, such as "Duluth, Minnesota · Within 20 mi", and let
   me override it. Work out distances offline with a bundled table of US town
   coordinates (the US Census Gazetteer places file works well).
4. Popup: an on/off switch; a toggle and a count for each junk category on the
   current page; max distance (Auto = my radius × 1.5 + 15 mi, or
   25/50/100/250); Hidden, Dimmed or Outlined modes; a "Reveal for 5 seconds"
   button; muted words. Show the number hidden on the toolbar badge, and add a
   keyboard shortcut to turn it on and off.
5. No data leaves the browser.

How Facebook's page is built (as of October 2026):
- Each listing is an <a href="/marketplace/item/<id>/"> inside a cell. The
  cells are direct children of one flex-wrap grid that also holds zero-height
  spacer cells, so hiding a cell with display:none lets the grid close up.
  Find the cell by climbing from the link until the parent is that flex-wrap
  grid.
- Class names are obfuscated and change often. Don't rely on them; use text
  and link structure.
- A card's text is a list of leaf spans: an optional badge ("Just listed",
  "Partner listing"), the price, an optional old price, the title, then the
  location ("Superior, WI" or "Ships to you"). Vehicles can add mileage after
  the location.
- Facebook navigates without reloading the page, so load the content script on
  all of facebook.com, only act on /marketplace pages, watch for URL changes,
  and use a debounced MutationObserver for infinite scroll.
- Never hide anything bigger than a card, and on a listing's own page, skip
  that listing.

Test it on a real Marketplace search before you tell me it's done.

More slop