There's an old Mac app that tried to do it. History hound. It sometimes worked