Dynamically adding elements to the updated sidebar

Hello!

I’ve been trying to play a bit with the updated sidebar in 136. I’ve been trying to figure out if there is a way to use an extension to add elements/tools/buttons to the sidebar through JavaScript, or any other method where the number of elements added can change while the extension is running. A couple examples of what I’m attempting to see if is possible:

  • An extension that sort of “moves” only the pinned tabs to the sidebar, leaving the rest at the top. (Creating “buttons” on the sidebar for pinned tabs and hiding them in the regular tabs list)
  • Or an extension that adds essentially “shortcut buttons” for the contents of a certain category of bookmarks to the sidebar

I’ve been trying with sidebarActions, but as far as I can see they are defined in manifest, I haven’t seen a way yet to add new ones while the extension is running? Is that or something similar to it possible somehow currently? (Whether through sidebarActions or some other method)

Thanks!