Chrome Extension Modifying Address Bar Visibility

146 views
Skip to first unread message

Amelia Rave

unread,
May 5, 2022, 4:34:15 PM5/5/22
to Chromium Extensions
Hi all,

I'm wondering if anyone knows about the accessibility to chrome's address bar and scroll bar. I would like to create an extension that removes the address and scroll bar for a non-fullscreen window. Does anyone know if this is possible? I have not seen a way to modify the address bar before. Thanks in advance!

Amelia

Eric Lawrence

unread,
May 5, 2022, 4:42:44 PM5/5/22
to Amelia Rave, Chromium Extensions
For security reasons, I would not expect that to be possible.

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/144e32d9-24b5-4c91-9e6f-c63733613c99n%40chromium.org.


--
Eric Lawrence
Bayden Systems
https://bayden.com

Amelia Rave

unread,
May 5, 2022, 4:56:04 PM5/5/22
to Chromium Extensions, bay...@gmail.com, Chromium Extensions, Amelia Rave
Thanks for your response Bayden. Can you elaborate on the security risks of this? I'm thinking of functionality like some fullscreen modes where toolbars are visible only on mouse-over, but the window is not fullscreen. 

Deco

unread,
May 5, 2022, 6:33:18 PM5/5/22
to Amelia Rave, Chromium Extensions, bay...@gmail.com
Eric is referring to extension scope for modifications. Essentially, when building an extension, one must consider "feature availability" with "can this be justified, at the risk of someone potentially misusing it" for regular users. The address bar is one of these components which are immutable for modifications, aside from colour and textile modifications to icons by design.

Specifically, the fullscreen API within Chrome is not exposed to extensions as without extensive restrictions, it would possible to break the browser if someone wished to because of how low level the API is internally within the browser (and the extension is hooked in). 

Hope this helps.

Cheers,
Decklin

hrg...@gmail.com

unread,
May 5, 2022, 8:45:24 PM5/5/22
to Chromium Extensions, decklin...@gmail.com, Chromium Extensions, bay...@gmail.com, mimi...@umich.edu
Removing the scroll bar can be done by setting the style "overflow: hidden".

Removing the address bar is sort of possible by creating a popup window.
Chrome has two types of popup windows:
1. Popup windows created by regular webpages. These do have an address bar.
2. Popup windows created by extensions, These do not have an address bar.

Those are your options. I'm not aware of any other way of not having an address bar.

Deco

unread,
May 5, 2022, 8:50:38 PM5/5/22
to hrg...@gmail.com, Chromium Extensions, bay...@gmail.com, mimi...@umich.edu
This is a get around solution, however was not how i interpreted the question. It seems OP is asking if it is possible to modify active window sessions (for extensions to inject into), other than make a new window. Hypothetically it could be done by mirroring the URL into a new popup bar, but also falls under the same point noted in the first sentence. 
Reply all
Reply to author
Forward
0 new messages