Questions tagged [firefox-sidebar]
19 questions
5
votes
2 answers
Configuring a sidebar_action to be only on for certain sites?
I want to create a firefox extension that allows a sidebar to automatically show when a user navigates to certain web pages.
For example, let's say I configure it so if a user navigates to google.com they will be presented a sidebar that lets them…

Nicholas DiPiazza
- 10,029
- 11
- 83
- 152
4
votes
2 answers
Android sidebar
I've been using firefox for Android and really like the use of the sidebar to hold shortcut icons and the like. How would I go about creating a similar bar myself with the following attributes:
progressively revealed as I swipe in one direction…

Martyn
- 16,432
- 24
- 71
- 104
4
votes
2 answers
Controlling firefox add-on sdk sidebar width
I am creating a firefox add-on with Add-on SDK. My add-on uses a sidebar created with the ui/sidebar API. Is there any way for me to control the initial width of this sidebar?
The user can drag to change its size, but I would like it to start with a…

Pwnosaurus
- 2,058
- 1
- 19
- 21
3
votes
1 answer
firefox sdk: how to use emit for sidebar outside widget
I am using this code from the SDK Tutorial Website:
var sidebar = require("sdk/ui/sidebar").Sidebar({
id: 'my-sidebar',
title: 'My Sidebar',
url: require("sdk/self").data.url("sidebar.html"),
onAttach: function (worker) {
//…

gb5256
- 191
- 11
3
votes
3 answers
How can I prevent Firefox showing my extension's sidebar on startup?
If my own sidebar is left open when Firefox is closed, it is shown again on startup. I find this undesirable and would rather it remain hidden until opened manually. Is it possible to stop this happening?
I tried adding this bit of code to my…

Mat
- 82,161
- 34
- 89
- 109
2
votes
0 answers
Is it possible to make JavaScript work in Sidebar of a Firefox WebExtension?
I was trying to build an extension for Firefox and was going through Mozilla's tutorial, but got stuck pretty quick and now I need some clarifications.
So, I was thinking about adding a Sidebar, which will contain a lots of buttons (like, it will be…

Oleg Kuznetsov
- 196
- 2
- 6
- 19
2
votes
1 answer
Firefox Addon using SDK HotKey not shown on sidebar Menu
My extension is a sidebar.
I've set a hotkey to open it (AltShiftC).
The keyboard shortcut works perfectly but is not shown next to its menu item.
What can I do to show the hotkey ?

user3433920
- 131
- 1
- 6
1
vote
0 answers
Sending a message to the content script on closing a Firefox sidebar
Because our sidebar Web extension modifies the HTML content displayed in the Web browser, we would want to clear the page back once we close the sidebar.
Therefore I tried this:
sidebar.js
(...)
class Sidebar extends React.Component {
(...)
…

Aurélien Bénel
- 3,775
- 24
- 45
1
vote
2 answers
Listen to Firefox WebExtension sidebar closing
I am working on a WebExtension using the sidebar.
When the sidebar is open, the extension performs some operations on the current tab. When it is closed, I want to revert these operations.
Is this possible? I didn't see methods like…

GnxR
- 829
- 1
- 8
- 20
1
vote
2 answers
Firefox SDK Add-on with a sidebar on both the right and left at the same time
I'm programming a Firefox Add-on SDK based extension. I need to use both a left and a right-side sidebar, at the same time. By default, I can display one on the left side. I've already read about changing between having the ui/sidebar on the left…

gal007
- 6,911
- 8
- 47
- 70
1
vote
0 answers
Capture mouse move from sidebar of a firefox plugin into the document
I am trying to do something like the following in my Firefox plugin - I open a sidebar on which I show certain UI elements (like an image) and allow people to drag and drop those images from the sidebar onto the document. I am trying to achieve my…

Kapil
- 572
- 1
- 5
- 23
1
vote
0 answers
jquery sticky sidebar working second scroll
I have this page:
click here to see my apge
my problem is that the sticky sidebar works but it does not work the first time I scroll, can anybody help with this problem? I have no idea why it doesn't work the first time I scroll down.
Thanks

ilovedoingwebsites
- 101
- 1
- 1
- 11
1
vote
2 answers
Monitoring page load event in selected tab from firefox sidebar
I want to be able to run a function in my firefox sidebar js file when the selected tab in the main content window is reloaded or changed. So the sidebar can change depending on the site the user is looking at.
Anyone able to point me in the right…

user11198
- 131
- 2
- 6
1
vote
1 answer
Restoring sidebar state in xul
I am creating a sidebar extension which contains a new tab button which adds a new tab containing some elements to the box contained in my sidebar using javascript with the help of document.createElement() function. Now i want to restore the new…

gptmayank
- 46
- 4
0
votes
0 answers
Have react-debugger in the addon debug
I am currently developing a web extension for Firefox and Chrome. I am writing it in ReactJS/Redux. So I am used to these…

onda47
- 615
- 2
- 6
- 21