For example, the following is a Hello World example that executes the alert function.
alert('hi'); //Optionally, you can just use this one liner.
Don't Save Your Page Script and Refresh the Page!
You can then copy and paste this snippet into Web Development Helper Script Console and click the Execute link. As you can see this opens the page in Edit mode.