moderator-toolbox-nxg-for-reddit / modules/modviewenhancements/dom
modules/modviewenhancements/dom¶
Functions¶
createModViewEnhancementsHandlers()¶
createModViewEnhancementsHandlers(
settings):object
Defined in: extension/data/modules/modviewenhancements/dom.tsx:108
Initializes mod-view enhancement effects and returns handlers for ongoing DOM mutations. Runs immediately on call for the current page state, then returns handlers for new items.
Parameters¶
settings¶
Current module settings.
Returns¶
An object exposing the resolved shouldHighlightMatches gate plus handlers for new
things, expandos, and Shreddit mutations.
shouldHighlightMatches¶
shouldHighlightMatches:
boolean
cleanup()¶
cleanup():
void
Cancels pending expando observers/timeouts and removes the injected bot-checkmark style element.
Returns¶
void
handleExpando()¶
handleExpando(
expandoButton):void
Parameters¶
Returns¶
void
handleNewThings()¶
handleNewThings():
void
Returns¶
void
handleShredditMutations()¶
handleShredditMutations(
mutations):void
Parameters¶
mutations¶
MutationRecord[]
Returns¶
void
initShreddit()¶
initShreddit():
void
Returns¶
void
processShredditItem()¶
processShredditItem(
item):void
Parameters¶
item¶
Element
Returns¶
void