Skip to content

Instantly share code, notes, and snippets.

@jonuts
Created March 7, 2009 19:54
Show Gist options
  • Save jonuts/75418 to your computer and use it in GitHub Desktop.
Save jonuts/75418 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name quit stealing my damn focus
// @namespace jonuts
// @description take back cursor focus from idiotic websites that suck horribly
// @include *
// ==/UserScript==
setTimeout(takeBack, 0);
function takeBack() {
var inputs = document.getElementsByTagName("input");
for (var i = inputs.length - 1; i >= 0; i--)
inputs[i].blur();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment