Is there a way to hide a Chrome browser tab via an extension? - google-chrome-extension

We have a software which uses a browser tab to hold the connection between client and server.
Users accidentally close the tab and have connection issues.
I want to program a Chrome extension which scans all new tabs. When this special tab is identified, I want to move this to a new window and hide this window, so that the user can't close the tab by mistake.
Is this possible with a Chrome extension?
Thanks.

Related

Force extension become inactive

With manifest v3 the service workers become inactive after few seconds, but they stay active for a long time if devtools is opened (way beyond 5 minutes).
I need to test how my extension handles its active/inactive cycles. How can I force it to become inactive while devtools is opened?
(can't use devtools persistent logs for action popup, because it's being cleared each time)
Open any visible page of your extension like the popup or the options
Open devtools for that page (right-click the page, then choose "inspect")
Go to Application tab, then Service Worker on the left.
Now you can click Stop and Start to control the background script. You can also debug it and set breakpoints in this devtools.
If your extension doesn't have any page, open any file in a tab e.g. chrome-extension://ID/manifest.json where ID is the id of your extension. A quick method of doing it is to right-click any file of your extension in devtools Sources panel, then choose "Open in new tab".
You can also stop/start/unregister/inspect service-worker in this url chrome://serviceworker-internals/

Is there anyway to delete browser history when that browser windows get close without using in incognito mode?

If I open many chrome or brave or other browser windows with different tabs, And when I close any particular browser window .I need all the browser history for that window alone to be deleted and This should be optional.
without using incognito mode

Is it possible for a Chrome Extension to screen grab from an incognito window?

I'm trying to build a screen recorder as a Chrome Extension. The idea is that the recorder can log all mouse and keyboard events, and also store a stream of images from the browser client window. I want to do all of the recording from an incognito window. So far, I'm not managing. Is this even possible?
Yes, it's possible. User just has to allow incognito mode.
Here are the steps below to get this done:
1. In chrome://extension find your extension press details
2. Then Find the section that says allow in incognito.
Just turn it on, this will work.

Do cookies track current tab or information from all tabs?

Do cookies track current tab or information from all tabs?
The reason I'm asking is because if it's the former, then that means it's safer to open web apps like online code editors or mail etc. in a new tab?
Cookies are automatically installed in your browser and it will not fixed to a particular tab .It grabs information from all tabs .
if you want to escape from cookies you need to browse in incognito window in google chrome or in private window in Firefox.
This browsing is very safe from cookies.

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.

Resources