Skip to content

salarizadi/idev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iDev

Browser console opening detection

Import :

<script src="idev.js"></script>

Instructions :

iDev.listener(function (opened) {
  document.querySelector(".status").innerHTML = (opened ? "Opened" : "Closed");
});

document.querySelector(".ismobile").innerHTML  = "Mobile  : " + (iDev.mobile ? "true" : "false");
document.querySelector(".iswindows").innerHTML = "Windows : " + (iDev.windows ? "true" : "false");
document.querySelector(".ismac").innerHTML     = "Mac : " + (iDev.mac ? "true" : "false");

iDev.run();

See all features :

See this value in your browser console before calling the iDev.run() method See more commands and features

console.log(iDev)

Support Browser :

  • Chrome
  • Firefox
  • Safari
  • Edge
  • Opera
  • IE9+ (need Promise polyfill)

About

Detect agent & inspect browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published