Home  >  Article  >  Web Front-end  >  json formatting/compression tool Chrome plug-in extension_javascript skills

json formatting/compression tool Chrome plug-in extension_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:26:391384browse

Installation method:
Use chrome browser to access
https://chrome.google.com/extensions/detail/pjkoglpbigbjijmncfkcpkcpddnelgbm?hl=zh-cn

[json format [Compression/Compression] tool

Install under chrome:)

1. Create a new folder

2. Create a file named manifest.json

3. Open this manifest.json file, which can be understood as a configuration file:)

Contains the following content

Copy code The code is as follows:

{
"name": "My First Extension", //The name of the extension
"version": "1.0", //Version
"description": "json format", //Description
"browser_action": {//Operation on browser
"default_icon": "icon.png",//Icon
"popup ":"json.html"//html file
}
}

4. Pick a png picture you like


5. Create an html File (the core code is inside, the chrome extension is written in js)

There are now three files in the lib folder (icon.png, json.html, manifest.json);


6. Open chrome.exe (Tools->Extensions (E)->Click developer mode and select the extension under development), and then debug it


7. Upload the extension you developed, https://chrome.google.com/extensions/, select (Publish extension) on the left,


After logging in, you can upload your packaging folder (lib The folder is compressed into lib.zip, which must be zip, and ensure that no files containing Chinese names appear in the same directory, otherwise the upload will fail!)
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn