Not assuming extension when requiring cross domain

It would be quite useful for me to be able to require a text file with arbitrary extension from a different domain. Also other people find this useful and their answer to this question http://stackoverflow.com/questions/10607370/require-js-text-plugin-adds-js-to-the-file-name lead me here