Adding Scripts

Tap + button on Scripts list to add a script. You will be prompted to fill in:

  • Script name: The name of the script.
  • Script URL: The URL to download script from.

Both fields are optional.

If you wish to download a script from web, put the URL here. If the URL field is left blank, Zoo will create a blank script for you to edit.

Add script from URLs

Those content from URLs are supported:

  • Plain JS files. URL ends with .js or the response MIME type indicates JavaScript.
  • GreaseMonkey JS files. Plain JS file with GreaseMonkey-style metadata block.

Learn more about GreaseMonkey compatibility in What's a Script.

Add local files

Version
Available since 1.3.

As mentioned, a Cown Zoo "script" is actually a collection of actual JS / CSS code. Thus, if you wish to add local files, you need to create a Zoo script first, then add the local files to the Zoo script.

After creating a script, under JavaScript or CSS tab you should be able to add a code file. The code files should be placed under Cown Zoo/Code Pieces folder in your iCloud Drive. You can open the folder in the file add sheet.

This is NOT an one-off import mechanism. You can edit the added code files and changes will apply immediately (page refresh required), as long as its path and name are not changed. Since those files are stored in iCloud Drive, they will be synced, and you can use any text editors to edit them.

Due to the limitations of iOS sharing files between app and Safari Web Extension, those code files must be stored in iCloud Drive, which requires you to have iCloud Drive and iCloud permission for Cown Zoo enabled.


Copyright 2022 Inkwire Technology (Hangzhou) Co., Ltd.