Chrome Extension background script open webpage - google-chrome-extension

Can a Chrome extension background script open a webpage in a new tab, if a specific URL is not already open?

Related

Chrome extension (manifest 3): Keep popup open

I'm develop Google Chrome extension, when i try to load a file to my extension, during the search for it in folder popup apparently lose focus and close. what I need is keeping the popup open during this process of select a file. how can I do that, working around the problem present in manifest 3.

launch chrome extension from command line

I have created a chrome extension which opens a new tab window,plays youtube videos and collects the network statistics.
What I currently do is to launch the chrome and then click the extension icon to run the extension. Now I want to automate the process of launching chrome and the extension simultaneously from command line.
Please guide me how I can open and run the extension on chrome from command line.
I have tried --load-and-launch-app and --load-extension.
You can move the logic of your extension in your background.js page. In this way when chrome starts, it will run your code in background.js without clicking extension icon.
For starting chrome use -
start chrome

Opening a Chrome extension as a pop-up using a link

I have a chrome extension installed in my browser. When I click the extension's icon in the menu bar the extension opens as a floating pop-up, as expected.
What I am trying to do is to open the extension in Chrome via a link/shortcut/whatever from another program. As a first step I've tried opening the extension from the command line, ex:
chrome "chrome-extension://abcdefghijklmnopqrstuvwxyz/index.html"
This works but the extension opens as a new tab and takes up a full broswer page instead of a just being a pop-up. Is there a way to open the extension as a pop-up on top of any open tabs?
Sadly, it's completely impossible.
There is an API in the works, but it would require at a minimum a user gesture, at a maximum explicit invocation of the extension.
So opening a link would not be enough, nor would a Native Message be.
you cant make the native extension popup to show programatically but you could use a content script that displays the popup (using the new for example) on the tab that you want.

How can I remain on same page window on Chrome browser extension when it closes?

I'm developing a Chrome browser extension that that has different menu links that go to different pages in the extension. I noticed each time the extension closes I have to navigate back to the last page I was on in the extension.
Is there a way to keep the last page I'm on current even if the extension window closes?

How do I load my extension on chrome startup?

I have developed a google chrome extension and I have a badge on the icon that displays a number.
When I start the browser the badge is not displayed. So I think I have to load the extension when chrome browser was started.
Is that possible?
Code in a background page is executed when a new browser window is created.

Resources