Re:Show HN: This website moves your mouse cursor
by modeless on Friday April 02, 2021 @02:17PM
(#26674159)
Even better would be to use the fullscreen api and mouse capture api to trap the mouse for real. Then you could render fake browser UI and do whatever you want when people try to click on it. If you really wanted to mess with people.
[ Parent
| on HN ]
Re:Show HN: This website moves your mouse cursor
by baobabKoodaa on Friday April 02, 2021 @02:20PM
(#26674201)
If you use the fullscreen api or the pointer lock api, Chrome will render a popup that says "press ESC to..." Without that it would be sick!
Re:Show HN: This website moves your mouse cursor
by modeless on Friday April 02, 2021 @02:22PM
(#26674229)
Yeah but I bet at least half of people wouldn't notice, especially if you put something interesting on the other side of the screen for a second. Or you could render a bunch of overlapping fake warnings all over the screen, making it difficult to find the real one. Or you could put an exit fullscreen button and pretend to exit fullscreen when clicked, but you're actually still in fullscreen. Etc. I should probably stop giving the malware guys ideas...