Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clemstoquart/webextension-json-mime-type
A simple web-extension that rewrites vendor specific json content-type value to the standard application/json
https://github.com/clemstoquart/webextension-json-mime-type
firefox json webextension
Last synced: 2 months ago
JSON representation
A simple web-extension that rewrites vendor specific json content-type value to the standard application/json
- Host: GitHub
- URL: https://github.com/clemstoquart/webextension-json-mime-type
- Owner: clemstoquart
- License: mpl-2.0
- Created: 2017-09-12T15:16:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-31T22:57:10.000Z (2 months ago)
- Last Synced: 2024-10-31T23:26:59.395Z (2 months ago)
- Topics: firefox, json, webextension
- Language: JavaScript
- Size: 1.44 MB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON mime type override
A simple web-extension that rewrites vendor specific json content-type value to the standard `application/json`.
For example : `application/vnd.spring-boot.actuator.v1+json` will be modified into `application/json`.
**If you don't want to develop a new feature/fix a bug, I recommend you to download the extension from here** https://addons.mozilla.org/firefox/addon/json-content-type-override/.
## Requirements
Node 20 and npm 10.
## Set up the project
Like any other npm based project just run :
npm install
## Build
Simply run :
npm run build
First, this will check `manifest.json` is correct. Then, it will build a zip containing all the webextension files in the `web-ext-artifacts` folder.
## Lint
You can also run the following command if you only want to to check that your `manifest.json` is correct :
npm run lint