[英]How to detect chrome extensions whether it is installed in user browser
There are a lot of answers related to this question, but most of those answer information are deprecated years ago by chrome browser. 有很多与此问题相关的答案,但是大多数答案信息在几年前被chrome浏览器淘汰。
I need a working example, how to detect google chrome browser addon/extension which is installed in users browser using (javascript/any method). 我需要一个有效的示例,如何检测使用(javascript /任何方法)安装在用户浏览器中的google chrome浏览器插件/扩展。
If i use event detection, there is a addon called " Luminous: JavaScript events blocker " which blocks all event detection and bypass the events generated by javascript.
如果我使用事件检测,则有一个名为“ Luminous:JavaScript events blocker ”的插件,它会阻止所有事件检测并绕过javascript生成的事件。
<script>
(function(w, u){
var intervalLuminous = null;
var isLuminousInstalled = false;
var setLuminousDetected = function(){
isLuminousInstalled = true;
alert('Luminous: JavaScript events blocker installed!');
}
var checkLuminous = function(){
if (document.getElementById('luminous-options') || document.getElementById('luminous-data')) {
clearInterval(intervalLuminous);
setLuminousDetected();
}
}
intervalLuminous = setInterval(function(){
checkLuminous();
}, 10);
if(!intervalLuminous){
setLuminousDetected();
}
})(window, undefined);
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.