1. Inject javascript; 2. Capture web page