Questions tagged [browser-action]

a way to extend Google Chrome browser by placing an icon alongside the address bar (omnibox) with popup, click and context menu handling functionality

54 questions
39
votes
4 answers

Add browser action button in internet explorer BHO

So. I'm working on a BHO in IE and I want to add a browser action like this: In internet explorer it would look something like The only tutorials and docs I've found were on creating toolbar items. None mentioned this option. I know this is…
Benjamin Gruenbaum
  • 246,787
  • 79
  • 474
  • 476
14
votes
2 answers

Remove margin in Chrome browser action popup

I have a Chrome extension with a browser action that is trying to imitate the visual style of a different app. Part of this style is a header and footer that extend to the edges of the app. The problem is that the browser action popup contains a…
Toji
  • 31,923
  • 20
  • 95
  • 113
8
votes
2 answers

Chrome Extension: Hide and show the browser action icon

Is it possible to show and hide the browser action icon from the options page? I know how to do it with the page actions using the show and hide methods, but I don't see any similarities in browser actions.
7
votes
3 answers

Chrome Extension - Modify Right-Click Browser Action Menu

I am wondering if I am able to modify the right-click menu of the browser action menu? I want to add an option titled 'Logout'.
Jon
  • 2,079
  • 4
  • 23
  • 29
5
votes
0 answers

Create new tab from browserAction in Chrome

Update: Found a solution in another one; apparently I miscopied it before! This worked: chrome.browserAction.onClicked.addListener(function(tab) { chrome.tabs.create({'url': chrome.extension.getURL('f.html')}, function(tab) { // Tab opened. …
4
votes
3 answers

How can I specify a hotkey for my browser action?

Is it possible to specify a hotkey that will activate a Google Chrome browser action?
4
votes
2 answers

How to enable/disable manifest.json CSS content script from Chrome Extension's options page?

Is there any way to disable/enable a CSS content script from a browserAction or pageAction icon? I'm talking about the kind of script that runs a CSS content script, as defined in the manifest, on a specific set of matched pages. So, if the manifest…
mix
  • 5,937
  • 14
  • 53
  • 85
4
votes
1 answer

How to set Unicode character as badge text on browser action in Chrome extension?

I have just started developing a Chrome Extension, and I am almost done except for this one little problem. I want to set a Unicode character as the badge text on a browser action, but what I've tried so far is NOT working. Here's how it looks…
4
votes
1 answer

Chrome 33.0.1750.117 m, background icon extension is orange

I post here to see if you have an idea of ​​what may be this bug, met last night making changes to my Chrome extension. Since the background of the icon-extension is orange and does not change : http://img15.hostingpics.net/pics/388737bug.png The…
4
votes
1 answer

browserAction opens slowly unless already open in a tab

A browserAction in my Chrome extension takes about 250ms to display its popup, popup.html. However, when popup.html is already open in a tab in the browser, then the browserAction popup displays almost instantly. manifest.json: { …
4
votes
1 answer

Why does a browser action's default icon reapper after a custom icon was applied?

I have a strange problem with a browser action icon in Chrome. There is a default icon for browser action defined in manifest. The icon is displayed correctly. Then in a background page, under some conditions, I…
Stan
  • 8,365
  • 9
  • 53
  • 99
3
votes
2 answers

Modify local storage via popup, and use stored values in contentscript

I'm trying my hand at creating a chrome extension, but am running into a wall. I want to be able to use the browser-action popup to write/modify values into local storage (extension storage). Then, I want to use the stored values in a content…
3
votes
1 answer

How to hide an extension's Browser Action icon programmatically in a popup.html?

If we right click on an extension's Browser Action icon and choose Hide button,the icon will be hidden but the extension will still work.So can we make this programmatically? (with some javascript in the popup.html ?) btw:I don't want using a page…
Sam Su
  • 4,585
  • 6
  • 31
  • 74
2
votes
2 answers

chrome extension popup not open immediately

I'm writing a chrome extension. When i click the browser action button in the first time - all goes well. When i click the browser action button the second time, after several minutes of not clicking it, it takes more than 10 seconds until the popup…
nitzan
  • 319
  • 1
  • 14
2
votes
1 answer

Fill form via chrome extension popup

I want to load values from fill.js and when the anchor link in extension popup.html is clicked it will autofill form fields on a remote page that has field IDs of #user + #pw. This is what i currently have in my extension but i'm not sure if it's…
7O07Y7
  • 387
  • 1
  • 4
  • 16
1
2 3 4