如何检测和/或阻止浏览器扩展,搞乱我的网站? [英] How to detect and/or block browser extensions that mess up my website?

查看:166
本文介绍了如何检测和/或阻止浏览器扩展,搞乱我的网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

越来越多的用户(我管理一个法国博客平台)抱怨我们的界面上的错误。在90%的情况下,问题来自安装在用户浏览器上的扩展。用户通常甚至不知道他们有这些扩展名。例如,有Avast可以删除共享按钮(Twitter,FB)和一些扩展,如Pricepeep, Slick Saving,Deaply Shopping,VideoFileDownload或Pricora,这些都让我们的界面变得很糟糕。

问题在于用户认为这是我们的错, (

你有一个奇迹般的解决方案来阻止或检测一些或全部不良的浏览器扩展?提前致谢!

解决方案

如果您认为这样做是值得的,那么您可以实现自己的扩展(并提供给用户来安装它以摆脱UI断开)。 b
$ b

在此扩展中,您应该使用 <$ c

$ ol

  • 获取所有已安装的和启用扩展(使用我thod getAll())。
  • 将已安装和启用的扩展过滤到已知问题扩展ID或名称的列表中。
  • 通知用户有关情况。
  • 提供 停用 ,甚至 卸载 有问题的扩展程序。



  • (我还没有测试过,但据说你可以禁用或卸载扩展,即使没有用户的介入,但是 - 即使可行 - 这几乎不是一个好习惯。)

    More and more of our users (I manage a french blogging platform) are complaining about bugs on our interface. In 90% of cases, the problem comes from an extension that is installed on the user's browser. Users often don't even know that they have these extensions.

    For example, there is Avast that removes sharing buttons (Twitter, FB), and some extensions like Pricepeep, Slick Saving, Deaply Shopping, VideoFileDownload or Pricora that totally mess up our interface.

    The problem is that users believe that it is our fault and then quit without further investigation :-(

    Do you have a miraculous solution to block or detect some or all of bad browser extensions? Thanks in advance!

    解决方案

    If you think it is worth the trouble, you could implement your own extension (and offer the user to install it to get rid of UI-breaking).

    In this extension you should use the chrome.management API to:

    1. Get all installed and enabled extensions (using method getAll()).
    2. Detect the ones you know are "harmful" to your UI (e.g. filter the installed and enabled extentions against a list of known-to-cause-trouble extension IDs or names).
    3. Inform the user about the situation.
    4. Offer to disable or even uninstall the problematic extensions.

    (I haven't tested it but supposedly you could disable or uninstall an extension even without the user's intervention, but -even if doable- it is hardly a good practise.)

    这篇关于如何检测和/或阻止浏览器扩展,搞乱我的网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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