Question: is it possible to modify the browser chrome from within a WebExtension, whether it is from a background script or from a content script?
I have been reading the docs and searching, but I could not find how to do it.
This is an example, based on the previous Add-ons SDK ( from Modifying the Browser Chrome), of I want to achieve:
`function removeForwardButton() {
var window = require("sdk/window/utils").getMostRecentBrowserWindow();
var forward = window.document.getElementById('forward-button');
var parent = window.document.getElementById('urlbar-container');
parent.removeChild(forward);
}
require("sdk/ui/button/action").ActionButton({
id: "remove-forward-button",
label: "Remove Forward Button",
icon: "./icon-16.png",
onClick: removeForwardButton
});`
Thanks.