moderator-toolbox-nxg-for-reddit / modules/modbar/features/shredditPinnedOffset

modules/modbar/features/shredditPinnedOffset

Functions

createShredditPinnedOffsetHandlers()

createShredditPinnedOffsetHandlers(): object

Defined in: extension/data/modules/modbar/features/shredditPinnedOffset.ts:39

Injects the offset into Shreddit’s shadow-DOM bottom-pinned widgets so they clear the modbar. No-op on old Reddit (these custom elements only exist on Shreddit). Creates its own lifecycle scope per the module pattern; wire the returned cleanup via lifecycle.mount in index.ts.

Returns

object

An object with a cleanup function that deregisters the shared-mutation observer.

cleanup

cleanup: () => Promise<void>

Returns

Promise<void>