Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Contextlets

Contextlets by David Hammond

Add context menu items that execute custom JavaScript.

4.8 (13 reviews)4.8 (13 reviews)
50 Users50 Users
You’ll need Firefox to use this extension
Download Firefox and get the extension
Download file

Extension Metadata

Screenshots
Custom context menu item.Context menu item configuration.
About this extension
This extension allows you to add any number of items to the context menu and have them execute custom JavaScript code as either a content script (which runs in the webpage and has access to the window object and DOM), or a background script (which has access to tabs and other WebExtension APIs). The Contextlets API also allows you to cross this divide and execute part of your script as the other type.

Firefox prevents WebExtensions from displaying more than one item in the top-level context menu at a time, per extension. If there are more to display, they will instead show up in a submenu. If you don't want to deal with submenus, you can work around this by installing one or more of the supplementary extensions. Each of these extensions will provide one additional spot in the top-level context menu, which you can select in the main Contextlets menu editor. To install an "extra" extension, first download an xpi file from here to your computer, then go to your Add-ons Manager, select "Install Add-on From File..." from the gear menu, and select the xpi file you downloaded.

Some example contextlets are available. To try these out, you will first need to download the JSON file and then import it using the Import button within the Contextlets extension.
Rated 4.8 by 13 reviewers
Sign in to rate this extension
There are no ratings yet

Star rating saved

5
11
4
1
3
1
2
0
1
0
Read all 13 reviews
Permissions and dataLearn more

Required permissions:

  • Read and modify bookmarks
  • Get data from the clipboard
  • Input data to the clipboard
  • Download files and read and modify the browser’s download history
  • Monitor extension usage and manage themes
  • Access browser tabs
  • Access your data for all websites
More information
Add-on Links
  • Homepage
Version
0.4.1
Size
26.62 KB
Last updated
5 years ago (Apr 15, 2020)
Related Categories
  • Other
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
Release notes for 0.4.1
- Fixed using runAs() with function literals. This was broken in Firefox 74 and up due to the removal of Function.prototype.toSource() in web content.
More extensions by David Hammond
  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

  • There are no ratings yet

Go to Mozilla’s homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version.