如何检查Firefox插件是否已安装(在另一台计算机上)? [英] How to check if a Firefox addon is installed (on another computer)?

查看:81
本文介绍了如何检查Firefox插件是否已安装(在另一台计算机上)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我对网络使用情况进行研究的一部分,我安装了Firefox插件来跟踪他们的访问(有点像RescueTime,但与我的研究不同).

As part of my research on web usage, I have people install a Firefox addon to track their visits (kinda like RescueTime, but different for my research).

因此,我担心用户是否会通过卸载插件来作弊.有什么方法可以让插件在安装/卸载插件时通知我?

So I worry whether the users cheat by uninstalling the addon. Is there any way I can have the addon notify me on install/uninstall of the addon?

我知道有很多解决方法(例如,仅使用另一个浏览器客户端).但是对于这种非常特殊的情况,我该怎么办?

I know there's a bunch of workarounds for this (say, just by using another browser client). But what can I do for this very specific case?

PS-对于具有相同功能的Chrome扩展程序,我也有同样的问题.我认为我应该开始另一个线程来问这个问题.

PS - I have the same question for a Chrome extenion that does pretty much the same thing. I assume I should start another thread to ask that question.

推荐答案

您可以注册em-action-requested主题的观察者: https://developer.mozilla.org/en/Observer_Notifications#Extension_Manager .这样,无论何时用户选择卸载您的加载项,您都可以得到通知.这里有很多限制:

You can register an observer for the em-action-requested topic: https://developer.mozilla.org/en/Observer_Notifications#Extension_Manager. This way you can get notified whenever the user chooses to uninstall your add-on. There is a number of limitations here:

  • 禁用的加载项不会收到通知(它们不处于活动状态).每当用户选择禁用您的加载项时,您都会收到通知.
  • 大多数加载项不会立即卸载,通常这需要重新启动浏览器.在重新启动之前,用户仍然可以选择还原其操作.
  • 可以在浏览器不运行时卸载附件,只需删除相应的目录/文件即可.届时将不会发送任何通知.

如果要验证插件是否仍安装,向您的服务器发送常规的我还活着"信号可能会更可靠.

It might be more reliable to send a regular "I am alive" signal to your server if you want to verify that the add-on is still installed.

这篇关于如何检查Firefox插件是否已安装(在另一台计算机上)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆