Comment 314 for bug 263435

Revision history for this message
In , Alexleykin (alexleykin) wrote :

Fixed now, i just messed up the file while cleaning up comments.
Try now "http://cgi.cs.indiana.edu/~oleykin/window focus.user.js"

Here's the code:
// ==UserScript==
// @name Window Focus
// @namespace http://alexleykin.zapto.org
// @description Grab Focus from Flash back to the window
// ==/UserScript==
// ==UserScript==
(function(){

   setInterval(doFocus, 5000);

   function doFocus()
   {
         if (document.activeElement.tagName == 'EMBED') {
            document.activeElement.blur();
         }
         return;
   }
})();