Saksoo
Saksoo

Reputation: 53

Running commands from chrome console

I am using chrome console to get data from one site with these 2 commands.

window.location.replace(link);

document.forms[2].submit();

Is there any way to run theme together in the same line or make a loop ?? Because i want to run in many times

Upvotes: 2

Views: 4224

Answers (1)

user3459110
user3459110

Reputation: 7061

Chrome Dev Tools Snippets FTW

Open Dev tools, navigate to the Sources tab, open the sidebar on the left, and open the Snippets tab. Now right click and create new snippet, put your code inside it, and run it via Ctrl+Enter. These snippets stay there untill you delete them, even after chrome restart. They are very powerfull and easy to use.

Sample Image

Read more in the official article Authoring Development Workflow #Snippets

Upvotes: 6

Related Questions