title: How can I get CefSharp to hide both the vertical and horizontal scrollbars when a webpage is loaded?
body: <p>I'm using CefSharp 57 in a C# WPF application.<br>
  I want to hide both the vertical and horizontal scrollbars on any given webpage.</p>
  
  <p>I've been unable to find a way to do this directly with CefSharp.<br>
  It doesn't seem to have a property similar to <code>ScrollBarsEnabled</code> that I'm used to with the native WinForms browser.</p>
  
  <p>I thought I might be able to inject some CSS/JS after the page has rendered to set the body overflow to hidden but this has no effect.</p>
  
  <pre><code>private void OnBrowserFrameLoadEnd(object sender, FrameLoadEndEventArgs args)
  {
      if (args.Frame.IsMain)
      {
          // Shows an alert after page is loaded so it definitely works
          args
              .Browser
              .MainFrame
              .ExecuteJavaScriptAsync("alert('HELLO!');
  
          // Scrollbars are still visible after this fires
          args
              .Browser
              .MainFrame
              .ExecuteJavaScriptAsync(
              "(function() { document.body.style.overflow = 'hidden'; });");
      }
  }
  </code></pre>
  
  <p>I looked to see if there was a way to draw the scrollbars myself and make them transparent but I was unable to find a way to do this.</p>
  
  <p><strong>Is there a way to hide the vertical and horizontal scrollbars on any given page using CefSharp?</strong></p>