Chrome多功能框奇怪的建议 [英] Chrome omnibox strange suggestions

查看:62
本文介绍了Chrome多功能框奇怪的建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Chrome创建插件,并且正在尝试使用多功能框.假设我的插件建议abcd.用户键入o ab(o-多功能框关键字),可以选择我的建议,然后按Enter.下次用户键入o ab时,Chrome也会建议使用chrome-extension://jiplmmiemkpcomooikeeicllpnmnlaia/?q=abcd.如果我将其打开,将看到Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found..如何禁用此建议(chrome-extension://...)?

I'm creating plugin for Chrome and I'm trying to use omnibox. Suppose my plugin suggests abcd. User types o ab (o - omnibox keyword) and can select my suggestion and press enter. The next time user types o ab Chrome also suggests chrome-extension://jiplmmiemkpcomooikeeicllpnmnlaia/?q=abcd. If I'll open it I will see Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found.. How can I disable this suggestions (chrome-extension://...)?

推荐答案

我通过添加5条建议解决了Chrome多功能框污染"问题.由于Chrome最多显示5条建议,因此不会显示chrome-extension://jiplmmiemkpcomooikeeicllpnmnlaia/.因此,除了主要"建议选项外,我还有次要"建议选项,例如:

I have solved this Chrome omnibox "polution" by adding 5 more suggestions. Because Chrome displays max 5 suggestions, chrome-extension://jiplmmiemkpcomooikeeicllpnmnlaia/ is not displayed. So in addition to "main" suggestion options I have "secondary" suggestion options like:

  1. :help-打开帮助页面
  2. :open_site-打开插件的网站
  3. :settings-打开设置页面
  4. ...
  1. :help - open help page
  2. :open_site - open plugin's site
  3. :settings - open settings page
  4. ...

您的插件可能还有其他辅助建议.此解决方案还修复了搜索结果问题

Your plugin may have other secondary suggestions. This solution also fixes search result problem

这篇关于Chrome多功能框奇怪的建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆