Context Menu Item

The Context Menu action lets you add items to your browser’s context menu. The menu item will appear when you right-click on a web page or in certain contexts.

What does the Context Menu look like

Create a Context Menu

Follow these steps to create and configure a new Context Menu item:

  1. In the left panel, click Add > Context Menu.

  2. Go to the middle panel and edit a name in the Name field to something that will describe your entire mod. For example: Scrape LinkedIn Profile.

Configure a Context Menu

In the sections below the Name, enter the following information:

FieldDescription

Title

If desired, edit the default context menu name. This is the name that displays in the context menu options. Alternatively, you can click on the selected text shortcut link to insert the %s placeholder automatically. For example, if a user selects "Amazon" on a page, the browser automatically inserts "Amazon" in the context menu.

Menu context

Specify when the context menu item should display by selecting the appropriate context: Menu context β€’ page - Excludes links, frames, images, and selected text. β€’ all - Displays in all contexts, meaning that it always displays. β€’ frame - Displays the menu item on frames (e.g., iframes within a page) β€’ selection - Displays the menu item when right-clicking on selected text. β€’ link - Displays the menu item when right-clicking on a link. β€’ image - Displays the menu item when right-clicking on an image.

Sites

When you specify the sites you want the context menu to display, PixieBrix runs faster and more accurately. To do so, enter the URL in the Sites field. Make sure that at least one URL matches the pattern(s) you added. You can also: β€’ Click the Site, Domain, HTTPS, or All URLs shortcuts to insert URLs automatically. β€’ Click Add Site to add more sites. β€’ Click ABC > Remove to remove a site from the list. Learn more about What Are URL Match Patterns?

If needed, go to the Advanced section and enter the following information.

This is optional information. In many cases, you may not need to configure any of these settings unless you're trying to do something specific.

FieldDescription

Target Mode

β€’ Select eventTarget to provide the Context Menu element clicked as the source of the action. β€’ Select document to provide the entire HTML document as the source of the action. β€’ Legacy. This option is deprecated. Do not select this option.

Automatic Permissions

Add the URL location(s) where the context menu items should display. β€’ Click the Site, Domain, HTTPS, or All URLs shortcut to insert URLs automatically. β€’ Click Add Site to add more sites. In most cases, users display the context menu item on one site, but you can enter more than one URL to display it on multiple sites. β€’ Click ABC Text > Remove to remove a site from the list.

  1. URL match patterns determine which extensions run on a site or call an API. You can add URL match patterns in the Advanced: Extra Permissions section if the extension performs actions on a target tab not included in the site match patterns or calls an API without using an Integration. To do so:

  • Click the Add Allowed Origin button in the Sites/APIs:

  • Click the Site, Domain, HTTPS, or All URLs shortcut to insert URLs automatically.

Learn more about What Are URL Match Patterns?

Last updated