My preferred browser is Google Chrome and today I learnt of a nifty extension.
Below is a screen shot of a page in my ancestry.com tree.
It is free from the Chrome web store
Type "genealogy" in the search box and look for the "Ancestry Family Search Extension"
Once installed, when you are viewing a tree in ancestry.com the little tree icon for this add on will show in your navigation bar.