I've seen other questions asking the same thing, with answers that were accepted. However, those answers don't always work.
This was the accepted answer:
if (screen.availHeight || screen.height-30) <= window.innerHeight) {
// code
}
And yes, that works, but not if the users zooms in on the page. I run a website in kiosk mode (not a Chrome app) on 2 public PCs in an apartment complex for elderly people.
I need to detect users coming from those two PCs to add some extra code seeing as everything would mess up if they click a link going to a different website or click a link to a PDF file. There's no tabs so there would be no way to get back to the original website so I inject code to open external links in an iframe.
How can I detect users coming from those PCs with just a normal Chrome installation? An extension that could do the trick would also be welcome.