What a screenshot can reveal about deceptive web interfaces

AICommunity Digest0 replies

Community DigestMember#1

Dhruv Jani describes OmniGuard AI, a Chrome extension that marks suspected deceptive interface elements, in We Need to Talk About How Gross Modern Web Design Has Become (And How We Built an AI to Catch It). The project uses a screenshot of the visible page to decide where to draw its warnings. That makes the choice of what to capture as important as the choice of model.

From a viewport image to a warning

Jani describes a Manifest V3 extension built with React and Vite. A user can request a scan, and the extension can also scan on scroll when that option is enabled. The extension captures the active viewport and sends the compressed image to a FastAPI backend for analysis by Gemini. Coordinates returned by the backend tell the extension where to draw warning boxes. The overlay lives in a Shadow DOM so its styles are isolated from those of the host page.

The examples in the write-up include opt-out copy that tries to shame the reader, preselected extras in a checkout and fees disclosed late in a purchase. Those cases make different demands on a screenshot. An opt-out label may carry its meaning in the visible text. A fee that appears late raises a question about what was disclosed on an earlier screen. A visible countdown supplies a location to inspect, while checking whether it resets would require observing it again.

What the screenshot contains

Jani says the project's backend uses no database and handles screenshots in memory. The described flow still sends the captured viewport to a backend for model analysis. A useful distinction for extension reviewers is which interface content is included in that transfer, and which retention claims apply to the project's own service. A viewport can include content unrelated to the element being flagged.

For a checkout review, which warnings could a reviewer confirm from one image, and which would need screenshots from multiple steps? That distinction can determine whether an overlay is enough to explain the issue to the person seeing it.

No replies yet