Is it possible to hide the address bar using Chrome Extensions?
I would like to hide the address bar and toolbar but still be able to click on links that can be opened in a new tab. Is this possible?
Thanks
Sorry. For now Chrome doesn't have that kind of extension APIs.
You can see the list of extension APIs from Here
Suggestion: How about just make the tab fullscreen?
chrome.windows.update(windowId, { state: "fullscreen" })
Related
I'm using Google Chrome Version 46.0.2490.80 m
I would like to know if there is a way to hide the address bar and toolbar?
The flag Compact Navigation seems to have been removed.
Is there maybe a solution to do this using Chrome Apps ?
Thanks
Sorry, but chrome extensions can't change the ui in any way(other than adding and changing their own icons). The closest you could get to doing this is by full-screening the browser:
chrome.windows.update(windowId, { state: "fullscreen" })
look at https://developer.chrome.com/extensions/windows#method-update
chrome apps default start with no addressbar.
I have a web app with a chat that opens in a new popup window. Normally, in Chrome I can hit F12 and click the icon of a smart phone to toggle it. But in the popup window this icon does not appear. This is important for me since I need to throttle the connection of the popup in order to simulate a user disconnecting from the chat.
Thanks!
It doesn't seem to be currently possible. I've opened a ticket for you. Meanwhile you have couple of options:
open popup in a regular window (copy paste the url, or modify window.open call to open a new tab instead of a separate window),
create a Chrome extension that uses debugger API to send emulateNetworkConditions message to your popup window
or try hacking DevTools like so:
open DevTools (A) for your popup
focus on DevTools window and open another DevTools (B) for that window using a keyboard shortcut (F12/alt+cmd+J)
in the console of the DevTools B call WebInspector.overridesSupport.setEmulationEnabled(true) (to enable emulation) and then WebInspector.overridesSupport.settings.networkConditions.set({throughput: 1.5 * 1024, latency: 40}); (to enable network throttling)
Perhaps easier way as of today is to install chrome extension which will allow you to open preview in new tab instead of popup. There you can have the same icon to toggle to mobile. Below is the extension:
https://chrome.google.com/webstore/detail/tag-assistant-companion/jmekfmbnaedfebfnmakmokmlfpblbfdm?hl=en
I'd like to display a window or a dialog box without a title bar from chrome extension. The extension plugs into file browser on Chrome OS. I've seen some examples that use jquery to accomplish this but all of them use browser tabs and are applicable to chrome browser. Tabs are not available to my extension so I'm not quite sure how to do that.
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.
How do i style the title bar of a popup in a chrome extension? I notice this being done by Chat for Chrome. (Note: the screenshot for that one is outdated)
I got as far as opening a popup without the address bar. But can't get on from there
The title bar itself is not part of the HTML upon inspection.
Example here:
Turns out that this isn't a regular chrome extension I was looking at. It's a chrome packaged app. And it's possible to remove the title bars with chrome apps.
The window in the screenshot you show does have the title bar in the HTML/CSS.
I have been researching this topic much and I surely know that Hangouts is a extension, not a packaged app.
I believe the extension windows are modified desktop notifications. I go to create an extension using these modified desktop notifications and i will report the result here.