moderator-toolbox-nxg-for-reddit / modules/devtools/dom

modules/devtools/dom

Functions

addCommentTesterContextItem()

addCommentTesterContextItem(): void

Defined in: extension/data/modules/devtools/dom.tsx:26

Adds the “Show ze overlay!” entry to the toolbox context menu for opening the comment UI tester.

Returns

void


registerApiInfoButtons()

registerApiInfoButtons(): () => Promise<void>

Defined in: extension/data/modules/devtools/dom.tsx:14

Registers “api info” buttons next to authors and things at their respective UI locations.

Returns

A cleanup function to pass to lifecycle.mount in index.ts.

(): Promise<void>

Run registered cleanup functions in reverse registration order.

Returns

Promise<void>


showCommentUITester()

showCommentUITester(): () => void

Defined in: extension/data/modules/devtools/dom.tsx:34

Mounts the CommentUITester as a managed popup overlay, injecting the Reddit JSON fetch.

Returns

() => void