/sample-browser-extension

A sample browser extension for fun

Primary LanguageJavaScript

sample-browser-extension

This extension applies a fancy animated gradient background to your current tab whenever you press a keyboard shortcut.

Shortcut: Ctrl+Shift+V

Concepts Used

  • activeTab - Allows us to query for the active tab and manipulate it
  • scripting - Allows script script execution in a tab
  • commands - Ties an action to a keyboard shortcut

Demo

sample-image

How to use

  1. Clone the repository or download the code manually
  2. Open Chrome and click on the Extensions button (looks like a puzzle piece) in the upper right hand corner
  3. Click Manage Extensions
  4. Toggle developer mode on (upper right hand corner)
  5. Click the Load Unpacked button
  6. Navigate to the folder containing the code that you downloaded or cloned in step 1
  7. Select the folder
  8. Now open a new tab and navigate to any website
  9. Press Ctrl+Shift+V to apply the fancy background