Script Summary: Prevent web pages from stealing your focus, either only during page load or for the entire page lifetime. Stop losing focus from the URL bar or password box at the whim of page authors and keep your focus.
This script prevents pages from stealing focus by redefining the focus method of the prototype for HTML elements which support focus. This prevents all current and future elements (unless they have copied the focus function before the script is run) from focusing the element. If enabled, the script will restore the original functions after a 1-second delay from the page load event.
Note: This script may break pages which rely on focus working. It silently causes this method not to work. As a reminder, a warning message is logged each time a focus event is ignored, so page authors will find this information in the error console when attempting to determine why their focus calls are not working.



