Back to Chrome Extensions Samples

Site-specific side panel example

functional-samples/cookbook.sidepanel-site-specific/README.md

latest963 B
Original Source

Site-specific side panel example

This example demonstrates how to display the side panel only on google.com using the Side Panel API. It also allows users to open the side panel by clicking on the action icon or a keyboard shortcut.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Pin the extension.
  4. Go to https://www.google.com.
  5. Click on the action icon to open the side panel.

šŸ’” You can also open the side panel by pressing Ctrl+B (Windows) or Cmd+B (macOS).