Format JSON in modal dialog with right-click

Latest Version

Version
1.1.0
Update
June 5, 2020
Size
29.26KiB
Developer
Category
Users
249
Rating
5 ★
Manifest Version
2
Web Store Status
Languages Support
English
See more
Permissions
ContextMenus
ActiveTab
Storage
See more

JSON Formatter In Modal Extension

1.Select the JSON text in the page and right-click to display the formatted JSON in the modal dialog of current page.
2.Support JSON page(image 2).
3.Double-click a curly bracket/square bracket/parenthesis, it will match another bracket and automatically select the content.
4.Right-click the icon in the upper right corner-> Options, enter the configuration page to set a regular expression, used to replace the selected text before formatting; you can enter multiple replacement operations, separated by \"\\,\" will be serially replaced in order(image 3、4).
5.Automatically remove illegal characters outside the first and last brackets of text(image 5).
6.Support to select only one or more key-value pairs.
7.Click the mask layer to close the modal dialog


1.在页面中选中一段JSON文本,然后右键单击在当前页面中弹框(modal-dialog)显示格式化后的内容
2.支持JSON页面(图2)
3.双击一个花/中/圆括号,会匹配另一个括号并自动选中其中的内容
4.右击右上角图标->选项, 进入配置页面设置正则表达式,用于在格式化之前对选中文本进行替换操作;可以输入多个替换操作,以\"\\,\"分隔,会按顺序进行串行替换(图3、4)
5.自动去除文本首尾括号外的不合法字符(图5)
6.支持仅选择一个或多个键值对
7.单击遮罩层可关闭弹框
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "manifest_version": 2, "name": "JSON Formatter In Modal", "version": "1.1.0", "description": "Format JSON in modal dialog with right-click", "author": "cjh", "icons": { "48": "icon.png", "128": "icon.png" }, "background": { "page": "background/background.html" }, "options_ui": { "page": "options/options.html", "open_in_tab": false }, "content_scripts": [ { "matches": [""], "js": [ "contentScript/tool.js", "contentScript/getFormattedHtml.js", "contentScript/template.js", "contentScript/renderModal.js", "contentScript/xhrFormat.js", "contentScript/dom.js", "contentScript/bracketMatch.js" ], "run_at": "document_start" } ], "permissions": ["contextMenus", "activeTab", "storage"]}
Read more

How to download and manually install JSON Formatter In Modal extension for Chrome

Looking for a way to install JSON Formatter In Modal extensions for Chrome, you can search for them in the Chrome Web Store, clicking the "Add to Chrome" button, and following the straightforward process.

However, you may need to install JSON Formatter In Modal extensions manually, this article outlines two simple methods to effortlessly install JSON Formatter In Modal extensions, whether they come as unpacked folders in compressed formats like .zip or as .crx files.

Method 1: Download JSON Formatter In Modal extension and manually install through Drag &Drop

If you ever need to manually install a JSON Formatter In Modal extension for Chrome, don't worry, it's a simple process. Just follow these easy steps, and you will have your extension ready to use in no time.

Step 1: Download the JSON Formatter In Modal Extension by clicking the "Download CRX" button on the website.

Look for the JSON Formatter In Modal extension you wish to install. Go to the website and download the JSON Formatter In Modal extension package, which is usually a .CRX file and comes in a zipped file. Here ".crx" file is the format for JSON Formatter In Modal extension that contains all the data.

Step 2: Extract &Arrange Files

Once the file is downloaded, extract that file into its own folder. Similarly, give that extension files a permanent home. In other words, keep it in a folder that you don't accidentally delete it because these files will be needed to make that extension work.

Step 3: Go to the Chrome Extensions Page

Open Google Chrome and in the address bar, type chrome://extensions; it will open the Google Chrome extensions page. Make sure that "My extensions" is selected in the sidebar.

Step 4: Drag and Drop the Extension

Now, go to the folder where you extracted the JSON Formatter In Modal extension and drag &drop the extension file from there anywhere onto the extension page within Google Chrome.

Step 5: Complete the Installation

Once you drag and drop the extension file, follow the steps that Google Chrome takes you through. Similarly, if the extension file is of .crx file format, you will be required to review the permissions and then add the extension.

Now, you can manage that added extension as you would like to with any other Chrome extension that you added through Chrome Webstore. Its icon will also appear in the Google Chrome Menu on the right side of the address bar once you activate it.

Method 2: Download JSON Formatter In Modal extension for Chrome and install in Developer Mode

This is another method to install JSON Formatter In Modal extension manually, but the twist is that here, you install by enabling the developer mode option provided in Google Chrome. This mode is commonly used for testing extensions or running unpublished tools.

Step 1: Download the JSON Formatter In Modal extension file

Select and download the JSON Formatter In Modal extension by clicking the 'Download CRX' button on the website.

Step 2: Extract the downloaded contents

Convert the file to a ZIP file if it is in CRX format then extract the JSON Formatter In Modal extension zip file or folder that you downloaded. Make sure you extract it using the same folder name and keep it safely in another folder, so you don't delete it by mistake. The extracted folder will be needed to keep your JSON Formatter In Modal extension running.

Step 3: Open Chrome Extension Setting Page

In the address bar of Google Chrome, type chrome://extensions and open the Chrome Extension Page.

Step 4: Enable Developer Mode

After opening the Chrome Extension page, look at the top right side, and you will find the toggle option of "Developer mode."Simply enable that developer mode option.

Step 5: Load the Unpacked Extension

Once you enable the developer mode option, you will see the menu of Load Unpacked, Pack Extensions and Update. From that, select the option "Load unpacked."

Step 6: Select the Extension Folder

Once the pop-up opens upon clicking Load unpacked, select the JSON Formatter In Modal extension directory and click on the "Select Folder "button.

Step 7: Confirm and Install

After you select an extension folder of a Google Chrome extension you're installing manually, confirm its installation for the final time and let the installation complete.

Conclusion

Here we've made a step-by-step guide on How to manually install JSON Formatter In Modal extension in 2 ways. We hope this guide proves helpful.

Similar Extensions

icon

JSON Visualizer Extension · Developer Tools 249 3 ★ 149KiB

icon

Nested Object JSON Parser Extension · Developer Tools 249 0 ★ 21.21KiB

icon

Json Viewer Editor Extension · Productivity 249 8 ★ 1.39MiB

icon

JSON Formatter Extension · Developer Tools 249 5 ★ 34.77KiB

icon

Seven JSON Viewer Extension · Developer Tools 249 8 ★ 228KiB

icon

Rainbow Brackets Extension · Accessibility 249 7 ★ 532KiB

icon

JSON Formatter Extension · Developer Tools 249 1 ★ 26.69KiB

icon

JSON Formatter Extension · Productivity 249 0 ★ 1.59MiB

icon

Jipy Extension · Developer Tools 249 2 ★ 13.43KiB

icon

Ultra Fast JSON Viewer Extension · Developer Tools 249 3 ★ 9.94KiB

icon

JSON Formatter Extension · Developer Tools 249 33 ★ 102KiB

icon

JSON Formatter for API Extension · Developer Tools 249 1 ★ 55.46KiB

icon

console.sparkline Extension · Developer Tools 249 1 ★ 4.7KiB

icon

JSON Compressor Extension · Developer Tools 249 2 ★ 68.14KiB

icon

Cookie Tool Extension · Developer Tools 249 1 ★ 79.23KiB

icon

Rainbow JSON Formatter Extension · Developer Tools 249 7 ★ 52.65KiB

icon

DOM to JSON Selector Extension · Developer Tools 249 0 ★ 48.55KiB

icon

DOM-JSON Tree Matcher Extension · Developer Tools 249 0 ★ 18.58KiB

icon

JSON Formatter 格式化 Extension · Developer Tools 249 8 ★ 57.07KiB

icon

JSONpop - Textarea JSON editor Extension · Productivity 249 4 ★ 228KiB

icon

JSON Viewer React Extension · Developer Tools 249 2 ★ 882KiB

icon

DOM to JSON Converter Extension · Developer Tools 249 1 ★ 18.23KiB

icon

DJSON. JSON Viewer & Formatter Extension · Developer Tools 249 68 ★ 126KiB

icon

JSON.format Extension · Developer Tools 249 1 ★ 13.52KiB

User reviews

icon

Ying Yi (ID: 00000032965d7a60) Voted 5 ★ - Updated 11/16/2021 cool

icon

Yi Gao (ID: 000000550287054f) Voted 5 ★ - Updated 08/21/2020 niubility

icon

谢渊 (ID: 00000066389ecc6b) Voted 5 ★ - Updated 03/12/2020 this ext is great, I don't have to open vscode just for format json