// ==UserScript==
// @name            Flash unhide
// @namespace       http://people.opera.com/rijk/opera/scripts/
// @description     Click on a hidden Flash to make it fullsize
// @include         *
// ==/UserScript==


/*
Script source:
  Fabian Valkenburg

  To be used together with a user stylesheet that hides Flash embeds

Changes:
  This adaption made by Rijk van Geijtenbeek, 2005-03-25.
*/

(function() {
    window.onclick=function(){
        var
            srcElem=window.event.srcElement;
// For now, this needs to be limited to EMBED elements
//        if(/embed|object/i.test(srcElem.tagName))
        if(/embed/i.test(srcElem.tagName))
            srcElem.className='zichtbaar';
    };
})();

/* Note: Flash Unhider is only useful together with FlashHider user.css below: */
/*
embed[type="application/x-shockwave-flash"] {content:"Flash"; outline: 1px dotted gray; color: gray; background: black}
embed[type="application/x-shockwave-flash"].zichtbaar {content: normal; outline: none}
*/}

