Jquery 自动弹出 google chrome 扩展安装检查

Jquery auto popup with google chrome extension install check

我想在我的网站上制作一个自动弹出窗口,jquery 仅在 Google Chrome 工作,它会像这样:

如果您使用 Google Chrome 浏览我的网站并且您没有安装我的 Google Chrome 扩展,弹出窗口将显示一个按钮来安装扩展,如果您已经安装了我的 扩展 或者您不使用 Google Chrome 弹出窗口将不会显示

有人可以帮我做这个吗?

你需要做很多事情来完成这个,你可能必须自己完成代码,但要让你走上一条路:

检查浏览器是否 chrome: JavaScript: How to find out if the user browser is Chrome?

检查您的 chrome 扩展是否已安装:这实际上是最棘手的部分,您需要在 chrome 扩展可能。我看到了两种主要的方法:

1) 在您可以检查的每个页面上放置一个标签(或仅在您想要检查的页面上)。

2) 放置一个外部可 ping 项目来检查:Getting error while detect chrome extension installed or not using javascript

内联安装chromehttps://developer.chrome.com/webstore/inline_installation