开发者

How to make a part of Chrome "always on top"? [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

Edit on 20190109. Just to clarify some thinks.

1. This is quite an old question, closed and yes off-topic (and also kind of a xy-problem question), still if you feel like it go on and down-vote it, I couldn't care less.

2. When I posted the question I wasn't aware of Electron and the solution it provides to my original requirement (and not the work around I am asking on this question).


I was wondering if 开发者_如何学Pythoni could change some things in my chrome with an extension, so when i press..

1) the windows button + D

2) or the minimize button

3) or the "Show Desktop" button in windows 7

..a part of chrome would still be visible, to be more specific i want to turn to a state of "always on top" the 1) tab bar

2) the address bar

3) and the bookmark bar

so is it possible to "split" an application like chrome in two "pieces" and somehow change its visibility in one of those "pieces"? any ideas are welcomed!


The easiest way to achieve this, in my thought, is combine a third-party program with a chrome extension.

For example, if you are under windows, you can use a program like Window On Top by Skybn. This program uses the Ctrl+F8 hotkey to toggle always on top window state, then you make an extension wich manipulate the browser window position and dimensions using the same hotkey.

To get the chrome window on top of screen with only tabs, adress and boookmarks, you can use something like this:

chrome.windows.getCurrent(function(window){
    chrome.windows.update(window.id,{top:0,left:0,width:screen.width,height:100})
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜