Question

I am trying to develop an extension which will show some information(about 15 words) in a small section below the extensions icons in the browser using crossrider?. I searched about it and it seems that browser only supports extensions icons and bookmarks. So is it possible to add such kind of section?? Im new to browser extension development and not sure about its possibility.

Was it helpful?

Solution

The nearest you can get to this is to use a browser action/button and use the tooltip (a.k.a. title) to display the information when the mouse hovers over the button. For example, in your background.js file your code would look something like:

appAPI.ready(function($) {
  appAPI.browserAction.setResourceIcon('icons/icon.jpg');
  appAPI.browserAction.setTitle('Information displayed on mouse hover');
  appAPI.browserAction.onClick(function() {
    alert('Hello world!');
  });
});

For more information, see appAPI.browserAction.

[Disclosure: I am a Crossrider employee]

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top