Running Chrome in app mode with multiple tabs? - google-chrome

So I have set up an app shortcut for YouTube in Chrome. When I click this, I get a new window that opens to YouTube's website. Works great. However, if I want to for example open videos in a new tab, these will be redirected to my main Chrome window, which is not what I want as I would rather have them as tabs in the YouTube app window.
Is this possible with some flag?

Related

Is there a way to force any links to open in the same window of the chrome browser?

Do you know a way to open any links in the same window of the Chrome web browser instead of opening them in a new window?
FYI, the below methods don't work all the time:
Holding Ctrl+mouse-left-click doesn't work for all kinds of links.
"Open link in the same tab, pop-up as tab" chrome extension doesn't work on some links.

Why chrome shows alert randomly when try to open custom protocol url with location.href?

i had took a look to another threads about chrome and custom protocol apps, but i couldn't resolve a doubt i've got. In my web app, when you click a button it fire a new tab with an webpage (window.open(url, "_blank")). The new tab is opened with the url (annother web app with https protocol). This url fire a javascript function on load that verifies some things and then generate a custom url, for example myurl://base64code, and put it in an existing iframe in this way windows.frames['myframe'].location.href=theCustomProtocolUrl. i tried in different ways (location.replace, create a new iframe and set the url, etc) and i always have the same problem. If i refresh (ctrl f5) the page it always show the dialog or if i open the link with the developer console opened. But if i click my button and the page is opened in a new tab it doesn't work only if i refresh (ctrl+f5). This works perfectly on IE11, it launch the app directly.
Any ideas why chrome, and edge, works like this?
UPDATE: I have found the reason, is i use the protocolcheck.js (https://gist.github.com/vladimirtsyupko/cfcd332476b16683bb0b) library.
First i tried to open a protocol with the timeoutHack (it use blur event) and then, after failing, it fires the other url (in this case https) and the dialog doensn't appear. I found a bug with blur event on chrome > 85 https://bugs.chromium.org/p/chromium/issues/detail?id=1137801
Thanks in advance

How to Open a Google Chrome Pop-out Window via Windows Command Prompt

I'd like to put a .bat file on my desktop that opens my Twitch chat in a pop-out window instead of a regular Google Chrome window. The pop-out window I'm referring to has no header or tabs which makes it take up less space, and I'd prefer it to be in a pop-out window.
Using the URL for my Twitch chat, command would I use to achieve this?
I found this link to a list of Google Chrome command line switches, but I can't seem to find anything related to pop-out windows.
try this on cmd;
start chrome /new-window www.stackoverflow.com
it opens a new window with the link www.stackoverflow.com

Progressive Web App in Chrome Custom Tab

I am building a Progressive Web App. When I open it in the Chrome browser, I correctly see the "add to home screen" option come up in a bottom sheet. However, when I open my app in a Chrome Custom tab, the "add to home screen" bottom sheet is not appearing.
Does anyone know if Chrome Custom tabs supports the Progressive Web Apps manifest?
Update: I've filed a bug against Chromium for this issue https://bugs.chromium.org/p/chromium/issues/detail?id=731171#c2
Chrome Custom Tabs has the ability to show an "Add to Homescreen" menu item, at least in recent builds of Chrome.
I can confirm that manually selecting the "Add to Homescreen" menu item will make use of the web app manifest data when creating the homescreen item.
However, I don't believe that the logic for automatically triggering the Web App Install Banner is enabled for page views with Chrome Custom Tab at this time—I experimented a bit and never got the banner to appear, at least.

Hide Web App's URL Completely in Chrome

Is it possible to create a Chrome shortcut that will launch a web app in such a way that users will not be able to view or access the URL of the web app via Chrome, e.g., via the address bar, status bar, developer tools, etc. If not, would it be possible if I packaged the web app as a Chrome app? I should note that I am not concerned about the shortcut itself containing the URL, e.g., in its "Properties", because I already have an executable will which launch the shortcut. All I care about is the user not being able to view the app from within Chrome itself once the app has been launched, at least not easily.
I have tried adding Chrome flags/switches, namely, kiosk mode, fullscreen mode, and app mode, but none of them work 100% as needed. Kiosk and fullscreen modes will launch as such only if no other instances of Chrome are open; if another instance of Chrome is already open, both modes will launch in a regular view mode in which users can see the URL in the address bar. App mode (I added "--app=http://www.example.com" to the end of the "Target" property of the shortcut) is promising because it launches with no browser chrome, but I notice that if I refresh the page while in app mode, I can see the URL both in the top window bar and the bottom-left status bar. Also, app mode doesn't prevent the user from opening Developer Tools, which makes viewing the URL trivial.
Any ideas welcome!