Adding a Reference Script

Prerequisites:

Reference scripts only include functions that you intend to call from within your extension. Reference scripts run when a function from another script is called.

  1. Click Add reference script to add the script to your extension. The reference script will appear at the top of the Extension Panel.
  2. (Optional) As needed, call functions in the reference script from your extension. Any code that is not inside a function may execute when the reference script is added to an extension.