Root definitions

AuthorCriteria

Permalink

Criteria with which to test against the author of an Activity. The outcome of the test is based on:

  1. All present properties passing and
  2. If a property is a list then any value from the list matching

Properties

age

string

Test the age of the Author's account (when it was created) against this comparison

The syntax is (< OR > OR <= OR >=) <number> <unit>

  • EX > 100 days => Passes if Author's account is older than 100 days
  • EX <= 2 months => Passes if Author's account is younger than or equal to 2 months

Unit must be one of DayJS Duration units

[See] https://regexr.com/609n8 for example

Pattern: ^\s*(>|>=|<|<=)\s*(\d+)\s*(days?|weeks?|months?|years?|hours?|minutes?|seconds?|milliseconds?)\s*$
commentKarma

string

A string containing a comparison operator and a value to compare karma against

The syntax is (< OR > OR <= OR >=) <number>[percent sign]

  • EX > 100 => greater than 100 comment karma
  • EX <= 75% => comment karma is less than or equal to 75% of all karma
Pattern: ^\s*(>|>=|<|<=)\s*(\d+)\s*(%?)(.*)$
description

anyOf [Array<string>, string]

An (array of) string/regular expression to test contents of an Author's profile description against

If no flags are specified then the insensitive flag is used by default

If using an array then if any value in the array passes the description test passes

flairBackgroundColor

anyOf [Array<string>, string ∪ boolean]

The (user) flair background color (or list of) from the subreddit to match against

  • If true then passes if ANY css background color is assigned
  • If false then passes if NO css background is assigned
  • If string or list of strings then color is matched, case-insensitive, without #. String may also be a regular expression enclosed in forward slashes.
flairCssClass

anyOf [Array<string>, string ∪ boolean]

A (user) flair css class (or list of) from the subreddit to match against

  • If true then passes if ANY css is assigned
  • If false then passes if NO css is assigned
  • If string or list of strings then text is matched, case-insensitive. String may also be a regular expression enclosed in forward slashes.
flairTemplate

anyOf [Array<string>, string ∪ boolean]

A (user) flair template id (or list of) from the subreddit to match against

  • If true then passes if ANY template is assigned
  • If false then passed if NO template is assigned
  • If string or list of strings then text is matched, case-insensitive. String may also be a regular expression enclosed in forward slashes.
flairText

anyOf [Array<string>, string ∪ boolean]

A (user) flair text value (or list of) from the subreddit to match against

  • If true then passes if ANY text is assigned
  • If false then passes if NO text is assigned
  • If string or list of strings then text is matched, case-insensitive. String may also be a regular expression enclosed in forward slashes.
isContributor

boolean

Is the author an approved user (contributor)?

isMod

boolean

Is the author a moderator?

linkKarma

string

A string containing a comparison operator and a value to compare link karma against

The syntax is (< OR > OR <= OR >=) <number>[percent sign]

  • EX > 100 => greater than 100 link karma
  • EX <= 75% => link karma is less than or equal to 75% of all karma
Pattern: ^\s*(>|>=|<|<=)\s*(\d+)\s*(%?)(.*)$
modActions

Array<anyOf [ModNoteCriteria, ModLogCriteria]>

name

Array<string>

A list of reddit usernames (case-insensitive) or regular expressions to match against. Do not include the "u/" prefix

EX to match against /u/FoxxMD and /u/AnotherUser use ["FoxxMD","AnotherUser"]

shadowBanned

boolean

Is the author shadowbanned?

This is determined by trying to retrieve the author's profile. If a 404 is returned it is likely they are shadowbanned

totalKarma

string

A string containing a comparison operator and a value to compare against

The syntax is (< OR > OR <= OR >=) <number>

  • EX > 100 => greater than 100
Pattern: ^\s*(>|>=|<|<=)\s*(\d+)\s*(%?)(.*)$
userNotes

Array<UserNoteCriteria>

A list of UserNote properties to check against the User Notes attached to this Author in this Subreddit (must have Toolbox enabled and used User Notes at least once)

verified

boolean

Does Author's account have a verified email?

Loading...

Editor and Validator