Monday, May 20, 2024
114
rated 0 times [  117] [ 3]  / answers: 1 / hits: 23798  / 14 Years ago, sun, june 27, 2010, 12:00:00

Is it possible somehow via a Chrome extension to remove most of the window border content (like address bar, tab bar)?



I'd like to have some standalone windows with some webpages inside but without any space wasted.



My purpose is for example to build a Chrome extension which strips everything out from the site except the Flash/video/whateverobject and scales that to the full size of the window. So I get a Chrome window with just the video inside and no space wasted on anything else (like address bar or tab bar or whatever). Similar as for example the VLC player window.



I searched a bit around but found nothing a like. Although I can remember that I have heard of something similar which Google called standalone web applications or so: Where you could create links on your desktop to web applications which just look like desktop applications because they don't have the address bar. But I cannot find this feature (or how to do this with my Chrome).


More From » google-chrome

 Answers
62

The closest you can get with an extension is a window with a type popup.



Using chrome.windows.create:



chrome.windows.create({url: https://example.com, type: popup})


This will get rid of every window decoration except system title bar/borders.






A Chrome App can, potentially, go further. You can create a window without system borders:



chrome.app.window.create({
url: page.html,
frame: { type: none },
innerBounds: { /* position and size */}
});


Note that you will have to implement things like draggable areas and a way to close the window yourself.


[#96399] Wednesday, June 23, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kalynn

Total Points: 309
Total Questions: 105
Total Answers: 90

Location: Azerbaijan
Member since Fri, May 12, 2023
1 Year ago
;