To one’s heart’s content

As much as one wants.

I used the video camera to my heart’s content before I had to return it to my friend.