How can I find Flash content with JavaScript?
flash, javascript, jquery
Solution
Flash uses `<object>` and `<embed>` tags. Do a `getElementsByTagName` on those two Flash tags:
var flash1=document.getElementsByTagName("object");
var flash2=document.getElementsByTagName("embed");
Note that YouTube embeds use `<iframe>` elements, so its harder to capture those. Also, make sure you run this after all elements have loaded (a.k.a. `window.onload`), otherwise you'll miss some or all.
Problem
How can I find Flash content with JavaScript? Tools like adblockers or gimme bar seem to do this.