-
Requestly
🚀 Most Popular developer tool for frontend developers & QAs to debug web and mobile applications. Redirect URL (Switch Environments), Modify Headers, Mock APIs, Modify Response, Insert Scripts & Record web sessions and share it with your teammates for debugging.
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
If you want to intercept and modify a incoming json response for some specific url pattern, would a service worker be a good way to do so?
To illustrate, assume I frequently browse example.com and want to trick my browser into thinking that I have "favorited" every post. It's trivial to write a for loop that iterates over response.json and sets `is_favorite = true`. But it's not as clear to me where this script should ideally live in order to have the logic always executed before the response is made available to the site.
Your comment made me think about whether I can replace my overkill solution (https://requestly.io/) with something lightweight.
Related posts
-
Tell HN: The popular Chrome extension ModHeader is injecting ads into searches
-
Way or viewing network requests?
-
Is it a viable option to use a database to populate data used in a chrome extension?
-
Open-Source alternative to Charles Proxy & Telerik Fiddler
-
Userscripts: Is there a way to intercept all HTTP requests/responses so that I can modify them before they're sent/received?