moderator-toolbox-nxg-for-reddit / modules/shared/redditElements/types

modules/shared/redditElements/types

Interfaces

CommentOptions

Defined in: extension/data/modules/shared/redditElements/types.ts:4

Display and behavior options for TBComment.

Properties

commentDepthPlus?

optional commentDepthPlus?: boolean

Defined in: extension/data/modules/shared/redditElements/types.ts:19

Add 1 to the API-reported depth when computing indent classes.

contextPopup?

optional contextPopup?: boolean | ((commentId, permalink, event) => void)

Defined in: extension/data/modules/shared/redditElements/types.ts:13

Show a “context-popup” link. Pass true to use the default click behavior, or a callback (commentId, permalink, event) => void for custom handling.

noOddEven?

optional noOddEven?: boolean

Defined in: extension/data/modules/shared/redditElements/types.ts:21

Use numeric depth class instead of odd/even alternation.

overviewData?

optional overviewData?: boolean

Defined in: extension/data/modules/shared/redditElements/types.ts:17

Show the parent submission title and author above the comment.

subredditColor?

optional subredditColor?: boolean

Defined in: extension/data/modules/shared/redditElements/types.ts:23

Color the left border based on the subreddit name.


SubmissionOptions

Defined in: extension/data/modules/shared/redditElements/types.ts:27

Display options for TBSubmission.

Properties

showPostFlair?

optional showPostFlair?: boolean

Defined in: extension/data/modules/shared/redditElements/types.ts:31

Show the post flair badge next to the title.

subredditColor?

optional subredditColor?: boolean

Defined in: extension/data/modules/shared/redditElements/types.ts:29

Color the left border based on the subreddit name.

Type Aliases

ThingStatus

ThingStatus = "spammed" | "removed" | "approved" | "neutral"

Defined in: extension/data/modules/shared/redditElements/types.ts:35

Moderation state of a Reddit thing.