Log the last clicked element with less DOM hackery and more devtools port communication.