How could I disable javascript entirely on WebBrowser in WinForms?
You can't. Client apps cannot disable JavaScript in the browser.
With this you can disable warning from javascript
webBrowser.ScriptErrorsSuppressed = true;
来源:https://stackoverflow.com/questions/10623697/disable-javascript-in-winforms-webbrowser-control