{"id":535,"date":"2020-08-29T15:40:28","date_gmt":"2020-08-29T22:40:28","guid":{"rendered":"http:\/\/www.icetips.com\/blog_wp\/?p=535"},"modified":"2020-08-29T15:48:35","modified_gmt":"2020-08-29T22:48:35","slug":"chromium-command-line","status":"publish","type":"post","link":"http:\/\/www.icetips.com\/blog_wp\/2020\/08\/29\/chromium-command-line\/","title":{"rendered":"Chromium Command line"},"content":{"rendered":"<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"fbn7h-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"fbn7h-0-0\"><span data-offset-key=\"fbn7h-0-0\">I have a website that I like to visit, but I'd like to open it in its own browser window, without any of the toolbars at top, etc. After some digging, I found that Chrome actually has some interesting stuff available for command-line control. So I created a shortcut and used this:<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"feik0-0-0\">\n<pre class=\"_1mf _1mj\" data-offset-key=\"feik0-0-0\"><span data-offset-key=\"feik0-0-0\">\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" <strong>--profile-directory=\"Default\" --new-window --window-size=300,300 --app=<\/strong><\/span><\/pre>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"a3grj-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"a3grj-0-0\"><span style=\"font-size: 1rem;\">And then the url for the website after --app= Works like a charm, but a long-standing bug in Chrome (reported 7 years ago and, well, not fixed yet \ud83d\ude09 makes the --window-size not work. However with the --profile-directory=\"Default\" it saves the last used size for the window in the user profile and opens in the last used size.<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"4ipn8-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"4ipn8-0-0\"><span data-offset-key=\"4ipn8-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"fdbrg-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"fdbrg-0-0\"><span data-offset-key=\"fdbrg-0-0\">In my case, I wanted to open CBC One in Victoria, so my full command line is:<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"2mnq3-0-0\">\n<pre class=\"_1mf _1mj\" data-offset-key=\"2mnq3-0-0\"><span data-offset-key=\"2mnq3-0-0\">\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" <strong>--profile-directory=\"Default\" --new-window --window-size=300,300 --app=<\/strong><\/span><span class=\"py34i1dx\"><span data-offset-key=\"2mnq3-1-0\">http:\/\/prod-chrome80-player-popup.s3.eu-central-1.amazonaws.com\/popup_player_v1.html?station=cbcvictoria&amp;tenant=www.radio.net<\/span><\/span><\/pre>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"65fgp-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"65fgp-0-0\"><span data-offset-key=\"65fgp-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"cpm9l-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"cpm9l-0-0\"><span data-offset-key=\"cpm9l-0-0\">This opens the radio station up in a popup window (NOT existing Chrome window) and the size is saved.\u00a0 So I now have a nice little window for my radio station!<\/span><\/div>\n<div data-offset-key=\"cpm9l-0-0\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-538\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2020\/08\/2020-08-29_15-41-12.png\" alt=\"\" width=\"528\" height=\"225\" srcset=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2020\/08\/2020-08-29_15-41-12.png 528w, http:\/\/www.icetips.com\/blog_wp\/wp-content\/uploads\/2020\/08\/2020-08-29_15-41-12-300x128.png 300w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"6mutd-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"6mutd-0-0\"><span data-offset-key=\"6mutd-0-0\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"6cl1h-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"6cl1h-0-0\"><span data-offset-key=\"6cl1h-0-0\">For those who want to dig deeper (I've not even scratched the surface) here is the official list of command-line arguments for the Chromium project:<\/span><\/div>\n<div class=\"_1mf _1mj\" data-offset-key=\"6cl1h-0-0\"><span style=\"font-size: 1rem;\">\u00a0<\/span><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"emo6u-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"emo6u-0-0\"><a href=\"https:\/\/peter.sh\/experiments\/chromium-command-line-switches\/\"><span class=\"py34i1dx\"><span data-offset-key=\"emo6u-0-0\">https:\/\/peter.sh\/experiments\/chromium-command-line-switches\/<\/span><\/span><\/a><\/div>\n<\/div>\n<div class=\"\" data-block=\"true\" data-editor=\"6v51s\" data-offset-key=\"8gnk6-0-0\">\n<div class=\"_1mf _1mj\" data-offset-key=\"8gnk6-0-0\"><span style=\"font-size: 1rem;\">It's only 52 pages!!!<\/span><\/div>\n<\/div>\n<div data-offset-key=\"8gnk6-0-0\">Since Windows Edge is based on Chromium, this should work for both Chrome and Edge.<\/div>\n<div data-offset-key=\"8gnk6-0-0\"><\/div>\n<div data-offset-key=\"8gnk6-0-0\"><\/div>\n<div class=\"_1mf _1mj\" data-offset-key=\"895v9-0-0\"><span data-offset-key=\"895v9-0-0\">Enjoy!<\/span><\/div>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_535\" class=\"pvc_stats all  \" data-element-id=\"535\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have a website that I like to visit, but I'd like to open it in its own browser window, without any of the toolbars at top, etc. After some digging, I found that Chrome actually has some interesting stuff available for command-line control. So I created a shortcut and used this: \"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" <a href=\"http:\/\/www.icetips.com\/blog_wp\/2020\/08\/29\/chromium-command-line\/\" class=\"more-link\">...continue reading <span class=\"screen-reader-text\">Chromium Command line<\/span><\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_535\" class=\"pvc_stats all  \" data-element-id=\"535\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"http:\/\/www.icetips.com\/blog_wp\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-535","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":6,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"predecessor-version":[{"id":544,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/posts\/535\/revisions\/544"}],"wp:attachment":[{"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.icetips.com\/blog_wp\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}