
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
urlbarbutton
Advanced tools
The UrlbarButton module allows for easy adding of buttons to the urlbar in Firefox.
npm install --save moz-urlbarbutton
var {data} = require('sdk/self');
var UrlbarButton = require('urlbarbutton');
exports.main = function() {
button = new UrlbarButton({
id: 'foobar-button',
image: data.url('foobar-button.png'),
onClick: function(tabId, event) {
}
});
button.setImage(data.url('boobar-button.png'));
};
exports.onUnload = function (reason) {
if (reason !== 'shutdown') {
button.remove();
}
};
| option | description |
|---|---|
| id | a string identifier that identifies the specific button. |
| image | optional path to an image for the button. |
| tooltip | optional tooltip text for the button. |
| onClick | optional callback to fire on a click on the button. |
setOptions(), setVisibility(), getVisibility(), getButtons()setOptions(), that enables changing tooltip and click actionoptions.gotoUrl, that will open the specified URL on clickonLocationChange and onPageShow listeners, that were called when a new page was loaded, into a new module, ShowForPage, and removed support for those listeners along with removing the callbacks that were used in them.setImage and setVisibility to have the href-parameter as the last parameter instead of the first as that makes more sense for an optional parameter.setVisibility to have its href parameter be optional for realgetVisibility methodFAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.