Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to chrome web store validate manifest.json

I interest in developer dashboard of chrome web store when I try to upload text file name manifest.json but inner file doesn't json format I know that google uses any means to check the file structure thank for suggest

like image 565
krissanawat Avatar asked Dec 27 '22 20:12

krissanawat


2 Answers

Before uploading your extension to the webstore, it is really better to test by loading your extension as an "unpacked extension", which you can do by visiting chrome://extensions, expanding "Developer Mode" if it isn't already expanded, and then clicking "Load unpacked extension..."

Loading your extension will allow you to test it and discover issues, long before publishing it to test accounts or to other users. The Chrome extension developers' guide - manifest format documents what is permissible in the manifest. It is also necessary for the manifest to be standard JSON.

Also, I should point out that the Chrome webstore may disallow well-formatted code if it violates the terms (e.g. violating the branding guidelines or seeming to represent a website you don't own).

like image 152
Michael Aaron Safyan Avatar answered Jan 06 '23 21:01

Michael Aaron Safyan


I found that Chrome store will not accept manifest.json including "// comment", but Chrome developer mode accepts.

I copy and paste from here, and "// Optional" is added to my manifest.json file. http://developer.chrome.com/extensions/manifest.html

Maybe Chrome developer mode should also reject the comments?

like image 24
tokentoken Avatar answered Jan 06 '23 21:01

tokentoken