inspect javascript calls for gmail's buttons

元气小坏坏 提交于 2019-12-04 16:31:54

Gmail's Javascript code is obfuscated to avoid this type of inspection (and also to reduce code size). It is very unlikely you'll be able to make heads or tails of it even if you manage to get Firebug to breakpoint in the code properly.

I don't think that the message id would be in the message created (in fact all the headers would be absent). My guess is that they are entered on the server side by Google before dispatching the message.

cllpse

All objects in JavaScript has got a toString() method. If you can find the button then you can find it's associated events. You can then toString() those events in the FireBug console--but as levik wrote; all of the code if obfuscated, so you might just end up toString()'ing gibberish.

Here's a little pseudo-code to get you started:

document.getElementById("...").onclick.toString()



Update

It seems like it's not possible to access events added with attachEvent() and addEventListener() if you have no control over the code you want to debug.

As a sidenote, one would assume that the unique id gets assigned in the server, not in the javascript...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!