Skip to content

Conditionregex

psiinon edited this page Apr 4, 2013 · 2 revisions

This conditional tests whether the specified regex is present.

Attributes

Name Format Description
regex String The regular expression to test for
location String The location to test, either HEAD or BODY
ifStatements Array The statements to run if the regex is found
elseStatements Array The statements to run if the regex is not found
index Integer The index of the statement in the script
elementType String Always ZestConditionRegex

JSON

An basic example:
{
  "regex": "alert\(1\);",
  "location": "BODY",
  "ifStatements": [],
  "elseStatements": [],
  "index": 2,
  "elementType": "ZestConditionRegex"
}

See also

Clone this wiki locally