US stocks extended gains on Friday as the euphoria over technology stocks continued for a second day.