Automatizar la ejecución de scripts en Google Chrome (Snippets)

Create a Snippet through the Sources panel

  1. Open the Snippets pane.
  2. Click New snippet.
  3. Enter a name for your Snippet then press Enter to save.

Run Snippets

Run a Snippet from the Sources panel

  1. Open the Snippets pane.
  2. Click the name of the Snippet that you want to run. The Snippet opens in the Code Editor.
  3. Click Run Snippet, or press Control+Enter or Command+Enter (Mac).

Run a Snippet with the Command Menu

  1. Focus your cursor somewhere inside of DevTools.
  2. Press Control+O or Command+O (Mac) to open the Command Menu.
  3. Type the ! character followed by the name of the Snippet that you want to run.
  4. Press Enter to run the Snippet.