Previewing uploaded text files in Discord
THIS USERSCRIPT IS NOW OBSELETE
Discord has recently added built-in text file preview, and it's much more pretty, reliable, and function complete than this userscript.
You may uninstall this userscript if you so choose.
Make opening text file attachments on discord open a separate tab, instead of downloading it.