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?¶
optionalcommentDepthPlus?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:19
Add 1 to the API-reported depth when computing indent classes.
contextLink?¶
optionalcontextLink?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:8
Show a “context” link with ?context=3.
contextPopup?¶
optionalcontextPopup?: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.
fullCommentsLink?¶
optionalfullCommentsLink?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:15
Show a “full comments” link back to the thread.
noOddEven?¶
optionalnoOddEven?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:21
Use numeric depth class instead of odd/even alternation.
overviewData?¶
optionaloverviewData?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:17
Show the parent submission title and author above the comment.
parentLink?¶
optionalparentLink?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:6
Show a “parent” link to the parent comment or post.
subredditColor?¶
optionalsubredditColor?: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?¶
optionalshowPostFlair?:boolean
Defined in: extension/data/modules/shared/redditElements/types.ts:31
Show the post flair badge next to the title.
subredditColor?¶
optionalsubredditColor?: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.