flashblockdetector: Javascript That Detects Flash Blocking Extensions

Monday, 15 March 2010

Mark Pilgrim just released this nifty little flash block detector:

This is a pure-JavaScript library that detects whether Flash is blocked on the current page due to a Flash blocking extension. The current version can detect

  • FlashBlock #1 for Chromium / Google Chrome (Windows/Mac/Linux)
  • FlashBlock #2 for Chromium / Google Chrome (Windows/Mac/Linux)
  • FlashBlock for Firefox (Windows/Mac/Linux)
  • ClickToFlash 1.5.x (Mac/Safari only)

Pretty cool, but there's a small catch:

If a Flash blocker is active, your callback function will be called almost immediately. If no Flash blocker is active, your callback function will be called after the 5 second timeout.

(Via Mark Pilgrim.)