moderator-toolbox-nxg-for-reddit / dom/shreddit/userpage
dom/shreddit/userpage¶
Functions¶
findProfileCommentTargets()¶
findProfileCommentTargets(
root):ProfileCommentTarget[]
Defined in: extension/data/dom/shreddit/userpage.ts:20
Find shreddit-profile-comment elements that need a toolbox thing container. These appear on user profile pages and don’t contain mod-notes-opener elements, so they are handled separately from findModNotesTargets.
Author is extracted from the poster-info anchor rather than a direct attribute since shreddit-profile-comment only carries user-id, not user-name.
Parameters¶
root¶
Element
Returns¶
Interfaces¶
ProfileCommentTarget¶
Defined in: extension/data/dom/shreddit/userpage.ts:4
Data extracted from a shreddit-profile-comment element on user profile pages.
Properties¶
element¶
element:
Element
Defined in: extension/data/dom/shreddit/userpage.ts:5
postId¶
postId:
string
Defined in: extension/data/dom/shreddit/userpage.ts:9
subreddit¶
subreddit:
string
Defined in: extension/data/dom/shreddit/userpage.ts:7
thingId¶
thingId:
string
Defined in: extension/data/dom/shreddit/userpage.ts:8