a way to extend Google Chrome browser by placing an icon alongside the address bar (omnibox) with popup, click and context menu handling functionality
Questions tagged [browser-action]
53 questions
0
votes
0 answers
How to track screen time in Chrome extensions
I'm building a browser extension as part of my website for self-discipline and anti-procrastination, one of the core features is to track users' active usage of each website. Just like how Apple tracks our screen time, I wish to have an extension to…

Ryan Wang
- 418
- 7
- 23
0
votes
0 answers
Should chrome extension commands (hotkey) names be changed when updating to Manifest Version 3?
Recently, Google has introduced Chrome Extensions Manifest Version 3. One major change was the consolidation of the Browser Action and Page Action popups into one single "Action" popup. This change is reflected throughout most of the APIs.
One…

asdf3.14159
- 694
- 3
- 19
0
votes
0 answers
Chrome extension Browser action icon querying
I am not sure, but is there a way to figure out what browser action icon currently is used?
Maybe i am just stupid, but better to ask than to never know.
user9117853
0
votes
1 answer
Access current document from Firefox extension browser action background script
I'm building a toolbar button extension for Firefox. In my background script, I need to access the document for the current tab when the toolbar button is clicked.
window in this context is the window for the extension, not for the current tab.…

Chris
- 11,819
- 19
- 91
- 145
0
votes
1 answer
how to make change to web page using chrome.tabs.executeScript()
I want to click my extension icon in the browser and have "test" appear in the console for the web page/tab i currently have selected in the browser.
manifest.json:
{
"name": "some name",
"version": "1.0",
"description": "some…

Steve
- 625
- 2
- 5
- 17
0
votes
1 answer
Remove Browser Action Context Menu Default Title Entry
In my chrome extension I add a couple of entries to the context menu of the browser action.
chrome.contextMenus.create({
id: 'browser_action_support',
title: lang.POPUP.SUPPORT,
contexts: ['browser_action'],
onclick: function () {
…

Honkalonkalooooohhh
- 141
- 7
0
votes
0 answers
How to open Browser_Action from content.js? Is it even possible?
I am working on a chrome extension that allows users to open the browser_action by
pressing a keystroke that THEY have assigned from the options-page.
I would like to use document.onkeyup = function(){ Chrome.runtime.openPopup(); };
or something…

255.tar.xz
- 700
- 7
- 23
0
votes
1 answer
Angular as background script will not execute unless icon is clicked
I have setup my chrome extension's background to use angular. Here is my manifest.
{
"manifest_version": 2,
"name": "Canary",
"description": "Provides a means to add shopping items to your Canary wishlists",
"version": "1.0",
…

Highspeed
- 442
- 3
- 18
0
votes
1 answer
chrome.browserAction.onClicked fires when I load a new page
I am developing a very simple extension for Google Chrome which sets a badge text when the user presses the browser action icon. Here is the background.js:
chrome.browserAction.onClicked.addListener(function() {
…

Danubio
- 93
- 8
0
votes
1 answer
browserAction on chrome extension to embed content on web page (like Rapportive)
I want to build a Chrome extension that shows some content embedded when a specific website is displayed. Exactly the same as Rapportive on Gmail.
Seems that browserAction only enables me to show that content as a popup, not embedded on the webpage.…
user411103
0
votes
1 answer
Make Chrome Extension Browser Action Popup bigger than browser window
In FireFox extensions, the Panel/Popup that opens on the Toolbar sizes itself outside the browser window, if needed, so that we see every populated elements in the panel. In Chrome however, the popup/panel is only drawn until the browser window's…

Shahid Thaika
- 2,133
- 5
- 23
- 59
0
votes
1 answer
WebExtension: How can I access the background script in my browser action
I'm totally new to WebExtension (trying to use them under Firefox). I've written a browser action. In order to keep a persistent state I figured that I have to implement a background script.
How can I acccess variables defined in the background…

anhoppe
- 4,287
- 3
- 46
- 58
0
votes
0 answers
How to get a Chrome extension to respond to a specific collection of URLs, by changing it's icon colour?
I am building a browser extension, and I want it to respond to only a specific list of urls - at the moment, I am just testing it with one URL, and I am trying to get an icon to change from white to green when a specific website is visited.
(I want…

CodeMaster
- 31
- 5
0
votes
1 answer
No console log for external script called by chrome.tabs.executeScript
I'm using two js files to accomplish a task for a chrome extension.
In background.js, I have the following line of code that calls another js file: chrome.tabs.executeScript(tabId, {file: "src/bg/sidebar.js"});
When I run the extension, the script…

sandrasaur
- 127
- 1
- 12
0
votes
1 answer
Popup page remains activated even if the page is gone
if you click on the browser button, appears a page as a popup page.
with my program you can turn on music, from the body of the page.
when the window appears, music can be turned on, but when the window goes away, music is stopped.
does anyone…

user3625605
- 323
- 1
- 5
- 16