Disable external links

Check if the clicked element or any of it's parent is A with external URL as href as parent and prevent default of that click event.