Chrome extensions - can I show the bookmark toolbar programmatically - google-chrome

I would like to show or hide the bookmark toolbar programmatically on some events.
Can it be done with an extension for Chrome, or is that in the user domain?
If it can be done where should I look it up?

This is not possible to do from an extension, only user may control this bar visibility.

Related

Is it possible to hide the extension icon in the extensions toolbar on sites that the extension is not active on?

Is there a programmatic way to only show a browser extension's icon in the extension toolbar if the extension has permissions to run on the site currently being viewed in the active tab?
I'm sure at one point this was the default behaviour for Chrome / Firefox extension icons, but it seems they have changed them so all extension icons show all the time, no matter what site you are visiting.
This can be quite annoying if you have a lot of extensions installed, as the extensions toolbar gets pretty crowded.
Have i missed something here?

Chrome Developer Tools: Show Associated Browser Tab?

I often have many (many!) browser tabs open in Chrome. Often times I'll have a developer tools window open but lose track of the associated browser tab.
Is there a keyboard shortcut or menu or button somewhere that will bring the associated tab (and browser window) to the forefront?
UPDATE: Just noticed that the shortcut key is F12. It's listed against a "Focus debuggee" menu option under the vertical ellipsis. (Chrome 66.)
Original answer:
I was just looking for a similar shortcut.
I haven't found one, but if you go to the console in your developer tools window and run a quick
window.alert()
then it looks like the associated main window+tab is brought to the front to display the popup, and it remains there when the popup is dismissed.
(That's what I'm seeing as of Chrome 60.)
In devtools click the top right cogwheel to open Settings
Click Shortcuts in the left navigation menu, and scroll down until you see Focus debugee. You'll see the shortcut key that is assigned with an option to modify it, or an option to set the shortcut if not defined.

Action icon looks like disabled on all tabs, but the extension works

I am concerned because this is the only icon that looks like an extension off.
Please, somebody edit the code so that the icon looked enabled on each tab, as well as the other icons extensions.
Files of the extension u can download here or find "Scrollbar Anywhere" in chrome appstore.
Chrome recently (around v.48) switched to a unified extension toolbar where all extensions are displayed so that nonsavvy users would see all that useless cruft they installed on shady web sites. That's the reason behind this change.
A gray icon in the toolbar doesn't mean the extension doesn't work.
It just means that:
no toolbar button declared in manifest because neither icon nor popup are needed,
a page action is declared but current page doesn't match the declared URL pattern.
On the other hand, if you disable it on chrome://extensions page (Menu -> Settings -> Extensions)
there would be no button at all.

Google Chrome extension installed popup

While installing the Google extensions form chrome web store it shows some popup like "Google Chrome extension is now installed".
I want similarly, while login I need to show the login popup.
Please suggest me on this.
You can create either a browser action or a page action popup. You can change popup html dynamically to make it look completely different depending on the situation but you can't open it programmatically (desktop notifications could be used for alerts).

Chrome Extension Background Page Show Popup Page

I am making a Google Chrome extension and I would like to have my background page to cause the browser action's popup page to show after an event. Can this be done?
Thanks
You cannot show/hide a browser action nor you can trigger a popup to open. If you need something to show, did you consider using HTML5 notifications?