-
-
Save stormbreakers/c500b994eb5805b350a1 to your computer and use it in GitHub Desktop.
Automagically look up JavaScript errors on Stack Overflow ;-)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onerror = function(message) { | |
top.location.href = 'http://stackoverflow.com/search?q=' + | |
encodeURIComponent(message + ' [js]'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment