使用链接从网络打开chrome://扩展程序 [英] Open chrome://extensions from web using link

查看:515
本文介绍了使用链接从网络打开chrome://扩展程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可能会被用户禁用的Chrome扩展。在这种情况下,我想创建一个链接到chrome:// extensions菜单。这将是类似于

 < a href =chrome:// extensionstarget =_ blank> Chrome扩展程序< ; / A> 

这是不允许的:不允许加载本地资源:chrome:// extensions /

我读过的大多数解决方案都意味着使用扩展(对于此用例将被禁用):

  chrome.tabs.create({'url':'chrome:// extensions'}); 

有什么办法可以解决这个问题吗?

当然,我可能是错的...在这种情况下,我该怎么办?

预先致谢

解决方案

没有。存在特权网址,无法从网页或命令行打开。


I have an chrome extension that might be disabled by the user. I want to create a link to the chrome://extensions menu in that case. It would be something like

<a href="chrome://extensions" target="_blank">Chrome extensions</a>

which is not allowed: Not allowed to load local resource: chrome://extensions/

Most of the solutions I have read imply the use of an extension (which for this use case will be disabled):

chrome.tabs.create({'url': 'chrome://extensions'});

Is there any way to solve this issue?

Of course, I might be wrong... In that case, what could I do?

Thanks in advance

解决方案

No. There exist privileged URLs and they cannot be opened from web pages or the command line.

这篇关于使用链接从网络打开chrome://扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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