I can't seem to find a way to click gmail's show original button programmatically in a chrome extension, there doesn't appear to be any link in the source.
However the url is similar to the formatted email and perhaps could be constructed, except it has some kind of user id which I have no way of obtaining:
regular mail view:
https://mail.google.com/mail/?shva=1#inbox/131bfc47a65cb2fe
show original:
https://mail.google.com/mail/?ui=2&ik=8b4b18b93a&view=om&th=131bfc47a65cb2fe
note the user id &ik=8b4b18b93a
is it possible to get a link to show original?
thanks