Here is a simple AutoHotkey script to have a middle mouse button paste clipboard contents. It should still act normally when using on links, browser tabs, etc. but paste into other locations. Enjoy!


~mbutton::
WinGetClass cos_class, A
if (cos_class == "Emacs")
SendInput ^y
else
SendInput ^v
return