Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ArthurHeitmann/photon-reddit
/ functions
Functions
1,192 in github.com/ArthurHeitmann/photon-reddit
⨍
Functions
1,192
◇
Types & classes
381
↓ 339 callers
Function
makeElement
( tagName: K | string, attributes?: Record<string, string | EventListener>, inner?: (HTMLElement | Node | s
src/static/scripts/utils/utils.ts:343
↓ 229 callers
Method
add
(auth: AuthData)
src/static/scripts/multiUser/userManagement.ts:73
↓ 209 callers
Method
bind
(input: HTMLInputElement, removeLeadingR, onSelectCallback: OnSubSelectCallbackSignature)
src/static/scripts/components/misc/subredditSelector/subredditSelector.ts:29
↓ 159 callers
Method
remove
()
src/static/scripts/components/photon/photonBaseElement/photonBaseElement.ts:34
↓ 133 callers
Method
push
(post: Ph_Post)
src/static/scripts/components/feed/universalFeed/postsFocusStack.ts:6
↓ 101 callers
Method
error
()
src/static/scripts/types/serviceworker.d.ts:191
↓ 61 callers
Method
json
()
src/static/scripts/types/serviceworker.d.ts:40
↓ 53 callers
Method
toggle
(e: Event)
src/static/scripts/components/global/userDropDown/userDropDown.ts:342
↓ 50 callers
Function
redditApiRequest
(pathAndQuery, params: string[][] | any, requiresLogin: boolean, options: RequestInit = {})
src/static/scripts/api/redditApi.ts:33
↓ 47 callers
Method
get
(id: string)
src/static/scripts/types/serviceworker.d.ts:231
↓ 44 callers
Function
hasParams
(params: IArguments)
src/static/scripts/utils/utils.ts:317
↓ 42 callers
Method
contains
(post: Ph_Post)
src/static/scripts/components/feed/universalFeed/postsFocusStack.ts:30
↓ 36 callers
Method
from
* Makes a new P_Parser wrapper. * * @param constr Sub class of P_Parser * @param otherParams Optional parameters passed to the constructor
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:31
↓ 31 callers
Function
linksToSpa
(elem: HTMLElement, inlineMedia: boolean = false)
src/static/scripts/utils/htmlStuff.ts:17
↓ 28 callers
Function
$css
(query: string)
src/static/scripts/utils/htmlStatics.ts:33
↓ 24 callers
Method
init
(video: Ph_VideoWrapper, isLateInit = false)
src/static/scripts/components/mediaViewer/videoPlayer/videoPlayer.ts:63
↓ 23 callers
Function
escADQ
(unsafeAttribute: string)
src/static/scripts/utils/htmlStatics.ts:92
↓ 20 callers
Function
numberToShort
(num: number)
src/static/scripts/utils/utils.ts:54
↓ 18 callers
Function
$class
(c: string)
src/static/scripts/utils/htmlStatics.ts:13
↓ 16 callers
Function
emojiFlagsToImages
(element: Element | string)
src/static/scripts/utils/htmlStatics.ts:211
↓ 16 callers
Function
safeExcAsync
(func: (req: express.Request, res: express.Response, next?: express.NextFunction) => Promise<void>)
src/serverScripts/utils.ts:44
↓ 16 callers
Method
shortColorToCss
(colorOrShortColor: string | RGB)
src/static/scripts/components/misc/flair/flair.ts:229
↓ 15 callers
Method
keys
()
src/static/scripts/types/serviceworker.d.ts:184
↓ 15 callers
Function
nonDraggableElement
(img: HTMLElement)
src/static/scripts/utils/htmlStatics.ts:108
↓ 14 callers
Function
elementWithClassInTree
(elem: HTMLElement, className: string)
src/static/scripts/utils/htmlStuff.ts:99
↓ 14 callers
Function
pushLinkToHistoryComb
(pathAndQuery: string, pushType: PushType = PushType.pushAfter, postHint?: PostDoubleLink)
src/static/scripts/historyState/historyStateManager.ts:74
↓ 14 callers
Function
sleep
(ms: number)
src/static/scripts/utils/utils.ts:257
↓ 13 callers
Method
entries
()
src/static/scripts/types/serviceworker.d.ts:183
↓ 13 callers
Function
isObjectEmpty
(obj: {})
src/static/scripts/utils/utils.ts:207
↓ 12 callers
Function
deepClone
(object: T)
src/static/scripts/utils/utils.ts:211
↓ 12 callers
Function
escHTML
(unsafeHTML: string)
src/static/scripts/utils/htmlStatics.ts:85
↓ 12 callers
Method
finishWith
(elem: HTMLElement)
src/static/scripts/components/viewState/viewStateLoader/viewStateLoader.ts:23
↓ 11 callers
Function
extractQuery
(uri: string)
src/static/scripts/utils/utils.ts:242
↓ 11 callers
Function
onApiUsage
(endpoint: string, api: string, generalize = true, used: number|undefined = undefined, remaining: number|undef
src/static/scripts/api/redditApiUsageTracking.ts:6
↓ 11 callers
Method
text
()
src/static/scripts/types/serviceworker.d.ts:41
↓ 10 callers
Method
addWindowEventListener
(eventName: K | string, f: EventListener, options?: boolean | AddEventListenerOptions)
src/static/scripts/components/photon/photonBaseElement/photonBaseElement.ts:13
↓ 10 callers
Method
from
(element: HTMLElement, onFsEnterCallback?: () => void, onFsExitCallback?: () => void)
src/static/scripts/components/misc/animatedFullscreen/animatedFullscreen.ts:58
↓ 10 callers
Function
hasHTML
(elem: Element)
src/static/scripts/utils/utils.ts:321
↓ 10 callers
Method
remove
(user: UserData)
src/static/scripts/multiUser/userManagement.ts:82
↓ 10 callers
Function
timePassedSince
(time: number, includeAdverb = true, adverb = "ago", absAdverb = "at")
src/static/scripts/utils/utils.ts:94
↓ 9 callers
Function
clamp
(val: number, min: number, max: number)
src/static/scripts/utils/utils.ts:138
↓ 9 callers
Function
getLoadingIcon
(thickness: "1" | "3" = "3")
src/static/scripts/utils/htmlStatics.ts:100
↓ 9 callers
Method
hide
()
src/static/scripts/components/photon/fab/fab.ts:146
↓ 9 callers
Method
show
()
src/static/scripts/components/photon/fab/fab.ts:140
↓ 9 callers
Method
values
()
src/static/scripts/types/serviceworker.d.ts:185
↓ 8 callers
Method
close
()
src/static/scripts/types/serviceworker.d.ts:208
↓ 8 callers
Method
delete
(dropDownEntry: Ph_DropDownEntry)
src/static/scripts/components/comment/comment.ts:449
↓ 8 callers
Function
floorTo
(number: number, precision: number)
src/static/scripts/utils/utils.ts:223
↓ 8 callers
Method
isNextLineNewEntry
()
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:1337
↓ 8 callers
Function
makeTimeframeSectionEntries
(onSelect: DropDownCallback)
src/static/scripts/components/feed/universalFeed/sortingDropdownParams.ts:40
↓ 8 callers
Method
toHtmlString
()
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:94
↓ 7 callers
Method
beginElement
()
src/static/scripts/types/misc.ts:4
↓ 7 callers
Method
focus
()
src/static/scripts/types/serviceworker.d.ts:224
↓ 7 callers
Function
getConnection
()
src/serverScripts/analytics.ts:76
↓ 7 callers
Method
getCurrentTime
()
src/static/scripts/components/mediaViewer/videoPlayer/gifVideo/gifVideo.ts:50
↓ 7 callers
Method
getInfoButton
Returns a button element that will open/close a feed info; preferred way for creating a feed info
src/static/scripts/components/feed/feedInfo/feedInfoFactory.ts:15
↓ 7 callers
Method
getMaxTime
()
src/static/scripts/components/mediaViewer/videoPlayer/gifVideo/gifVideo.ts:58
↓ 7 callers
Function
isFullscreen
()
src/static/scripts/utils/utils.ts:495
↓ 7 callers
Method
parseChar
()
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:60
↓ 7 callers
Method
pause
()
src/static/scripts/components/mediaViewer/videoPlayer/videoAudio/videoAudio.ts:141
↓ 7 callers
Method
setLabel
(label: string)
src/static/scripts/components/link/feedLink/feedLink.ts:157
↓ 7 callers
Function
setVersion
(version)
scripts/changeVersion.mjs:21
↓ 7 callers
Function
trackGenericProperty
(key: string, value: string | number | boolean, data2: string)
src/static/scripts/api/photonApi.ts:81
↓ 7 callers
Method
updatePlaceholderHeight
(position: RemovedItemPlaceholderPosition)
src/static/scripts/components/feed/universalFeed/infinteScroller.ts:164
↓ 6 callers
Method
closeMenu
(closeAllPrevious)
src/static/scripts/components/misc/dropDown/dropDownArea/dropDownArea.ts:102
↓ 6 callers
Function
extractPath
(uri: string)
src/static/scripts/utils/utils.ts:236
↓ 6 callers
Method
getCurrentState
()
src/static/scripts/historyState/viewsStack.ts:180
↓ 6 callers
Method
getRoot
(elem: HTMLElement)
src/static/scripts/components/photon/fab/fab.ts:177
↓ 6 callers
Function
getSubredditIconUrl
(subData: SubredditInfoBase, useFallback = true)
src/static/scripts/utils/utils.ts:554
↓ 6 callers
Method
greaterThan
(version: VersionNumber)
src/static/scripts/utils/versionNumber.ts:20
↓ 6 callers
Method
hide
()
src/static/scripts/components/global/header/header.ts:164
↓ 6 callers
Function
isJsonEqual
(obj1: object, obj2: object)
src/static/scripts/utils/utils.ts:215
↓ 6 callers
Method
isNextLineStillIndented
()
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:1351
↓ 6 callers
Method
randomUrl
()
src/static/scripts/historyState/viewsStack.ts:234
↓ 6 callers
Function
replaceVersionAt
(index, newNumber, zeroAllAfterIndex = false)
scripts/changeVersion.mjs:75
↓ 6 callers
Function
setInStorage
(value: any, ...keyPath: string[])
src/static/scripts/multiUser/storageWrapper.ts:196
↓ 6 callers
Method
showImage
(key: any)
src/static/scripts/components/misc/switchableImage/switchableImage.ts:38
↓ 6 callers
Function
splitPathQuery
(pathAndQuery: string)
src/static/scripts/utils/utils.ts:122
↓ 6 callers
Function
throttle
(func: (...any) => any, wait: number, options: { leading?: boolean, trailing?: boolean } = { leading: true, tr
src/static/scripts/utils/utils.ts:150
↓ 5 callers
Function
$id
(id: string)
src/static/scripts/utils/htmlStatics.ts:8
↓ 5 callers
Method
changeCurrentUrl
Replaces the currently displayed url in the browser
src/static/scripts/historyState/viewsStack.ts:96
↓ 5 callers
Method
clearHideTimeout
()
src/static/scripts/components/misc/controlsBar/controlsBar.ts:182
↓ 5 callers
Method
countRowPipes
(row)
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:1134
↓ 5 callers
Method
ensureDataHasLoaded
()
src/static/scripts/multiUser/userManagement.ts:117
↓ 5 callers
Function
ensurePageLoaded
()
src/static/scripts/utils/utils.ts:576
↓ 5 callers
Function
escapeHtml
(string)
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:100
↓ 5 callers
Method
fromThingData
* Use this when using reddit api response data of post or comment * * @param thingData raw api response * @param prefix like "author" (for users
src/static/scripts/components/misc/flair/flair.ts:129
↓ 5 callers
Function
getAppId
()
src/static/scripts/auth/auth.ts:133
↓ 5 callers
Function
getFullscreenElement
()
src/static/scripts/utils/utils.ts:499
↓ 5 callers
Method
getPosition
()
src/static/scripts/historyState/viewsStack.ts:205
↓ 5 callers
Function
getUserIconUrl
(userData: RedditUserInfo)
src/static/scripts/utils/utils.ts:558
↓ 5 callers
Method
init
(initElements: MediaElement[])
src/static/scripts/components/mediaViewer/mediaViewer.ts:274
↓ 5 callers
Function
initiateLogin
(_skipOriginCheck = false)
src/static/scripts/auth/loginHandler.ts:9
↓ 5 callers
Function
isCommentDeleted
(commentData: RedditCommentData)
src/static/scripts/utils/utils.ts:651
↓ 5 callers
Function
isElementIn
(container: Element, checkElement: HTMLElement)
src/static/scripts/utils/htmlStuff.ts:104
↓ 5 callers
Method
isVisible
()
src/static/scripts/components/feed/universalFeed/infinteScroller.ts:97
↓ 5 callers
Method
load
()
src/static/scripts/utils/MultiManager.ts:17
↓ 5 callers
Method
make
Instantiates the P_Parser sub class
src/static/scripts/lib/markdownForReddit/markdown-for-reddit.js:22
↓ 5 callers
Method
makeSubredditGroup
(feedsData: (RedditApiObj | string)[], groupName: string, ...additionChildren: Element[])
src/static/scripts/components/global/userDropDown/userDropDown.ts:100
↓ 5 callers
Method
minimizeAll
(exclude: HTMLElement[] = [])
src/static/scripts/components/global/header/header.ts:178
next →
1–100 of 1,192, ranked by callers