moderator-toolbox-nxg-for-reddit / modules/modactions/dom
modules/modactions/dom¶
Functions¶
createModActionsSlot()¶
createModActionsSlot(): () =>
void
Defined in: extension/data/modules/modactions/dom.tsx:15
Registers the inline mod-action buttons at the thingFlatListActions location and returns the
cleanup. The location is only provided on Shreddit, so this never renders on old Reddit. order: 10
places this set after the order -10 vote arrows (commentActions.vote) and the default-order (0)
controls (the Second-opinion toggle and the “Add removal reason” link), and before the order 20
Reply / ⋯ Expand toggle (commentActions.extras); the Toolbox Spam and Remove links are emitted by
this set itself. Reads the NSFW state and permalink (not carried in the location context) from the
thing element directly.
Returns¶
() => void