How do I launch a frameless window from a Google Chrome extension?

喜你入骨 提交于 2021-02-09 10:31:51

问题


I'm looking to achieve something similar to Bitly's Chrome Extension. It's not exactly frameless but the style of the title bar is minimal. Also, unlike other types of windows, in Mac OS you can maximize the main browser window and spawn Bitly's window on top.

Neither window.open nor chrome.windows.create offer any options to remove the frame of a launched window. And when these windows are spawned from a fullscreen browser window (maximized) they are also maximized and cannot be used on top of the current browser window.

Chrome.app.window.create does expose the option to remove the frame but this only works for Chrome Apps and not extensions.

Neither of these potential duplicate questions sufficiently answer my question:

  • How do I customize the title bar of a popup in a chrome extension?
  • How to build an chrome extension like Google Hangouts (panels are deprecated)

来源:https://stackoverflow.com/questions/49675219/how-do-i-launch-a-frameless-window-from-a-google-chrome-extension

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!