Skip to content

Instantly share code, notes, and snippets.

View RoryDuncan's full-sized avatar

Rory Duncan RoryDuncan

View GitHub Profile
@daniellmb
daniellmb / onerror.js
Last active July 12, 2020 13:30
Automagically look up JavaScript errors on Stack Overflow ;-)
window.onerror = function(message) {
top.location.href = 'http://stackoverflow.com/search?q=' +
encodeURIComponent(message + ' [js]');
};