且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 Chrome 49 隐藏扩展程序图标

更新时间:2023-12-05 19:48:22

这是一个(如果你问我脑残)Chrome 团队更改.

This is a (brain-dead if you ask me) change by Chrome team.

即使您没有 browser_action,您的扩展程序也会显示一个图标(或者如果失败,则显示一个带有扩展程序名称首字母的图块).如果您不声明 browser_action,它将变灰且不可交互,但仍会存在.

Even if you don't have a browser_action, your extension will display an icon (or failing that, a tile with extension name's first letter). If you do not declare a browser_action, it will be greyed out and non-interactive, but will still be there.

这个想法是提醒用户安装了一些潜在的隐蔽扩展.因此,只有用户有权通过右键单击并选择在 Chrome 菜单中隐藏"来隐藏图标.

The idea is to alert the user that some potentially stealthy extension is installed. As such, only the user is empowered to hide the icon, by right-clicking and selecting "Hide in Chrome Menu".

我 100% 肯定这会导致用户混淆,但您无能为力.

I'm 100% positive this will result in user confusion, but there's nothing you can do.