javascript - Detecting if AdBlock extension is installed on the browser -
i need detect if adblock extension installed on user's browser.
i have seen similar question on so, of them suggest check if dom has been modified.
i rather want check if extension installed (maybe javascript ?) on browser rather check dom. how do ?
try global navigator.plugins
variable. loop should work. (js)
nice blog topic: http://webdevwonders.com/detecting-browser-plugins/
edit: chrome can try if app guid.
try { var appguid = "nnbmlagghjjcbdhgmkedmbmedengocbn"; = new image(); a.src = "chrome-extension://"+appguid+"/icon16.gif"; if(a.width != 0) { //app installed! } } catch(e) { //app not installed }
Comments
Post a Comment