I'm using the chrome bootstrap styles (see http://roykolak.github.com/chrome-bootstrap/) to build my options page. Now I'd like to have a link back to chrome://chrome/extensions in the left-sidebar menu, but clicking on it returns an error in the console: Not allowed to load local resource: chrome://chrome/extensions
Asked
Active
Viewed 7,731 times
11

Capi Etheriel
- 3,542
- 28
- 49
1 Answers
15
You can open this with chrome.tabs.update
, you don't need the tabs permission for this.
options.html
<script src="options.js"></script>
<a href="#" id="test">test</a>
options.js
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('test').addEventListener('click', function() {
chrome.tabs.update({ url: 'chrome://chrome/extensions' });
});
});

dan-lee
- 14,365
- 5
- 52
- 77
-
Doesn't appear to work with Firefox – Mattwmaster58 Apr 11 '22 at 18:51