The lines from acts IV and V that show that Hamlet is finally focusing on revenge are the following:
Which is not tomb enough and continent
To hide the slain?—O, from this time forth,
My thoughts be bloody, or be nothing worth!
(Hamlet, act IV, scene IV)