Plugin Development: intercept Entry before returned to template
Probably depends on the specifics of what you're trying to accomplish, but your best bets I'm guessing would be to listen to some of the element level events, make sure it's an entry and a site request, then do your logic.

onBeforeBuildElementsQuery, onBuildElementsQuery, and onPopulateElements are potential candidates.