11

How to minimize chrome browser to tray when I click on standard minimize button?

I don't want Chrome to appear in task bar.

Can we implement this by Chrome extension code?

Alois Mahdal
  • 10,763
  • 7
  • 51
  • 69
Almas Adilbek
  • 4,371
  • 10
  • 58
  • 97

3 Answers3

7

As amer pointed out, there exists an extension solely purposed to do this functionality.

Luckily, the extension is open source and has a home here you can borrow it as long as your extension itself is kept open source (you should check the license for details).

Note, though, that since the chrome extension APIs don't provide this functionality (tray icons and hiding browser windows), the extension resorts to an NPAPI plugin (you can see in the source trunk that it bundles a .dll file, and that is open source (C++) too!).

It's not the best case scenario, Google discourages NAPAPI unless it's the only way (in this case, unfortunately, it is) due to security openings. The extension on the Chrome Web Store will ask for permission to "Access your data on your computer" which is seen negatively by wary users, especially and justifiably so if you don't take an effort to explain that general permission wording more clearly in your extension description.

Also the extension is targeted at Windows platforms, so you would have to look into specific NPAPI implementations for Linux and Mac if you need to support them.

Vic Goldfeld
  • 1,179
  • 12
  • 15
  • Site gives the "Apps, extensions and user scripts cannot be added from this website" warning. Still manually added it. Doesn't work. Automatically disabled upon restart. - Win10Ult64-bit [Chrome Canary](https://chromium.googlesource.com/chromium/src.git/+/53.0.2754.1). – Leo Jun 02 '16 at 19:05
5

Use the open source project RBTray on SourceForge. then you can minimize any window to the icon tray. Works on Windows 7. Once you run it, you need to right-click on 'minimize' icon of any window (left-most one, the one that normally moves window to task bar). Window will be moved to system tray instead.

Bartosz Bilicki
  • 12,599
  • 13
  • 71
  • 113
ShaneS
  • 71
  • 1
  • 5
4

This extension exists: https://chrome.google.com/extensions/detail/ajedaeoideoipodoijpbpabhhadnniac

amer
  • 212
  • 1
  • 3
  • 2
    Thanks. Anybody know the implementation? What should i read, i wanna do it myself, my own extension – Almas Adilbek Nov 26 '10 at 07:37
  • 3
    No longer compatible (running [current](https://chromium.googlesource.com/chromium/src.git/+/53.0.2754.1) Chrome Canary). – Leo Jun 02 '16 at 18:56