I am writing a web extension (Chrome, Firefox) and I want to know what JavaScript will replace a style element's color with a different color. There is a style section that has
<style> --toolbar-bg-color: #0087FF; </style>
and I want to make that just a white background (#FFFFFF). Is there an easy JavaScript command that might do this?
If the parent element has an id you could do something like this:
let element = document.getElementById('parentElement');
element.style['--toolbar-bg-color'] = '#FFFFFF';
Try it and let me know how it goes :)