Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome popup window always on top

I have a Chrome app that opens a popup window. I would like it to be able to stay on top, but am currently unable to do so.

The Chat for Google extension opens a popup window that not only stays on top of all windows, but the window itself also appears to have a completely customized appearance. Unfortunately, all the JavaScript in this extension is obfuscated, and I can't make heads or tails of it.

The Chrome API lists the "alwaysOnTop" boolean as part of the Window type, but neither the create nor the update functions allow for changing this property.

like image 520
wavetree Avatar asked Dec 06 '25 10:12

wavetree


1 Answers

It’s a panel type of window. Call chrome.windows.create with a type: 'panel' parameter. This currently only works in the dev and canary channels.

like image 116
Josh Lee Avatar answered Dec 07 '25 23:12

Josh Lee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!