The Wayback Machine - https://web.archive.org/web/20240204103704/https://www.geeksforgeeks.org/what-are-chrome-extensions/
Open In App
Related Articles

What are chrome extensions?

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

It is a small program to modify the experience or add functionality to the chrome browser. They are created using web technology like HTML, CSS, JavaScript, etc.
The main aim of an extension is to serve a single purpose around which the whole program is built, although it can have multiple components but they should help in accomplishing the main purpose of the program.
An extension should have the minimal interface or it can extend to a web page also but main focus is to provide good functionality with less overhead.
Extension are zipped into a in .crx package, the user needs to download the package and install it. Chrome extension is published in the Chrome web store.

Some example of chrome extension is:

  • Password manager
  • Ads blocker
  • Adding to-do lists or notes to Chrome
  • Making it easier to copy text from a site

Let’s create a simple extension just to demonstrate the working procedure:

  • Every extension require a manifest file
    First, create a manifest.json file

     {
        "name": "Hello Extensions",
        "description" : "Base Level Extension",
        "version": "1.0",
        "manifest_version": 2
      }
  • Then, for demonstration we will add an icon to the extension which will on being clicked open a web page created by us.
    Add this inside the file

    "browser_action": {
          "default_popup": "hello.html",
          "default_icon": "icon.png"
        }   
    
  • Then add this to include a shortcut to display the HTML page
    "commands": {
          "_execute_browser_action": {
            "suggested_key": {
              "default": "Ctrl+Shift+F"
            },
            "description": "Opens hello.html"
          }
        }
    

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Looking for a place to share your ideas, learn, and connect? Our Community portal is just the spot! Come join us and see what all the buzz is about!


Last Updated : 31 Oct, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials