8

Is it possible to show and hide the browser action icon from the options page?

I know how to do it with the page actions using the show and hide methods, but I don't see any similarities in browser actions.

Cameron
  • 1,049
  • 12
  • 24
Oscardr
  • 113
  • 1
  • 6

2 Answers2

12

From https://developer.chrome.com/extensions/browserAction:

If you want to create an icon that isn't always visible, use a page action instead of a browser action.

In other words: no, this isn't possible. Browser actions are permanent by design.

Wladimir Palant
  • 56,865
  • 12
  • 98
  • 126
2

Google defined Browser Action as static buttons, and Page Action as dynamic ones. Google is very careful with Chrome's interface, and don't want people use buttons in a different way they are "supposed" to do.

They do so because they think users have tu put an effort to learn to use Chrome, and Google want to present a consistent, coherent and minimalist user interface.

You don't have much freedom with regard to Chrome user interface.

Alejandro Silvestri
  • 3,706
  • 31
  • 43