How to detect extension on a browser?

前端 未结 2 1920
悲&欢浪女
悲&欢浪女 2020-12-12 05:31

I\'m trying to detect if an extension is installed on a user\'s browser.

I tried this:

var detect = function(base, if_installed, if_not_installed) {
         


        
2条回答
  •  有刺的猬
    2020-12-12 06:26

    Have your Chrome extension look for a specific DIV or other element on your page, with a very specific ID.

    For example:-

提交回复
热议问题