Injects style sheet code into a Site Clipper response.

The CSS injector extraction rule inserts a <link /> element into the received response.
The location where to insert the element is defined by the Injection location property which may be customized using the Custom regexp property.
The style sheet’s source code is contained in an external file which path is defined in the File path property.

Property Type Category Description
Comment String configuration Describes the object comment to include in the documentation report.
This property generally contains an explanation about the object.
File path String configuration Defines the external file path used for the source attribute of the inserted HTML tag.
This property allows specifying the path to an external file which contains the source code.
The path value must be relative to the current project folder.
Injection location HtmlLocation configuration Defines the location where to insert the element.
This property allows choosing where the new HTML element has to be inserted into the received response.
Predefined values are:

head_top: inserts after the opening <HEAD> tag,
head_bottom: inserts before the closing </HEAD> tag,
body_top: inserts after the opening <BODY> tag,
body_bottom: inserts before the closing </BODY> tag,
custom: inserts at a custom location defined by the Custom regexp property.
Is active boolean configuration Defines whether the extraction rule is active.
Custom regexp String selection Defines the regular expression to use for a custom injection location.
When Injection location property value is set to custom, the Custom regexp property allows defining a regular expression to specify the custom location where to insert the HTML element, rather than using the predefined values.
Notes:

• This expression must contains () to specify where to insert the code.
• For more information about regular expression patterns, see the following page: http://www.regular-expressions.info/reference.html.
• To test regular expressions, you can use the regular expression tester at the following URL: http://www.regular-expressions.info/javascriptexample.html.