Using panels in chrome extensions

I was wondering, usually chrome extensions appear in their small area below their icon, but how can I create one that has a small space on the browser side, like FireBug lite for chrome? Where he pushes the page up and the docks below.
I saw the sidebar in the "experimental.sidebar" chrome api, but I do not want to use it because you need to run chrome using the switch --enable-experimental-extension-apis command line, and not many people do this.

+3
source share
2 answers

In principle, as long as the side panels do not receive the experimental status, you use a content script , to install large marginor paddingone hand bodyor htmlinsert an element position: fixedin the current page, superimposed on this field, and then draw it.

Everything that needs to be saved between pages is saved in the extension, and each time you recreate a pseudo-sidebar when the page loads.

See Firebug Lite or StumbleUpon extensions for examples.

+3
source

DOM. FireBugs, , DOM. , , .

0

Source: https://habr.com/ru/post/1763350/


All Articles