项目作者: clemstoquart

项目描述 :
A simple web-extension that rewrites vendor specific json content-type value to the standard application/json
高级语言: JavaScript
项目地址: git://github.com/clemstoquart/webextension-json-mime-type.git
创建时间: 2017-09-12T15:16:30Z
项目社区:https://github.com/clemstoquart/webextension-json-mime-type

开源协议:Mozilla Public License 2.0

下载


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 22 and npm 10.

Set up the project

Like any other npm based project just run :

  1. npm install

Build

Simply run :

  1. 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 :

  1. npm run lint