Adds a content script from a string.
- Safari Desktop 5.0+
- Safari Extensions JS
The source code of the script.
A list of patterns matching URLs of pages on which the script should be run.
A list of patterns matching URLs of pages on which the script should not be run.
true, the script waits until the page is fully loaded before running.
If the script was successfully added, a generated URL that can be used to remove the script; otherwise,
true, the script is run as soon as the page has completely finished loading. Otherwise, it is run as soon as the DOM is ready, before loading subresources such as images and the contents of frames, which allows you to block resources from being loaded.