'Tampermonkey - is it possible to access sidebars?

As you probably know some of available internet browsers allow users to use sidebars without closing the actual tab. For example in edge you can press Ctrl+Shift+E to quickly search something without the need to leave the page you are reading. I'm interested how to modify the content of the page displayed in such kind of sidebars. If I run a script to riderect the input of search engine to Google:

var newurl = "https://google.com/search?"+document.URL.match(/q\=[^&]*/);
if (newurl != document.URL) location.replace(newurl);

It affect the main frame of the tab, but the sidebar is ignored. Is there anyway to instruct Tampermonkey to access the sidebar? Or maybe any other script engine support this thing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source