title: Prevent Flash in Cocoa WebView
body: <p>In my Cocoa app, I want to prevent Flash from loading in a WebView, and let the user decide if the Flash should be shown for each page. (That's the same behavior already available through the ClickToFlash plugin or Safari extension. Bundling any of those extensions is probably not an option because of licensing issues.) </p>
  
  <p>Unfortunately most of the Flash I'm trying to avoid is generated from embedded JavaScript specifically designed to prevent easy flash blocking, so I cannot filter the raw HTML for inclusion of Flash objects.</p>
  
  <p>Also, I cannot disable JavaScript for my WebView, as the page I want to display looks completely different when JavaScript is turned off.</p>
  
  <p>Is there a notification/hook I can use to modify the page DOM after JavaScript has been executed, but before the Flash plugin is loaded?</p>
  
  <p>Or should I pursue a different direction?</p>
  
  <p>Thanks,
  Ilja</p>