将 Chrome 浏览器最小化到托盘?
单击标准最小化按钮时如何将 Chrome 浏览器最小化到托盘?
我不希望 Chrome 出现在任务栏中。
我们可以通过 Chrome 扩展代码来实现吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如 amer 指出的,存在一个专门用于执行此功能的扩展。
幸运的是,该扩展程序是开源的,并且在这里有一个家,只要您的设备可用,您就可以借用它扩展本身保持开源(您应该检查许可证了解详细信息)。
但请注意,由于 chrome 扩展 API 不提供此功能(托盘图标和隐藏浏览器窗口),因此该扩展求助于 NPAPI 插件(您可以在源代码主干中看到它捆绑了一个 .dll 文件,而且这也是开源的(C++)!)。
这不是最好的情况,谷歌不鼓励使用 NAPAPI,除非它是由于安全漏洞而成为唯一的方法(不幸的是,在这种情况下,它是唯一的方法)。 Chrome 网上应用店上的扩展程序将请求“访问您计算机上的数据”的许可,谨慎的用户会对此持负面态度,尤其是如果您不努力在您的应用程序中更清楚地解释一般许可措辞,则尤其如此。扩展描述。
此外,该扩展是针对 Windows 平台的,因此如果您需要支持 Linux 和 Mac,则必须研究特定的 NPAPI 实现。
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.
使用开源项目SourceForge 上的RBTray。然后您可以将任何窗口最小化到图标托盘。适用于 Windows 7。
运行它后,您需要右键单击任何窗口的“最小化”图标(最左边的图标,通常将窗口移动到任务栏的图标)。窗口将移至系统托盘。
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.
此扩展存在:
https://chrome.google.com/extensions/detail/ajedaeoideoipodoijpbpabhhadnniac
This extension exists:
https://chrome.google.com/extensions/detail/ajedaeoideoipodoijpbpabhhadnniac