Yes, it is indeed possible to alter the appearance of a webpage using JavaScript methods. In your code snippet, you can enable script execution in a WebBrowser object and then invoke specific methods by providing parameters.
webBrowser.IsScriptEnabled = true;
webBrowser.InvokeScript(methodName, listOfParameters);
You have the option to target predefined JavaScript functions on the webpage or directly execute custom code through the "eval" method, as demonstrated below:
webBrowser.InvokeScript("eval", new[] { "document.body.style.backgroundColor=\"red\"" }
This example highlights how C# can dynamically modify webpage elements, such as changing CSS attributes. Further exploration into altering CSS values via JavaScript is recommended for more advanced customization.