# ResourceSwap

> Intercepts production JS/CSS files and redirects them to a local development server.

Canonical page: [https://chrome-stats.com/d/resourceswap](https://chrome-stats.com/d/resourceswap)

## Overview

- **ID:** `resourceswap`
- **Platform:** Firefox
- **Type:** Firefox add-on
- **Status:** Available
- **Publisher:** Charles Strahan
- **Category:** web-development
- **Version:** 1.0.0
- **Last updated:** 2026-07-21
- **First published:** 2026-07-18
- **Size:** 24 KB
- **Data as of:** 2026-09-10
- **Store listing:** [Firefox Add-ons Store](https://addons.mozilla.org/firefox/addon/resourceswap/)
- **Website:** [https://github.com/cstrahan/resourceswap](https://github.com/cstrahan/resourceswap)

## Description

Redirect production website resources to your local dev server — test local
code changes against a live production site without touching the server.

ResourceSwap intercepts network requests for scripts, stylesheets, images,
fonts, XHR/fetch, and media, and redirects them to a URL of your choice (e.g.
your <code>localhost</code> dev server). Point a live production page at your in-progress
local build to debug and iterate against real data and real conditions.

<strong>Features</strong>
<ul><li>Redirect any resource type: scripts, stylesheets, XHR/fetch, images, fonts, media</li><li>Per-rule enable/disable toggles and a global on/off switch</li><li>Automatic CORS header injection for localhost responses</li><li>Import and export your rules as JSON</li><li>Dark mode support</li><li>Pop-out window mode (handy in Firefox, where popups close on blur)</li></ul>
Everything runs locally. ResourceSwap collects no data and sends nothing to any
server.

## Rankings

- #142,350 — Overall
- #108 — resource
- #191 — source code

## Permissions and access

### Permissions

- `declarativeNetRequest`
- `declarativeNetRequestWithHostAccess`
- `storage`

### Host permissions

- `<all_urls>`

## Safety

- **Risk impact:** Moderate risk impact
- **Risk likelihood:** High risk likelihood

### Analysis details

- Allows access to all websites, posing a significant security risk as it can monitor and modify data from any visited site.
- This extension has low user count. Unpopular extensions may not be stable or safe.

> Some risk analysis details are omitted from this free response. [Upgrade to view the full analysis](https://chrome-stats.com/pricing).

## Similar extensions and apps

- [Live Resource Override](https://chrome-stats.com/d/live-resource-override) — 23 users
- [Domain Swap](https://chrome-stats.com/d/domainswap) — 5 users, 4.00 / 5
- [Content Switcher](https://chrome-stats.com/d/content-switcher)
- [Location Switcher](https://chrome-stats.com/d/location-switcher) — 102 users, 4.40 / 5
- [Link Switcher](https://chrome-stats.com/d/link-switcher) — 1 users
- [Location Switcher - Advanced](https://chrome-stats.com/d/location-switcher-advanced) — 3 users, 5.00 / 5
- [localivelize](https://chrome-stats.com/d/localivelize) — 1 users
- [Live \<-\> Dev swapper](https://chrome-stats.com/d/live-dev-swapper) — 1 users
- [l-switch](https://chrome-stats.com/d/l-switch) — 1 users
- [307 Redirect Pro](https://chrome-stats.com/d/307-redirect-pro) — 1 users
- [Cookie/LocalStorage Switcher](https://chrome-stats.com/d/cookie-storage-switcher)
- [Resource Override](https://chrome-stats.com/d/resourceoverride) — 1,845 users, 4.60 / 5

---

Source: [Chrome-Stats](https://chrome-stats.com/d/resourceswap)
