To create a bootstrap script:
- Open the Sources tool
- At the bottom of the sidebar, click Add resource (
- Choose the Inspector Bootstrap Script type.
- Write the code you need.
To learn more, see Inspector Bootstrap Script on the webkit blog.