How to create a Tab Group in Google Chrome from the command line - google-chrome

I use a script to open my browser and a bunch of tabs, for when I accidentally close the browser, with a small window still open in the background (SPAM windows, etc.). The problem is, with Google Chrome set to continue where I left off, when I restart the computer, or Google Chrome, I just get a single windows open with the tab, not my pinned tabs, and tab groups.
Is there a way to create a tab group from the command line?
I have tried a few ways of doing this, but the scripting I can find, will only open the tab in the browser, not actually allow me to create a tab group.
I have tried using:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" google.com mysite.com
This will load the pages as tabs, but I cannot create a tab group.
I have tried Python
python -m webbrowser google.com mysite.com
I cannot see anyway to create a tab group.

Related

How to open url in existing active tab of chromium

I have chromium running in kiosk mode, sometime I want to open different url in same existing tab using command, I don't want to open new tab because I want to show something different every other time of day (it would otherwise open hundreds of new tabs after long time). I want to use bash script launched using cron.
Is there some parameter like chromium --same-tab <URL> ? Or do I need to do something using xdotool.
I don't want to killall chromium because it will for few second show black screen until new instance appears (I have desktop with black background, openbox only).

Opening a URL with a "chrome" scheme through a desktop shortcut

I want to create a shortcut that will direct me to chrome://bookmarks
Simply creating a desktop URL shortcut results in a problem with the shortcut, as it seems to only recognize the http scheme.
I've tried a simple batch command:
start chrome chrome://bookmarks
But this will open a new window without taking me to the URL.

How to remap a key using AHK to open and close Google Chrome

I am new to AHK and been trying to fidget around with it for quite some time, what I need to do is open a specific profile of Google Chrome when a key is pressed and if it's open close it when the same key is pressed. I tried many things but can't quite figure out how to do it, this is what I have right now.
PgDn::
Process, Exist, chrome.exe
If ErrorLevel <> 0
Process, Close, chrome.exe
Else
Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 1"
return
This opens up the chrome to a profile I want but when I close press the button again it closes any and every chrome window open. I understand that's because I close the chrome.exe process, I cannot figure out how to close that specific profile.
Ultimately what I want to do is when the Page Down key is pressed
If Chrome Profile 1 is not opened, open it.
If Chrome Profile 1 is minimized, maximize it.
and if Chrome Profile 1 is opened and maximized, close it.
I would really appreciate if someone could assist with this.
AHK's Run command has a parameter named: OutputVarPID.
you can use this to store the process id of the started chrome instance in a variable, which you can then pass to your Exit command.

Why are some files in Network but not in Sources?

I, using a Chrome browser, am troubleshooting a node.js web application on a page generated by Jade.
Most of the script files included in the Jade file appear in the Sources tab in Chrome F12, ie under the tree beginning with Top. However, there is one particular script file that I see has been loaded under the Network tab (Chrome F12) but does not appear in the Sources tab. As a result I am unable to put breakpoints in that script.
That script file was included with a simple append to a block. But in the Network tab, it was shown called with a query string parameter of a long number, eg emoji.js?123232323.
What could be happening and how do I fix it?

Dev tools Network Tab, open script in Sources tab?

In Chrome Dev Tools, when viewing the Network tab, is it possible to select a script and open it in the Sources tab? Double-clicking the script opens it raw in a new browser tab.
Because the Sources tab organizes all assets by their source domains (along with folder paths), it can be time consuming to locate a particular script, if you don't know immediately where it came from. You have to switch back and forth between Network and Sources, taking note of the domain and folder path in the script's header and then trying to dig through all the source domain's and subfolders until you locate the script.
It seems like there should be some obvious way of opening a script in the Sources tab from the Network tab, but I don't see how. You appear to have to manually dig to find it.
EDIT
This feature is now available in Chrome Canary, and should be available in stable Chrome in a few weeks.
As far as I know this is not possible right now. I think it's a good idea though, so I reported it for you.
The quickest way, I can think of, to open a script from the network tab in the sources tab is to:
copy/memorize name of the script from network tab,
go to the sources tab,
open file search (cmd+p / ctrl+p),
enter name of the file you are looking for.