0

我可以从 Safari/Chrome/Firefox/IE 扩展(插件或附加组件)检测系统/浏览器活动吗?我想在特定应用程序中保持会话处于活动状态(如“用户活动”/“用户离开”),即使用户远离我感兴趣的选项卡(想象一个聊天应用程序)但在其他任何地方进行活动(在其他选项卡或理想情况下在系统中)。

我知道 javascript 安全限制阻止它在运行文档之外收集此类信息(如果我得到纠正的话),所以我希望通过自定义扩展来克服限制。我说的是在企业 Intranet 中运行的应用程序,因此我可以“强制”安装扩展。

谢谢。

4

1 回答 1

0

You can make a plugin work on all url's and you can also bind clicks and what not from a plugin.

Not sure about all browser plugin models but they probably all have a global storage and you can make your chat application check this storage on an interval(and there might just be useful events you can use, but none that I know)

If the browsers` plugin model does not have a global storage, you can probably use an external storage.

This is a pretty generic answer, you probably should just try something :)

于 2012-10-31T11:23:02.903 回答