gmail URN insert script

Subscribe to gmail URN insert script 3 posts, 2 voices

 
jye User

Hi everyone,

If you're a fellow user of GMail, maybe you have see that URN different from http:// are skipped by GMail. For the people who don't understand, here's what I mean :

When you receive an html email with a custom link like Custom Server in here. GMail skipped the href part and print you : Custom Server

I have check on the orginal email (which we can access by a specific url or by clicking on Reply > Show Original) that I can get back the href value and re-inject it with greasemonkey on my email !

So far, I was able to detect broken link in my mail, but in order to add the href part, I have to make an ajax call of the Show Original URL to get the plain text mail and do some work to get my href part. I wasn't able to get direcly this URL so I was trying to reconstruct it from 2 variables. One is always in my address bar so no problem to get it but the other is a global variable from the gmail source code ( var gobals -> ID_KEY ).

I don't know how to access to this variable (globals) in order to get my ID_KEY.

Can you tell me if it's possible to access to this variable which is an array called globals and you can see it if you click on "source code" on your browser.

var globals={BUILD_CL:"xxx",BUILD_LABEL:"xxx",JS_VERSION:"xxx",JS_ARRAY_VERSION:"x",MODS:"xxx",COOKIE_PATH:"xxx",DEFAULT_PAGE_SIZE:50,ID_KEY:"THEVALUEIWANTSOBADLY",ETC ETC}

Hope you can help me!

Kind Regards,

jye

 
lazyttrick Scriptwright

Maybe unsafeWindow.globals ? I'm not sure, but once I did something similar...

 
jye User

It seems to not working maybe because of iFrame ? Really strange because with Firebug, I see it in my dom listing..