removes the context menu if target or parents is a link or image or if page has selected text.