You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/5-browser-extension
dependabot[bot] 0accbb1905
Bump axios from 1.4.0 to 1.7.4 in /5-browser-extension/solution
3 months ago
..
1-about-browsers Update README.md (#1011) 2 years ago
2-forms-browsers-local-storage Fix Typos and Grammar in Browser Extension Project Part 2 2 years ago
3-background-tasks-and-performance update tracking links with / and remove MLSA link 2 years ago
solution Bump axios from 1.4.0 to 1.7.4 in /5-browser-extension/solution 3 months ago
start Bump axios from 1.4.0 to 1.7.4 in /5-browser-extension/start 3 months ago
translations Translated all lessons to tamil language and added ta.json as a tamil translation for quizapp (#623) 3 years ago
README.md folder names 4 years ago
extension-screenshot.png folder names 4 years ago
install-on-edge.png folder names 4 years ago

README.md

Building a browser extension

Building browser extensions is a fun and interesting way to think about the performance of your apps while building a different type of web asset. This module includes lessons on how browsers work and how to deploy a browser extension, how to build a form, call an API, and use local storage, and how to gauge the performance of your website and improve it.

You'll build a browser extension that works on Edge, Chrome, and Firefox. This extension, which is like a mini web site that is tailored to a very specific task, checks the C02 Signal API for a given region's electricity usage and carbon intensity, and returns a reading on the region's carbon footprint.

This extension can be called ad hoc by a user once an API key and region code is input into a form to determine local electricity usage and thereby offer data that can influence a user's electricity decisions. For example, it may be preferable to delay running a clothes dryer (a carbon-intense activity) during a period of high electricity usage in your region.

Topics

  1. About the browser
  2. Forms and local storage
  3. Background tasks and performance

Credits

a green browser extension

Credits

The idea for this web carbon trigger was offered by Asim Hussain, lead at Microsoft of the Green Cloud Advocacy team and author of the Green Principles. It was originally a web site project.

The structure of the browser extension was influenced by Adebola Adeniran's COVID extension.

The concept behind the 'dot' icon system was suggested by the icon structure of the Energy Lollipop browser extension for California emissions.

These lessons were written with ♥️ by Jen Looper