Userscripts: Is there a way to intercept all HTTP requests/responses so that I can modify them before they're sent/received?

This page summarizes the projects mentioned and recommended in the original post on /r/learnjavascript

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.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • 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.

  • Requestly founder here. You are essentially looking for Requestly - A Chrome/Firefox browser extension to Intercept & Modify HTTP requests. Using Requestly you can actually do the following things

  • files

  • The real answer looks like this xhr-redirect.js and also fetch-redirect.js. Basically replace the existing class methods with your own that the forward to the original.

  • 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.

    SurveyJS logo
  • modify-headers-manifest-v3

    Modify Request & Response Headers Chrome Extension (Manifest V3)

  • We have a handy simple repo -https://github.com/requestly/modify-headers-manifest-v3 that you can use to build a minimal extension to modify request & response headers in Manifest V3.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Tell HN: The popular Chrome extension ModHeader is injecting ads into searches

    1 project | news.ycombinator.com | 4 Oct 2023
  • Tell HN: Service Workers === Browser Background Tasks

    1 project | news.ycombinator.com | 29 Aug 2023
  • Way or viewing network requests?

    2 projects | /r/androiddev | 12 Jul 2023
  • Is it a viable option to use a database to populate data used in a chrome extension?

    2 projects | /r/webdev | 12 Jul 2023
  • Open-Source alternative to Charles Proxy & Telerik Fiddler

    1 project | /r/opensource | 28 Jun 2023