11

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

Capi Etheriel
  • 3,542
  • 28
  • 49

1 Answers1

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