Extension that minimizes Chrome to tray

    Released a new version of the extension ( 1.0.1.24 ), which allows minimizing Google Chrome windows to tray. I tried to fulfill all the wishes and eliminate all the comments voiced in the previous post .



    UPD
    Extension only works with the 4th version of Google Chrome. You can get it by switching the channel to receive updates on Dev using the Google Chrome Channel Changer utility .

    Extension for Google Chrome.
    Project sources

    . Source code is also available through SVN.

    New
    • Added page with extension settings
    • Now you can hide the icon if there is not a single minimized window
    • Added settings that allow you to set the reaction to mouse clicks (left, right, double click) on the tray icon (context menu, restore windows, create a new bookmark, create a new window)
    • New, optional, context menu items - New bookmark, New window
    • The context menu item is limited to 48 characters

    Fixed
    • Fixed an issue where the icon disappeared from the tray if Windows Explorer was restarted
    • Fixed an issue where the context menu did not disappear after appearing until a menu item was selected

    I wanted to add the ability to display bookmarks in the context menu in the new version, but when the code was almost ready - it turned out that the name of the bookmarks on which the page is loading, in the process of calling the script, is defined as undefined. I sent the information to the developers as soon as they fix it - I’ll add the ability to select bookmarks.

    For developers


    The NPAPI plugin was supplemented with code for interacting with JScript on the page. Through JScript, the plugin receives notifications about the creation of new windows, closing windows, changing settings, etc.

    During the development process, I was pleasantly surprised by the release of the new Dev version build ( 4.0.223.9 ), in which the Options button appeared , for extensions that use the options section in the manifest. It turned out just right.

    Also in the new version, the interaction of extensions with each other has earned. If you want to change the tray icon from a third-party extension, you can add the following code:

    // Подключаемся к расширению
    // первый параметр - идентификатор расширения
    // второй параметр - имя порта, прослушивающего сообщения
    var port = chrome.extension.connect("ppkfenalijoglfhgpchdegciehdlinkh", {name: 'minimize-to-tray'});
    // Отправка сообщения, с указанием пути к иконке
    // пустой param (param: '') - установить первоначальную иконку
    port.postMessage({command: 'SetIcon', param: 'ErrorMsg.ico'});


    In the current implementation, the path to the icon is the path to the file on the disk, I don’t know yet how to use the icons packed in the extension, but I'm working on it.

    Help is needed


    We need a person who speaks good English to accompany the project page on Google Code . There is not much work - to translate a small instruction (in the process of writing) and periodically translate the list of changes when a new version is released.

    As always, I will gladly listen to your wishes and comments.

    Also popular now: