It overrides resources, JS, CSS, Image, and fonts, of a website with the copies from a local web server.

Latest Version

Version
2.4
Update
April 24, 2024
Size
48.97KiB
Developer
Category
Users
74
Rating
5 ★
Manifest Version
3
Web Store Status
Languages Support
English (UK)
See more
Permissions
DeclarativeNetRequestWithHostAccess
WebRequest
See more

Web Mask Extension

It enables you to

- Debug a remote web site, for which source map is usually disabled, with your local web server
- Test your local changes with actual data from remote servers - integration test before pull request

The idea and its implementation are based on HTTP and HTML web standards, independent to the framework of your choice, with the following constraints:

- It doesn't work with `document.write()`
- \"Bypass for network\" for service workers. See screenshots for instruction.
- Web socket is not redirected, i.e. Hot module reload (hmr) or live reload doesn't work unless you can force their origin to localhost

It's similar to \"Resource Override\", but built for Manifest V3, and easy to integration into automated tests. See

- Resource Override, https://chrome.google.com/webstore/detail/resource-override/pkoacgokdfckfpndoffpifphamojphii
- Manifest V2 support timeline, https://developer.chrome.com/docs/extensions/develop/migrate/mv2-deprecation-timeline
- Test automation examples, https://github.com/renfeng/web-mask/tree/master/test/specs

Tests (in alphabetic order)

- An Angular website: https://material.angular.io/
- Source code: https://github.com/angular/material.angular.io
- Successful. Automated.
- A React website: https://reactjs.org/
- Source code: https://github.com/reactjs/reactjs.org
- Successful. Automated.
- A Vue.js website: https://vuejs.org/
- Source code: https://github.com/vuejs/docs
- Successful. Automated.
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 3, "name": "Web Mask", "description": "It overrides resources, JS, CSS, Image, and fonts, of a website with the copies from a local web server.", "version": "2.4", "icons": { "16": "icon16.png", "48": "icon48.png", "128": "icon128.png" }, "action": { "default_popup": "popup.html" }, "background": { "service_worker": "background.js" }, "content_scripts": [ { "matches": ["*://*/*"], "js": ["content.js"], "all_frames": true } ], "web_accessible_resources": [ { "matches": ["*://*/*"], "resources": ["page.js"] } ], "permissions": ["declarativeNetRequestWithHostAccess", "webRequest"], "host_permissions": ["*://*/*"]}
Read more

Similar Extensions

icon

Naro Extension · Productivity 74 0 ★ 2.12MiB

icon

Clear Portal Cache Extension · Developer Tools 74 1 ★ 60.0KiB

icon

Banner Animation Control - Dev Extension · Developer Tools 74 13 ★ 152KiB

icon

Panzoid+ Extension · Developer Tools 74 8 ★ 61.16KiB

icon

Share My Leetcode Extension · Social & Communication 74 0 ★ 154KiB

icon

Localhost HTTPS -> HTTP Extension · Developer Tools 74 2 ★ 30.72KiB

icon

Web Weaver Extension · Fun 74 3 ★ 2.35MiB

icon

HintEd Smart Manuals Editor Extension · Productivity 74 1 ★ 6.36MiB

icon

Passive Aggressive Email Translator Extension Extension · Fun 74 0 ★ 143KiB

icon

Parrot API mocking Extension · Developer Tools 74 5 ★ 3.6MiB

icon

Voiceline for Chrome Extension · Productivity 74 9 ★ 2.0MiB

icon

MeIP Extension · Developer Tools 74 0 ★ 162KiB

icon

Tagg Extension · Shopping 74 0 ★ 192KiB

icon

Add to Benevolist.org Button Extension · Shopping 74 0 ★ 26.28KiB

icon

Fantasy Basketball Video Replays Extension · Fun 74 1 ★ 352KiB

icon

Youtube Scripter Extension · Productivity 74 5 ★ 106KiB

icon

Scripter debugger extension Extension · Developer Tools 74 2 ★ 1.04MiB

icon

Wifi Share Extension · Productivity 74 2 ★ 899KiB

icon

Mink - Integrate Live & Archived Web +Memento Extension · Accessibility 74 4 ★ 902KiB

icon

Block Unreachable Scripts Extension · Productivity 74 6 ★ 11.06KiB

icon

Disable Content Security Policy Extension · Developer Tools 74 5 ★ 14.05KiB

icon

Evil Console Extension · Developer Tools 74 0 ★ 1.76MiB

icon

Universal Adobe Debugger Extension · Developer Tools 74 4 ★ 43.96KiB

icon

JS Vulnerability Detector Extension · Developer Tools 74 1 ★ 459KiB

User reviews

icon

Willem van der Pijl (SirEpicPigeon) (ID: 000000f03773a136) Voted 5 ★ - Updated 05/05/2023 Works like a dream!