Ever get annoyed that Facebook Marketplace defaults it's Delivery Method filter to "All" as opposed to "Local Pickup"? Here is a solution to that problem.
The unencoded JS is in bookmarklet.js
, you can play around with this code @ https://mrcoles.com/bookmarklet/
- In Chrome, right-click on the Bookmark Bar and select "Add Page..."
- Enter a name for this bookmark
- Enter the code below into the URL field:
javascript:(function()%7Bconst%20localDeliveryParamName%20%3D%20'deliveryMethod'%3Bconst%20localDeliveryParamVal%20%3D%20'local_pick_up'%3Bconst%20url%20%3D%20window.location.toString()%3Bconst%20appendOperator%20%3D%20url.includes('%3F')%20%3F%20'%26'%20%3A%20'%3F'%3Bconst%20newUrl%20%3D%20url.concat(appendOperator%2C%20localDeliveryParamName%2C%20'%3D'%2C%20localDeliveryParamVal)%3Bwindow.open(newUrl%2C%20'_self')%7D)()