Can I DevTools?
Sources
Edit
  1. Sources > In the left sidebar, open Snippets > Click "+ New snippet". This will open an empty file in the main view.
  2. Enter the snippet and press Cmd+Enter to run the code.
  3. Additionally, you can also save the snippet and run it directly from the Command Menu using !<script>.