title: Disable "Try It Out" in Swagger
body: <p>This question has been asked a lot for different languages. After a substantial amount of (fruitless) browsing Im feeling rather dumb but, I'll ask anyway</p>
  
  <p>This document refers to adding a Swagger plugin in what appears to be Javascript
  <a href="https://github.com/swagger-api/swagger-ui/issues/3725" rel="noreferrer">https://github.com/swagger-api/swagger-ui/issues/3725</a></p>
  
  <p>I tried adding that code as an injected Javascript resource:</p>
  
  <pre><code>c.InjectJavaScript(thisAssembly, "MyProject.Scripts.swagger-plugins.js");
  </code></pre>
  
  <p>Code in the .js file is</p>
  
  <pre><code>const DisableTryItOutPlugin = function() {
      return {
          statePlugins: {
              spec: {
                  wrapSelectors: {
                      allowTryItOutFor: () =&gt; () =&gt; false
                  }
              }
          }
      }
  }
  
  const DisableAuthorizePlugin = function () {
      return {
          wrapComponents: {
              AuthorizeBtn: () =&gt; () =&gt; null
          }
      }
  }
  
  SwaggerUI({
      plugins: [
          DisableTryItOutPlugin,
          DisableAuthorizePlugin
      ]
  })
  </code></pre>
  
  <p>That achieved nothing and I have no idea where to go next.</p>