moderator-toolbox-nxg-for-reddit / modules/comment/oldReddit/hideModComments

modules/comment/oldReddit/hideModComments

Functions

createHideModCommentsHandlers()

createHideModCommentsHandlers(adapter): object

Defined in: extension/data/modules/comment/oldReddit/hideModComments.tsx:92

Creates handlers for the hide-mod-comments button in the commentThreadControls UI location. The button is only shown on pages without extra context (i.e. not on user pages with raw detail). Call lifecycle.mount(handlers.cleanup) in index.ts.

Parameters

adapter

CommentModuleAdapter

The platform adapter used to find and hide mod-action comments.

Returns

object

{cleanup} - unregisters the renderer on module cleanup.

cleanup

cleanup: () => void

Returns

void