How to manually run JS using Chrome dev tool - kdaisho/Blog GitHub Wiki

  1. Open DevTools, go to the Settings dialog, switch to the Experiments tab.
  2. Enable the "Snippets support" experiment, close and reopen DevTools.
  3. Go to the Sources panel. In the left-hand navigator sidebar, switch to the Snippets tab .
  4. Right-click in the [empty] tree in this tab, select the New context menu item.
  5. Give the new snippet any name you like and type the snippet body.
  6. Once done, click the Run (>) button in the status bar to execute the snippet body. You can set breakpoints in snippets and debug them as ordinary scripts.