Skip to content

Chrome Extension to allow overriding of network responses

Notifications You must be signed in to change notification settings

gloaysa/plugin-config-override

Repository files navigation

Config Override Chrome Extension

Override configurations coming from configuration service

You can download the latest version here and install it following this guide.

If you want to use it in incognito mode too, after installing the extension in Chrome, go to the extension Detail (by clicking on Details button inside the Chrome Extensions page) and select "Allow in incognito" from there.

Project Structure

  • src: Source files and app main file
    • ./extensions: available extensions loaded in manifest (could be devtools_page, background, etc.). Those are the first files to be loaded by Chrome. From there, the apps are then dynamically loaded.
    • ./apps: app that each extension loads.
    • ./components: React Components used by the apps.
    • ./assets: static files.
    • ./models: available interfaces.
    • ./services: app services.
  • plugin: (after build) Chrome Extension directory (load this folder to use/test the plugin).

Setup

npm install

Build

npm run build

Build in watch mode

npm run watch

Load extension to chrome

Load newly created plugin directory

Test

npx jest or npm run test