MCPcopy Create free account

hub / github.com/catamphetamine/anychan / functions

Functions1,013 in github.com/catamphetamine/anychan

↓ 2 callersFunctionupdateAttachmentThumbnailMaxWidth
(posts: Post[], { firstNewCommentIndex = 0, attachmentThumbnailMaxWidth }: { firstNewCommentIndex?: number,
src/utility/post/updateAttachmentThumbnailMaxWidth.ts:16
↓ 2 callersMethodupdateThreads_
(subscribedThreadsToUpdate: SubscribedThread[], callback: (error?: Error) => void)
src/utility/SubscribedThreadsUpdater/SubscribedThreadsUpdater.ts:496
↓ 2 callersFunctionuseAttachmentThumbnailFlags
({ mode, comment, threadId }: { mode: Mode, comment: Comment, threadId: ThreadId })
src/components/Comment/useAttachmentThumbnailFlags.ts:3
↓ 2 callersFunctionuseCanGoBackFromThreadToChannel
()
src/components/useCanGoBackFromThreadToChannel.ts:9
↓ 2 callersFunctionuseChannelsExceptFavorite
()
src/components/useChannelsExceptFavorite.ts:6
↓ 2 callersFunctionuseGetCommentById
({ threads }: { threads: Thread[] })
src/pages/Channel/useGetCommentById.ts:9
↓ 2 callersFunctionuseGetCommentById
({ thread }: { thread: Thread })
src/pages/Thread/useGetCommentById.ts:26
↓ 2 callersFunctionuseHide
({ channelId, threadId, comment, // getHidden: getHidden_, // setHidden: setHidden_, // state, // setSt
src/components/Comment/useHide.ts:9
↓ 2 callersFunctionuseOnChannelLinkClick
({ channelId }: { channelId: ChannelId })
src/components/useOnChannelLinkClick.ts:8
↓ 2 callersFunctionuseOnThreadClick
()
src/components/useOnThreadClick.ts:15
↓ 2 callersFunctionuseProxyUrl
()
src/hooks/useProxyUrl.ts:6
↓ 2 callersFunctionuseReport
({ channelId, threadId, commentId }: { channelId: ChannelId, threadId: ThreadId, commentId: CommentId })
src/components/Comment/useReport.ts:12
↓ 2 callersFunctionuseSubmitWithOrWithoutCaptcha
({ channel, channelId, threadId }: { channel?: Channel, channelId?: ChannelId, threadId?: ThreadId })
src/hooks/useSubmitWithOrWithoutCaptcha.ts:16
↓ 2 callersFunctionuseTransformCommentListItemInitialState
({ channelLayout }: { channelLayout: ChannelLayout })
src/pages/Channel/useTransformCommentListItemInitialState.ts:7
↓ 2 callersFunctionuseUnreadCommentWatcher
({ channel, thread }: { channel?: Channel, thread?: Thread } = {})
src/pages/Thread/useUnreadCommentWatcher.ts:10
↓ 2 callersFunctionvalidateDataSourceShortIdUniqueness
(dataSources: DataSourceAlike[])
src/utility/dataSource/validateDataSourceShortIdUniqueness.ts:6
↓ 2 callersFunctionvalidateSettings
(settings: UserSettingsJson)
src/utility/settings/UserSettings.ts:130
↓ 1 callersMethod_migrateFromVersion
(version: number)
src/UserData/UserData.ts:277
↓ 1 callersFunctionactualDomainMatchesDomain
({ domain, domains }: Parameters)
src/utility/matchesDomain.ts:6
↓ 1 callersFunctionaddCommentTextFunctions
(comment: Comment, { messages }: { messages: Messages })
src/api/utility/addCommentTextFunctions.ts:6
↓ 1 callersFunctionaddCommentVote
( comment: Partial<Comment>, // I dunno why are there `true` and `false` here. votes: Record<string, -1 | 1
src/api/utility/addCommentProps.ts:279
↓ 1 callersFunctionaddCustomCodeToGetThreadCallback
( callback: Callback, channelId: ChannelId, threadId: ThreadId, { timer, ...parameters }: GetThreadParamet
src/utility/thread/getThread.ts:118
↓ 1 callersFunctionaddDataSourceManifestUrls
(dataSources: DataSourceWithoutResources[])
src/dataSourcesAddManifestUrls.ts:3
↓ 1 callersFunctionaddImageboardArgumentToFunction
(func: Function, functionName: string)
src/utility/dataSource/addImageboardDataSourceApiFunctions.ts:132
↓ 1 callersFunctionaddImageboardDataSourceApiFunctions
(dataSource: Partial<DataSource>)
src/utility/dataSource/addImageboardDataSourceApiFunctions.ts:23
↓ 1 callersFunctionaddMethod
(op: UserDataOperation)
src/UserData/UserData.createCollectionDataAccessMethods.ts:33
↓ 1 callersFunctionaddOrUpdateBackground
(background: Background, type: 'dark' | 'light', { userSettings }: { userSettings: UserSettings })
src/utility/background.ts:71
↓ 1 callersFunctionaddOrUpdateTheme
(theme: Theme, { userSettings }: { userSettings: UserSettings })
src/utility/themes.ts:33
↓ 1 callersFunctionaddParseContent
(comment: Partial<Comment>, { mode, channelLayout, channelId, threadId, grammarCorrection, censoredWords
src/api/utility/addParseContent.ts:60
↓ 1 callersFunctionaddRootCommentProps
(thread: ThreadFromDataSource)
src/api/utility/addCommentProps.ts:220
↓ 1 callersFunctionaddSpacing
(rightSideElements: Array<{ key: keyof typeof RIGHT_SIDE_ELEMENT, element: ReactElement }>)
src/components/Comment/CommentFooter.tsx:293
↓ 1 callersFunctionaddThreadData
(threadsData: Record<string, any>, threadId: Thread['id'], threadData: any)
src/UserData/fixThreadCommentData.ts:175
↓ 1 callersFunctionaddThreadTitle
(thread: Partial<Thread>, { locale, grammarCorrection, censoredWords }: { locale: UserSettingsJson['locale
src/api/utility/addThreadProps.ts:47
↓ 1 callersFunctionagingFactor
(age: number)
src/utility/subscribedThread/sortSubscribedThreads.ts:267
↓ 1 callersMethodanychan_activateProgressiveWebApp
(parameters: { manifestUrl: string })
src/types/global.d.ts:61
↓ 1 callersFunctionappendReplyTextPrefixToInputField
(replyTextPrefix: string, { replyForm, setReplyFormInitialText, replyFormInputFieldName }: { replyForm: Re
src/components/Comment/useReply.ts:230
↓ 1 callersFunctionapplyBackgroundDark
({ settings, dispatch }: { settings: UserSettingsJson, dispatch: Dispatch })
src/utility/settings/applySettings.ts:57
↓ 1 callersFunctionapplyBackgroundLight
({ settings, dispatch }: { settings: UserSettingsJson, dispatch: Dispatch })
src/utility/settings/applySettings.ts:61
↓ 1 callersFunctionapplyBackground_
(backgroundObjectOrBackgroundId: Background | Background['id'] | undefined, type: 'dark' | 'light', { userSett
src/utility/background.ts:95
↓ 1 callersFunctioncanGoBackToThreadFromChannel
({ channelId, threadId, commentId }: { channelId: ChannelId, threadId: ThreadId, commentId: CommentId })
src/components/canGoBackToThreadFromChannel.ts:14
↓ 1 callersFunctioncapitalize
(string: string)
src/UserData/getMethodName.ts:24
↓ 1 callersFunctioncleanUpDeprecatedData
({ dataSource, multiDataSource }: { dataSource: DataSource, multiDataSource: boolean })
src/utility/cleanUpDeprecatedData.ts:5
↓ 1 callersFunctionclearChannelsCache
({ dataSource, multiDataSource }: { dataSource: DataSource, multiDataSource: boolean })
src/api/cached/cache.ts:38
↓ 1 callersFunctioncompareSubscribedThreads
(a: SubscribedThread, b: SubscribedThread, { userData }: { userData: UserData })
src/utility/subscribedThread/sortSubscribedThreads.ts:59
↓ 1 callersFunctioncompareSubscribedThreadsByRating
* Compares two threads by "rating". * @param {SubscribedThreadRecord} a * @param {SubscribedThreadRecord} b * @return {number} Returns a "negativ
src/utility/subscribedThread/sortSubscribedThreads.ts:70
↓ 1 callersFunctioncompareSubscribedThreadsNoNewComments
(a: SubscribedThread, b: SubscribedThread)
src/utility/subscribedThread/sortSubscribedThreads.ts:149
↓ 1 callersFunctionconvertAttachmentUrlsToAbsolute
(attachment: Attachment, { dataSource }: { dataSource: DataSource })
src/api/utility/convertAttachmentUrlsToAbsolute.ts:6
↓ 1 callersFunctionconvertAudioUrlsToAbsolute
(audio: Audio, { toAbsoluteUrl }: { toAbsoluteUrl: (url: string) => string })
src/api/utility/convertAttachmentUrlsToAbsolute.ts:48
↓ 1 callersFunctionconvertFileUrlsToAbsolute
(file: File, { toAbsoluteUrl }: { toAbsoluteUrl: (url: string) => string })
src/api/utility/convertAttachmentUrlsToAbsolute.ts:57
↓ 1 callersFunctionconvertImageToJpgFile
(image: HTMLImageElement, { filename = 'image.jpg', // Quality is set to 95% by default so that users don't
src/utility/convertImageToJpgFile.ts:9
↓ 1 callersFunctionconvertPngToJpg
( file: File, options?: Parameters<typeof convertImageToJpgFile>[1] )
src/utility/convertPngToJpg.ts:9
↓ 1 callersFunctionconvertVideoUrlsToAbsolute
(video: Video, { toAbsoluteUrl }: { toAbsoluteUrl: (url: string) => string })
src/api/utility/convertAttachmentUrlsToAbsolute.ts:39
↓ 1 callersFunctioncorrectGrammar
(text: string, { language }: { language: string })
src/api/utility/correctGrammar.ts:15
↓ 1 callersFunctioncorrectGrammarEn
(text)
src/api/utility/correctGrammar.test.js:3
↓ 1 callersFunctioncountCharacterOccurrences
* Counts occurrences of a character in a string. * Doesn't support advanced UTF-8 symbols * because they're longer than a single byte. * @param {s
src/api/utility/replaceQuotes.ts:65
↓ 1 callersFunctioncreate
()
src/utility/subscribedThread/doesSubscribedThreadHaveNewComments.test.js:7
↓ 1 callersMethodcreate
(callback: (hasAquiredLock: boolean) => void)
src/utility/SubscribedThreadsUpdater/SubscribedThreadsUpdater.StatusRecord.ts:117
↓ 1 callersFunctioncreateAndInitUserData
({ dataSource, multiDataSource, userSettings, dispatch }: { dataSource: DataSource, multiDataSource: boo
src/utility/createAndInitUserData.ts:7
↓ 1 callersFunctioncreateAndInitUserSettings
({ dataSource, multiDataSource, dispatch }: { dataSource: DataSource, multiDataSource: boolean, dispatch
src/utility/createAndInitUserSettings.ts:7
↓ 1 callersFunctioncreateComment
({ dataSource, userSettings, ...rest }: { dataSource: DataSource, userSettings: UserSettings } & Omit<Cre
src/api/createComment.ts:5
↓ 1 callersFunctioncreateCommentRecord
(channelId: Channel['id'], threadId: Thread['id'], commentId: Comment['id'])
src/UserData/fixThreadCommentData.ts:33
↓ 1 callersFunctioncreateDefaultThemes
()
src/utility/getDefaultThemes.ts:26
↓ 1 callersFunctioncreateGetCommentByIdForLatestComments
(thread: Thread)
src/components/CommentsList.tsx:126
↓ 1 callersMethodcreateIntersectionHandler
({ dispatch, userData, channel, getThread, }: { dispatch: Dispatch, userData: UserData, channel
src/utility/comment/UnreadCommentWatcher.ts:63
↓ 1 callersFunctioncreateLoadContextGetterFunction
({ dataSource, dataSourceAlias, multiDataSource, originalDomain }: { dataSource: DataSource, dataSourceA
src/loadContext.ts:14
↓ 1 callersFunctioncreateMethod
(op: UserDataOperation, { collection, operations, prefix, storage, log, getCollectionDataValidationFunct
src/UserData/UserData.createCollectionDataAccessMethod.ts:27
↓ 1 callersFunctioncreateSubscribedThreadStateRecordForIncrementalUpdate
(thread: Thread, { prevStats, refreshedAt, userData }: { prevStats: SubscribedThreadState, refreshedAt: D
src/utility/subscribedThread/createSubscribedThreadStateRecord.ts:102
↓ 1 callersFunctioncreateSubscribedThreadStateRecordStub
(subscribedThread: SubscribedThread)
src/utility/subscribedThread/createSubscribedThreadStateRecord.ts:58
↓ 1 callersFunctioncreateThread
({ dataSource, userSettings, ...rest }: { dataSource: DataSource, userSettings: UserSettings } & Omit<Cre
src/api/createThread.ts:5
↓ 1 callersFunctioncreateThreadRecord
(channelId: Channel['id'], threadId: Thread['id'])
src/UserData/fixThreadCommentData.ts:30
↓ 1 callersFunctiondebounce
* Same as `lodash`'s `debounce()` for functions with no arguments. * @param {function} func * @param {number} interval * @return {function}
src/utility/comment/getCommentLengthLimit.ts:56
↓ 1 callersFunctiondecodeData
(data: any, collection: UserDataCollection)
src/UserData/encodeDecode.ts:6
↓ 1 callersFunctionencodeData
(data: any, collection: UserDataCollection)
src/UserData/encodeDecode.ts:18
↓ 1 callersFunctionencodeTimestamp
( timestamp: number, { granularity = 'seconds' }: { granularity?: keyof typeof GRANULARITY } = {} )
src/UserData/compression.ts:10
↓ 1 callersFunctionenterDarkMode
(value: boolean)
src/components/SidebarToolbar/getDarkModeMenuItem.ts:36
↓ 1 callersFunctionenterDarkMode
(value: boolean)
src/utility/settings/applySettings.ts:67
↓ 1 callersFunctionfetchAnnouncement
(url: string)
src/utility/announcement.ts:140
↓ 1 callersFunctionfindChannels
({ getAllChannels, search, maxCount, locale, originalDomain, dataSource, userSettings }: { getAllChann
src/api/findChannels.ts:8
↓ 1 callersFunctionfindChannelsCached
({ dataSource, multiDataSource, forceRefresh, ...rest }: FindChannelsCachedParameters)
src/api/cached/findChannels.ts:18
↓ 1 callersFunctionfindChannels_
(query: string)
src/components/EditFavoriteChannels.tsx:102
↓ 1 callersFunctionfindItemsSync
({ searchQuery, onResults, items, getItemTextLowerCase, fromIndex = 0, startedAt = Date.now(), results
src/components/SearchInput.tsx:403
↓ 1 callersFunctionfindParentSidebarElement
(element: Element)
src/components/SidebarSections/ChannelThreadsSidebarSection.tsx:144
↓ 1 callersFunctionfixSubscribedThreadsIndex
({ userData, log, subscribedThreadIdsByChannel }: { userData: UserData, log: (...args: any[]) => void, s
src/UserData/fixSubscribedThreadsData.ts:61
↓ 1 callersFunctionfixSubscribedThreadsStats
({ userData, log, subscribedThreadIdsByChannel, getSubscribedThread }: { userData: UserData, log: (...ar
src/UserData/fixSubscribedThreadsData.ts:114
↓ 1 callersFunctionget
( id: CacheId, get: () => Promise<Result>, dataSource: DataSource, multiDataSource: boolean, forceRefresh
src/api/cached/cache.ts:11
↓ 1 callersMethodget
()
src/utility/SubscribedThreadsUpdater/SubscribedThreadsUpdater.StatusRecord.ts:97
↓ 1 callersFunctiongetAbsoluteUrl
(url: string, domain: string)
src/api/utility/getAbsoluteUrl.ts:4
↓ 1 callersFunctiongetAdditionalBackgroundsFromConfiguration
(type: 'dark' | 'light')
src/utility/background.ts:11
↓ 1 callersFunctiongetApiWithClonedInputAndOutput
(api: DataSource['api'])
dataSources/non-imageboards/example/api/utility/getApiWithClonedInputAndOutput.ts:17
↓ 1 callersFunctiongetAttachmentForFile
(file: File | Blob)
src/utility/attachment/getAttachmentForFile.ts:12
↓ 1 callersFunctiongetAttachmentThumbnailMaxWidth
(post: Post, maxWidthSoFar: number | undefined)
src/utility/post/updateAttachmentThumbnailMaxWidth.ts:65
↓ 1 callersFunctiongetAudioFileInfoFromId3Tags
(file: File | Blob)
src/utility/attachment/getAudioFileInfoFromId3Tags.ts:3
↓ 1 callersFunctiongetBackground
(id: Background['id'], type: 'dark' | 'light', { userSettings }: { userSettings: UserSettings })
src/utility/background.ts:59
↓ 1 callersFunctiongetBackgroundCss
(background: Background, type: 'dark' | 'light')
src/utility/background.ts:167
↓ 1 callersFunctiongetCaptchaSubmitFunction
(id: string)
src/utility/captcha/captchaSubmitFunction.ts:3
↓ 1 callersFunctiongetCaptchaSubmitId
(captcha: Captcha | CaptchaFrame)
src/utility/captcha/showCaptcha.ts:32
↓ 1 callersFunctiongetChannelLink
({ channelUrlPattern, pathname }: { channelUrlPattern: string, pathname: string })
src/utility/transformDataSourceLink.ts:59
↓ 1 callersFunctiongetChannelUrlPattern
( dataSource: DataSource, { channelContainsExplicitContent }: { channelContainsExplicitContent: boolean } )
src/utility/dataSource/getChannelUrlPattern.ts:5
↓ 1 callersFunctiongetChannels
({ locale, originalDomain, dataSource, userSettings }: { dataSource: DataSource, userSettings: UserSetti
src/api/getChannels.ts:8
↓ 1 callersFunctiongetChannelsStateProperties
( channels: Channel[], { dataSource }: { dataSource: DataSource } )
src/utility/channel/getChannelsStateProperties.ts:12
← previousnext →301–400 of 1,013, ranked by callers