If you want something fun, free and playable straight from the browser, Toontown is a solid pick — no install, no payment, just a cartoon world full of mini-games.
The broader trick is to look for games built in the browser from the ground up. Anything that asks you to download a launcher or "player" is a different category, and often a less trustworthy one.
Stick to well-known portals and official game sites, keep your browser patched, and you can play for hours without ever touching an installer.