# Prepare extension for submission

To publish your extension to the Chrome Webstore follow the steps in the [Chrome Developer Docs](https://developer.chrome.com/docs/webstore/publish/). But let’s tidy your extension up before doing so:

1. Open `manifest.json` in any text editor and adjust the app name and description in line 3 and 4&#x20;

   <figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2F8Zr03nLLMFFR9LUPQ6Sq%2Fimage.png?alt=media&#x26;token=73e6f511-31b0-49f6-9637-b878f83fd24b" alt=""><figcaption></figcaption></figure>

2. Make sure to delete the content script section from `manifest.json` if you don’t use any content scripts in your extension. Otherwise your extension might be rejected by Google. ![](https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2FHxMNj7rGkvBXsM2h3JRa%2FScreenshot%202024-11-28%20at%2012.43.08.png?alt=media\&token=753b666d-6151-4377-87b5-5a5c40cd3cb2)

3. Delete unused permissions from the `manifest.json` file. EG if you don’t use the Chrome local storage workflows in your extension, delete the line "storage", in manifest.json. You will most likely always need activeTab and scripting. Once you delete any permissions, please test if you app still works correctly.&#x20;

   <div align="left"><figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2FgN40dMDQyPMo8OJ3WsYS%2FScreenshot%202024-11-28%20at%2012.44.24.png?alt=media&#x26;token=d6986932-2619-425c-8ebf-f51a9d689646" alt=""><figcaption></figcaption></figure></div>

4. If you have a square icon for your Chrome extension, use an online resizing service (e.g. <https://www.simpleimageresizer.com/upload>) and replace the files in the images folder. Make sure to keep the names as is (i.e. 16x16.png, etc.).&#x20;

   <figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2Fcoy7hIaUwG5XjRSF5yzB%2FScreenshot%202024-11-28%20at%2012.45.59.png?alt=media&#x26;token=97edc05c-b805-4631-97b2-0795d485ec1b" alt=""><figcaption></figcaption></figure>

5. If you don’t need microphone access from your sidebar, please comment out (i.e. add // in front of the line) lines 168, 253 and 301 in `background.js`

<figure><img src="https://1746625412-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FR8XSg57nbIyYLBX9iJLb%2Fuploads%2FWnpoQdet5flU5MTdBK6P%2F2024-11-28%2012.49.04.gif?alt=media&#x26;token=4708b3bd-460c-4be6-a7bf-195ba081d4ea" alt=""><figcaption></figcaption></figure>
