Run Javascript on the body of a Gmail message

Posted by saturn on Stack Overflow See other posts from Stack Overflow or by saturn
Published on 2010-05-09T03:41:20Z Indexed on 2010/05/09 3:48 UTC
Read the original article Hit count: 249

Filed under:
|
|
|
|

I want to display LaTeX math in the gmail messages that I receive, so that for example $\mathbb P^2$ would show as a nice formula. Now, there are several Javascripts available (for example, this one, or MathJax which would do the job, I just need to call them at the right time to manipulate the gmail message.

I know that this is possible to do in "basic HTML" and "print" views. Is it possible to do in the standard Gmail view? I tried to insert a call to the javascript right before the "canvas_frame" iframe, but that did not work.

My suspicion is that manipulating a Gmail message by any Javascript would be a major security flaw (think of all the malicious links one could insert) and that Google does everything to prevent this. And so the answer to my question is probably 'no'. Am I right in this?

Of course, it would be very easy for Google to implement viewing of LaTeX and MathML math simply by using MathJax on their servers. I made the corresponding Gmail Lab request, but no answer, and no interest from Google apparently.

So, again: is this possible to do without Google's cooperation, on the client side?

© Stack Overflow or respective owner

Related posts about gmail

Related posts about greasemonkey