moderator-toolbox-nxg-for-reddit / modules/betterbuttons/features/commentLock

modules/betterbuttons/features/commentLock

Functions

createCommentLockHandlers()

createCommentLockHandlers(): object

Defined in: extension/data/modules/betterbuttons/features/commentLock.tsx:134

Creates handlers for the comment-lock feature.

Returns

commentLockRun (injects lock buttons into unprocessed comments) and cleanup (unregisters the renderers, unmounts every injected button, and clears the processed markers); pass cleanup to lifecycle.mount in index.ts.

cleanup

cleanup: () => Promise<void> = scope.cleanup

Run registered cleanup functions in reverse registration order.

Returns

Promise<void>

commentLockRun

commentLockRun: () => void

Returns

void