返回 gmail 撰写窗口的 Jquery 表达式是什么?
我一直在尝试获取 gmail 屏幕上您实际编写消息的部分(我想制作一个微小的 chrome 扩展来调换输入错误的字符)。
但我发现自己迷失在一个由小而曲折的 iframe 组成的迷宫中,所有这些都一样。我根本无法生成一个 jquery 表达式,该表达式将通过大约 20 层嵌套 div 来找到撰写窗口。即使当我从 javascript 检查器中选择表单的 id 时,jquery 似乎也找不到它。
有人可以帮忙吗?
I have been trying to get at the portion of a gmail screen where you actually write a message (I want to make a tiny chrome extension that will transposed mistyped characters).
But I find myself lost in a maze of little twisty iframes, all alike. I simply cannot produce a jquery expression that will fight its way through about 20 layers of nested divs to find the compose window. Even when I pick the id of the form out of the javascript inspector, it doesn't seem to be found by jquery.
Can anyone help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不太需要jquery,但这里是打开gmail窗口的链接:
带参数:
另外,其他参数是:
Not much need of jquery, but here's the link to open a gmail window:
With parameters:
Also, other parameters would be:
这可以通过使用弹出 javascript 来完成。当页面加载时,将脚本插入到撰写窗口中,就像
现在在 extractgmail.js 中一样,您所要做的就是提取下面定义的字段
,现在从这里您拥有您想要的所有字段。这是在以前版本的 gmail compose 中完成并测试的,因为 gmail 已经更改了 compose UI 我正在努力做同样的事情,如果您需要它,会让您知道
This can be done by using popup javascript. When the page is loading insert a script into the compose window like this
now in extractgmail.js what you have to do is extract the fields as defined below
now from here you have all the fields you want. This is done and tested in previous version of gmail compose now as gmail has changed there compose UI i am working on it to do the same and will let you know if you need it