问题描述
我有一个可能会被用户禁用的Chrome扩展。在这种情况下,我想创建一个链接到chrome:// extensions菜单。这将是类似于
< a href =chrome:// extensionstarget =_ blank> Chrome扩展程序< ; / A>
这是不允许的:不允许加载本地资源: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 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): 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://扩展程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
chrome.tabs.create({'url':'chrome:// extensions'});
<a href="chrome://extensions" target="_blank">Chrome extensions</a>
chrome.tabs.create({'url': 'chrome://extensions'});