Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you link to the options page in a chrome extension?

I have a chrome extension with an options page. The options page works correctly and I can get to it from the extensions page, however I'd also like a link to it within the popup of my extension. Is this possible? It doesn't seem to have a url but is there a way to tell chrome to link to the extensions options?

like image 743
slashnick Avatar asked Jan 29 '13 14:01

slashnick


People also ask

How do I add a link to Chrome extension?

With the extension installed, simply highlight the text you want to link to, right click, and select “Copy Link to Selected Text.” This can then be shared and opened by anyone using a compatible browser.

Where is option in Chrome?

Open the Chrome app, then tap the Menu key to access its Options menu. Besides the options, there are three icons in a bar at the top of the menu. – Displays the previously accessed page.


1 Answers

New method since Chrome 42:

chrome.runtime.openOptionsPage() will open the options, regardless of whether new-style embedded options or old-style options page is used.

chrome.runtime.openOptionsPage() will always open the canonical location, and has nice behavior like re-focusing an open options page if there is one.

like image 64
Xan Avatar answered Nov 14 '22 00:11

Xan