Brilliant.
I tried to extend it with a clipboard thingy so that I could paste an image (e.g. a screenshot) into the textbox. Unfortunately imgur doesn't like Tor but I'm thinking if I got that far then it might work for someone who's not on Tor. Try at your own risk. Add the following code somewhere inside the main "function":
if (e.clipboardData.files && e.clipboardData.files.length > 0) {
document.getElementById('uploadImage').files = e.clipboardData.files;
document.getElementById('uploadImage').dispatchEvent(new Event('change'));
}
});
Not sure how imgur API works - what with being unable to use it as per above - but perhaps this line can be changed to use your account: