Before leaving for China, my brother told me about the Perapera Chinese Popup Dictionary which shows the pinyin and English translation of highlighted Chinese characters in the Mozilla Firefox browser. The link above leads to a video showing how I added the plugin.