Skip to content

Chrome extension

Kalpan Jasani edited this page Apr 13, 2020 · 1 revision

To build chrome extension,

  1. checkout the branch

  2. if you can run bash scripts, great, but if not, you need to manually inspect build_extension.sh

change directory to chrome_extension on command line, run: bash build_extension.sh

  1. open chrome, go to chrome://extensions on the url entry in Chrome

  2. on right corner, allow developer mode to allow our extension to be added to your chrome

  3. then, elect to upload folder for extension by saying load unpacked

  4. select build folder at /chrome_extension/build

  5. now, there will be an id that is generated for your extension, copy it

  6. in chrome_extension/popup/src/ , open App.js and change the url for options page to be similar but with your chrome extension's id

  7. In firebase, go here: https://console.firebase.google.com/project/fetch-c97bc/authentication/providers and select Add domain in Authorized domains section. There add your chrome-extension:// like some others already present there.

  8. Second last step: do the build step again by running bash build_extension.sh and

  9. finally, load the extension again by going to chrome://extensions/ and selecting the option like "Load Unpacked"

Now, the extension should be loaded on your chrome and you are ready to use it

Clone this wiki locally