carbonalyser / Carbonalyser

The add-on "Carbonalyser" allows to visualize the electricity consumption and greenhouse gases (GHG) emissions that your Internet browsing leads to.
https://theshiftproject.org/en/carbonalyser-browser-extension/
MIT License
149 stars 37 forks source link

Can't run script.js #33

Open Gouyats opened 4 years ago

Gouyats commented 4 years ago

I a student in computer science and I need to analyse the plugin for a project but I have some issues. When trying to run script.js, there is an error : "ReferenceError: chrome is not defined". I can't find why. Any suggestions ?

Otherwise, how to launch Carbonalyser in a web page ? What do I need to run ?

Waiting for answers. Thanks in advance.

supertanuki commented 4 years ago

Hi @Gouyats To install your own extension, see the installing chapter here for Firefox: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Your_first_WebExtension or for Chrome: https://support.google.com/chrome_webstore/answer/2664769?hl=fr