
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
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.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.