516 documented functions across 5 subsystems · Back to docs
| Section | Function | Signature | Returns | Description |
|---|---|---|---|---|
| I2PSnark | injectCss | () | → void> | Injects the confirmation dialog CSS styles into the document head. Creates st... |
| I2PSnark | handleInputClick async | (clickTarget, event) | → Promise<void> | Handles clicks on interactive UI elements (toggle views, tabs, navigation, fi... |
| I2PSnark | showConfirmationDialog async | (targetElement, message, inputName, inputValue, inputAction) | → Promise<boolean> | Creates and displays a modal confirmation dialog with the given message. Supp... |
| I2PSnark | scrollToTop | () | → void> | Scrolls both the window and parent window (if iframed) to the top to ensure t... |
| I2PSnark | captureKeyDown | (event) | → void> | Handles keyboard events for the confirmation dialog. Enter triggers the confi... |
| I2PSnark | removeDialog | () | → void> | Removes the confirmation dialog and overlay from the DOM, cleans up keyboard ... |
| I2PSnark | handleResize | () | → void> | Repositions the confirmation dialog vertically centered in the viewport, acco... |
| I2PSnark | convertTooltip | (selector) | → void> | Finds all elements matching the selector that have a title attribute, convert... |
| I2PSnark | queueConvert | () | → void> | Schedules a single tooltip conversion per animation frame, coalescing the obs... |
| I2PSnark | scheduleBadgeUpdate | () | → void> | Coalesces torrent-count badge updates triggered by DOM mutations into a singl... |
| I2PSnark | ensureObserver | () | → void> | Creates the badge-count MutationObserver once and attaches it to the torrents... |
| I2PSnark | showBadge async | () | → Promise<void> | Updates the filter bar badge display based on the current URL filter/search p... |
| I2PSnark | countSnarks | () | → number> | Counts the number of visible torrent rows (volatile, non-peerinfo rows) in th... |
| I2PSnark | updateURLs | () | → void> | Sets up click handlers on sort icon elements to save the current query string... |
| I2PSnark | setQuery | () | → void> | Saves the current URL query string to localStorage for persistence across pag... |
| I2PSnark | filterNav async | () | → Promise<void> | Sets up the filter bar click handler. Intercepts clicks on filter elements, c... |
| I2PSnark | refreshGraph | () | → void> | Fetches the I2PSnark bandwidth graph image if the refresh interval has elapse... |
| I2PSnark | clearIntervalAndAbort | () | → void> | Clears the graph refresh interval timer. Called on page unload to prevent mem... |
| I2PSnark | Lightbox class | () | | Provides a fullscreen image viewing experience with navigation controls, slid... |
| I2PSnark | Lightbox class | () | | Initializes the Lightbox instance. Sets up internal state for image tracking,... |
| I2PSnark | initialize | () | → void> | Creates the lightbox container element and attaches it to the document body. |
| I2PSnark | createEl | (tag, id) | → HTMLElement> | Creates a new DOM element with the specified tag and id. |
| I2PSnark | createButton | (text, id, callback) | → HTMLSpanElement> | Creates a clickable button element with text content and a click callback. St... |
| I2PSnark | createControls | () | → HTMLElement> | Creates the slideshow control buttons (prev, next, play, pause) and appends t... |
| I2PSnark | load | ([opt], [opt.preload], [opt.maxImgSize]) | → void> | Loads thumbnail elements from the document, assigns index data attributes, at... |
| I2PSnark | setOpt | ([opt]) | → void> | Sets lightbox options by merging provided options with defaults, and attaches... |
| I2PSnark | addThumbnailClickHandler | (thumbnail) | → void> | Attaches a click handler to a thumbnail that opens the lightbox with the appr... |
| I2PSnark | openBox | (el) | → void> | Opens the lightbox for the given element. Creates a new Image, sets its sourc... |
| I2PSnark | onImageLoad | () | → void> | Called when the lightbox image finishes loading. Marks the lightbox as open, ... |
| I2PSnark | toggleControlButtons | () | → void> | Shows the navigation (prev/next) buttons and toggles play/pause button visibi... |
| I2PSnark | preload | () | → void> | Preloads the next and previous images in the current group to improve navigat... |
| I2PSnark | resize | () | → void> | Constrains the current lightbox image with max-width/max-height so the browse... |
| I2PSnark | getMaxSizing | () | → Object> | Computes the max-width/max-height style object that fits images within the vi... |
| I2PSnark | close | () | → void> | Closes the lightbox: aborts any transition in progress, removes the image fro... |
| I2PSnark | adjustPosition | () | → void> | Adjusts the lightbox positioning for iframe or standalone mode. In iframe mod... |
| I2PSnark | resetParentStyles | () | → void> | Restores parent document styles when the lightbox is closed in iframe mode. R... |
| I2PSnark | cleanupObserversAndListeners | () | → void> | Disconnects the ResizeObserver if active and nullifies the reference. |
| I2PSnark | play | () | → void> | Starts the slideshow by setting an interval that advances to the next image e... |
| I2PSnark | pause | () | → void> | Pauses the slideshow by clearing the interval and resetting the interval ID. ... |
| I2PSnark | resetSlideshowTimer | () | → void> | Restarts the slideshow interval from zero when the timer is running, so a man... |
| I2PSnark | togglePlayPauseButtons | ([isPaused]) | → void> | Toggles the active state of play, pause, prev, and next buttons based on whet... |
| I2PSnark | addEventListeners | () | → void> | Registers all event listeners, currently only the resize listener. |
| I2PSnark | addResizeEventListener | () | → void> | Attaches a passive resize listener to the window that resizes and repositions... |
| I2PSnark | next | () | → void> | Advances to the next image in the current group, crossfading between the curr... |
| I2PSnark | prev | () | → void> | Goes to the previous image in the current group, crossfading between the curr... |
| I2PSnark | transitionTo | (thumb) | → void> | Starts a crossfade transition to the given thumbnail image. Cancels any trans... |
| I2PSnark | cancelTransition | () | → void> | Aborts any transition in progress: clears the settle timer and removes the im... |
| I2PSnark | runTransition | (oldImg, newImg) | → void> | Performs the image swap as a pure opacity cross-fade. Both images carry the s... |
| I2PSnark | settleDone | (newImg, oldImg) | → void> | Removes the transition styling once the cross-fade finishes and drops the out... |
| I2PSnark | isIframed | () | → boolean> | Checks whether the page is running inside an iframe by inspecting the "i... |
| I2PSnark | setupResizeObserver | () | → void> | Creates a ResizeObserver on the document body (or parent body in iframe mode)... |
| I2PSnark | repositionControls | () | → void> | Vertically centers the prev and next navigation buttons relative to the viewp... |
| I2PSnark | pageNav | () | → void> | Initializes the AJAX pagination listener. Adds a delegated click handler on t... |
| I2PSnark | pagenavListener | (event) | → void> | Delegated click listener for pagination links. Prevents default navigation, e... |
| I2PSnark | refreshWithSearch async | (value) | → Promise<void> | Refreshes the torrent list with the given search term applied, aborting any i... |
| I2PSnark | initRealtimeSearch | () | → void> | Wires up the search input listener, form submit interception, and the clear-s... |
| I2PSnark | extractRefreshPayload | (doc) | → Object>|string>|Array<string>|string>|boolean>|string>|string>|string>|string>|Array<string>|Array<string>|Array<string>|Array<string> | Extracts the containers the refresh pipeline updates: torrent table rows, fil... |
| I2PSnark | extractTunnelCounts | (text) | → Object> | Extracts the snark inbound and outbound tunnel counts from the raw tunnel con... |
| I2PSnark | requestAnimationFramePromise | (callback) | → Promise<void> | Wraps requestAnimationFrame in a Promise, executing the callback within the a... |
| I2PSnark | getRefreshInterval async | () | → Promise<number> | Reads the refresh interval from the global snarkRefreshDelay variable, localS... |
| I2PSnark | getURL async | () | → Promise<string> | Constructs the AJAX refresh URL by replacing the "/i2psnark/" path ... |
| I2PSnark | setActiveSearch | (value) | → void> | The active search term appended to AJAX refresh URLs so refreshes keep the re... |
| I2PSnark | setLinks async | ([query]) | → Promise<void> | Updates the main navigation link href to point to the I2PSnark root, optional... |
| I2PSnark | initHandlers async | () | → Promise<void> | Initializes sub-module handlers including sort listeners, debug toggle, page ... |
| I2PSnark | initWorker | () | → void> | Constructs the snarkWork worker once. Falls back to direct fetching when Web ... |
| I2PSnark | workerFailed | () | → void> | Marks the worker as unusable and rejects all pending requests so callers fall... |
| I2PSnark | fetchViaWorker | (url, signal, [type], [timeout]) | → Promise<Object> | Fetches the URL through the worker, correlating the response by requestId. Re... |
| I2PSnark | fetchTunnelCounts | () | → Promise<?Object> | Fetches the snark tunnel counts through the worker, which downloads and parse... |
| I2PSnark | fetchRefreshPayload async | (url, [forceFetch], [signal]) | → Promise<Object> | Fetches the refresh payload for the given URL, preferring the worker so the n... |
| I2PSnark | fetchDirect async | (url, signal) | → Promise<string> | Fetches the URL on the main thread and returns the response text. Used as the... |
| I2PSnark | cleanupCache | () | → void> | Identifies and removes expired cache entries older than cacheDuration. |
| I2PSnark | removeStaleCacheKeys | () | → void> | Removes all keys tracked in staleCacheKeys from the main cache, then clears t... |
| I2PSnark | doRefresh async | ([options], [options.url], [options.forceFetch], [options.signal]) | → Promise<void> | Main refresh entry point. Fetches the AJAX HTML document for the given URL, r... |
| I2PSnark | refreshTorrents async | ([payload]) | → Promise<void> | Core refresh function that updates the I2PSnark UI. Detects the current view ... |
| I2PSnark | morphTorrentsBody | (newTbodyHTML) | → void> | Morphs the live torrent tbody to match the response rows, diffing by row key ... |
| I2PSnark | refreshAll async | () | → Promise<void> | Performs a full refresh of the torrent table from the payload, morphing the t... |
| I2PSnark | updateVolatile async | () | → Promise<void> | Performs an incremental update of the torrent table from the payload. Morphs ... |
| I2PSnark | updateFiles async | () | → Promise<void> | Updates file listing information by comparing and refreshing incomplete file ... |
| I2PSnark | refreshHeaderAndFooter async | () | → Promise<void> | Refreshes the header and footer table header cells from the payload. Also adj... |
| I2PSnark | refreshScreenLog async | ([callback], [forceFetch]) | → Promise<void> | Fetches and updates the screen log (#messages) element. Uses a cache with tri... |
| I2PSnark | convertEncodedSpaces | () | → void> | Replaces URL-encoded spaces (%20) with regular spaces in screen log message t... |
| I2PSnark | replaceEncodedSpaces | (node) | → void> | Recursively traverses DOM nodes, replacing %20 with spaces in text nodes. |
| I2PSnark | waitForIframeLoad | (iframe) | → Promise<void> | Returns a promise that resolves when the processForm iframe next fires load, ... |
| I2PSnark | invalidateCache | () | → void> | Clears all cached fetch payloads so the next refresh fetches fresh data. Call... |
| I2PSnark | markStartingRows | () | → void> | Adds a indicator to the action cell of rows that currently have no action but... |
| I2PSnark | refreshOnSubmit | () | → void> | Attaches form submission handlers that refresh the torrent display and screen... |
| I2PSnark | initSnarkRefresh async | () | → Promise<void> | Initializes the I2PSnark refresh system. Sets up periodic refresh intervals, ... |
| I2PSnark | stopSnarkRefresh | () | → void> | Clears the main torrent refresh interval. Called when the document becomes hi... |
| I2PSnark | checkIfUp async | ([minDelay]) | → Promise<void> | Periodically checks server connectivity by performing a HEAD request. Removes... |
| I2PSnark | preloadImage | (src) | → void> | Preloads an image into the browser HTTP cache by creating an Image object and... |
| I2PSnark | isDown | () | → void> | Creates and displays an offline overlay with a loading spinner and chimp imag... |
| I2PSnark | setFilterQuery | () | → void> | Registers click listeners on the navbar and cancel-search elements. When clic... |
| I2PSnark | updateHref | (element) | → void> | Reads the current filter from the URL or localStorage and updates the element... |
| I2PSnark | handleTorrentNotify async | (event, notificationElement, inputElement, form) | → Promise<void> | Handles torrent form submission events. Prevents default form behavior, submi... |
| I2PSnark | showNotification | (notificationElement, inputElement, displayText) | → void> | Displays a notification message in the given element. Clears any existing hid... |
| I2PSnark | hideAlert | (notificationElement) | → void> | Hides a notification element by setting its hidden attribute. Uses requestAni... |
| I2PSnark | submitForm async | (form) | → Promise<void> | Submits a form via fetch using FormData, preserving the form's method and act... |
| I2PSnark | getLastMessage | () | → string> | Extracts the latest message text from the screen log's first message element.... |
| I2PSnark | initSnarkAlert | () | → void> | Initializes the inline notification system on DOMContentLoaded. Registers sub... |
| I2PSnark | snarkSort | () | → void> | Initializes the sort listener on the I2PSnark torrent table header. Adds a de... |
| I2PSnark | sortListener | (event) | → void> | Handles click events on sort column links. Prevents default navigation, const... |
| I2PSnark | handleFetch async | (requestId, url) | → Promise<void> | Fetches the URL, streaming the response body into a string, parses it, and po... |
| I2PSnark | handleTunnelCounts async | (requestId) | → Promise<void> | Fetches the tunnel configuration page and posts the extracted snark tunnel co... |
| I2PSnark | loadCSS | (href) | → void> | Dynamically loads a CSS stylesheet by inserting a element before the #snarkTh... |
| I2PSnark | createTextViewer | () | → Object> | Creates the text viewer DOM structure (wrapper, content, filename elements) i... |
| I2PSnark | displayWithLineNumbers | (text) | → string> | Converts plain text into an ordered list with each line as a list item, provi... |
| I2PSnark | displayText | (link, fileName, fileExt, linkHref) | → void> | Fetches and displays the content of a text file in the viewer. Uses the respo... |
| I2PSnark | resetScrollPosition | () | → void> | Resets the text view content scroll position to the top. Retries after a shor... |
| I2PSnark | preventScroll | (elements, prevent) | → void> | Adds or removes scroll prevention on the given elements by toggling overflow:... |
| I2PSnark | renderContent | (fileName, fileExt, data) | → void> | Renders fetched text content into the viewer. Applies pre-formatted styling f... |
| I2PSnark | addListeners | () | → void> | Registers a delegated click handler that opens the text viewer for file links... |
| I2PSnark | saveScroll | () | → void> | Records the current scroll offsets of this window and, when embedded, the par... |
| I2PSnark | restoreScroll | () | → void> | Smoothly returns this window and, when embedded, the parent window to the off... |
| I2PSnark | runAfterLayout | (callback) | → void> | Runs the given callback after the layout and, when embedded, the parent ifram... |
| I2PSnark | toggleSection | (event) | → void> | Handles expansion and collapse of the add and create torrent sections. When e... |
| I2PSnark | toggleConfig | (table, title) | → void> | Toggles the visibility of a configuration table. When shown, adds the "e... |
| I2PSnark | scrollToElement | (element, [windowObj]) | → void> | Smoothly scrolls the given element into view within the specified window cont... |
| I2PSnark | toggleDebug | () | → void> | Initializes the debug toggle listener. Registers a delegated click handler on... |
| I2PSnark | debugListener | (event) | → void> | Delegated click listener that toggles the "debug" class on the docu... |
| I2PSnark | initLinkToggler | () | → void> | Initializes the link toggling system. Sets up event listeners for the toggle ... |
| I2PSnark | scrollToTop async | (timeout) | → Promise<void> | Scrolls to the top of the window (and parent window if iframed), waits for th... |
| I2PSnark | setLinkMode | () | → void> | Applies the current link toggle configuration to the UI by setting body class... |
| I2PSnark | doToggle | () | → void> | Toggles between magnet and link display modes, persists the choice to localSt... |
| I2PSnark | showToast | (msg) | → void> | Displays a toast notification with the given message, auto-dismisses after 3.... |
| I2PSnark | copyMagnetHandler | (event) | → void> | Handles click events on .copyMagnet elements. Extracts the magnet link from t... |
| I2PSnark | copyToClipboard async | (text) | → Promise<void> | Copies the given text to the system clipboard using the Clipboard API. Silent... |
| I2PSnark | initToggleLog | () | → void> | Initializes the screen log toggle functionality. Creates expand/shrink button... |
| I2PSnark | clean | () | → void> | Removes existing expand/shrink CSS classes and button elements to prepare for... |
| I2PSnark | toggleVaryTunnelLength | (checkboxId, string) | → void> | Registers a change listener on the specified checkbox that toggles the tunnel... |
| I2PSnark | fetchTunnelData async | ([url], [timeout]) | → Promise<?Object> | Fetches the I2P tunnel configuration page and extracts the snark inbound and ... |
| I2PSnark | getSnarkTunnelCount async | ([interval]) | → Promise<?Object> | Returns cached tunnel count data if within the specified interval, otherwise ... |
| I2PSnark | updateTunnelCounts | (result) | → void> | Updates the UI badges for inbound and outbound tunnel counts by injecting CSS... |
| I2PSnark | createStyleTag | () | → HTMLStyleElement> | Creates and appends a element with id "tc" to the document head. Us... |
| I2PTunnel | init | () | → void> | Initializes delete button click handlers on DOM ready. Finds all elements wit... |
| I2PTunnel | addClickHandler | (elem) | → void> | Attaches a click event listener that shows a confirmation dialog. If the user... |
| I2PTunnel | updateElementContent | (element, responseElement) | → void> | Updates element content if it differs from the response element. |
| I2PTunnel | refreshTunnelStatus async | () | → Promise<void> | Fetches the current page and updates tunnel status information. On success, c... |
| I2PTunnel | handleDownState | () | → void> | Displays the 'router is down' overlay and schedules a re-check. Creates a ful... |
| I2PTunnel | countServices | () | → void> | Counts tunnel services by status and updates the UI count displays. Iterates ... |
| I2PTunnel | setStatusClass | (parentTr, status) | → void> | Sets the status class on a table row element, removing other status classes. |
| I2PTunnel | updateCount | (element, selector, status) | → void> | Updates the count display for a given selector and status. |
| I2PTunnel | updateVolatile | (responseDoc) | → void> | Updates volatile tunnel property elements from the response document. If elem... |
| I2PTunnel | updateLog | (responseDoc) | → void> | Updates the tunnel messages log from the response document. If messages eleme... |
| I2PTunnel | refreshPanels | (responseDoc) | → void> | Refreshes server and client tunnel panels from the response document. |
| I2PTunnel | refreshAll | (responseDoc) | → void> | Performs a full page content refresh from the response document. Updates the ... |
| I2PTunnel | reloadPage | () | → void> | Forces a hard reload of the current page, bypassing cache. |
| I2PTunnel | updateNonceLinks | (responseDoc) | → void> | Updates nonce values in all action forms from the response document. Parses n... |
| I2PTunnel | bindToggle | () | → void> | Binds the toggle info click handler if not already attached. Prevents duplica... |
| I2PTunnel | refreshIndex | () | → void> | Main refresh cycle function called on interval. Refreshes tunnel status and e... |
| I2PTunnel | initTunnelControl | () | → void> | Initializes tunnel control click handlers for start/stop/restart actions. Att... |
| I2PTunnel | tunnelControl async | (form, action) | → Promise<void> | Executes a tunnel control action via POST and updates the UI. |
| I2PTunnel | resizeIframe | () | → void> | Resizes the parent iframe to fit content by posting a resize message. Only ex... |
| I2PTunnel | preloadImage | (url) | → void> | Preloads an image into browser cache for faster subsequent display. |
| I2PTunnel | toggleElement | () | → void> | Toggles the throttler panel visibility and persists state. |
| I2PTunnel | initToggleInfo | () | → void> | Toggles the display of tunnel info rows between collapsed and expanded states... |
| Console | advConfigInit | () | → void> | Initializes the advanced configuration interface by converting the textarea i... |
| Console | clearOldRows | () | → void> | Removes old configuration rows from the DOM before rebuilding the table. |
| Console | createRow | (key, value) | → HTMLTableRowElement> | Creates a table row with editable key and value cells and a delete cell. |
| Console | updateTextarea | () | → void> | Synchronizes the hidden textarea with the current state of the editable table... |
| Console | submitNewKeyValue | () | → void> | Submits a new key-value pair by creating a row and clearing the input fields. |
| Console | addFilter | () | → void> | Adds a filter input to the configuration header for searching key-value pairs. |
| Console | doSave | (event) | → void> | Handles save logic: validates new key-value inputs, checks for duplicates, an... |
| Console | resetForm | (event) | → void> | Resets the form to the original configuration stored in a hidden input. |
| Console | floodfillStatus | () | → void> | Polls for the floodfill config element and adds a status badge to the header. |
| Console | spanify | () | → void> | Finds the changelog pre element, splits content by blank lines, and wraps eac... |
| Console | init | () | → void> | Initializes click handlers to clear selected tab styling from toggle elements. |
| Console | clearSelected | () | → void> | Removes the "tab2" class from all elements with class "toggles... |
| Console | addClickHandler1 | (elem) | → void> | Attaches a click handler to the given element that clears selected tabs. |
| Console | clickToClose | (element) | → void> | Adds the "closed" class to an element and removes it from the DOM a... |
| Console | setupClickToClose | (selectors) | → void> | Sets up a delegated click listener on the document body that closes matching ... |
| Console | updateCountSpan | (thElement, checkedItems, totalItems, needsSaving) | → void> | Updates or creates a count span in the table header showing checked/total stats. |
| Console | getCheckboxState | (checkboxes) | → Object<string, boolean> | Captures the current checked state of all checkboxes as an object. |
| Console | naturalSort | (a, b) | → number> | Performs a natural (human-friendly) sort comparison between two strings. |
| Console | initialize | () | → Object<string, Object<string, boolean>> | Initializes stat group rows with checkbox listeners and count displays. |
| Console | renderSortedSections | (sections) | → void> | Renders the sorted stat sections back into the table body. |
| Console | showHideTunnelCounts | () | → void> | Sets up toggle listeners on tunnel config headers to show/hide tunnel count b... |
| Console | convertKBtoMB | (selector) | → void> | Converts KB text values to MB in matching DOM elements when value exceeds 102... |
| Console | getCsrfTokenFromMeta | () | → string>|null> | Retrieves CSRF token from meta tag or hidden form input. |
| Console | getCsrfTokenFromCookie | () | → string>|null> | Retrieves CSRF token from cookie. |
| Console | csrfFetch | (url, [options], [options.method], [options.headers], [options.body], [options.credentials]) | → Promise<Response> | Fetches resource with CSRF protection headers. |
| Console | csrfXHR | () | → XMLHttpRequest> | Creates XMLHttpRequest with CSRF protection headers. |
| Console | manageZoomCSS | () | → void> | Manages the zoom CSS by detecting the device pixel ratio and dynamically load... |
| Console | findTbody | (root, id) | → Object>|null> | Finds the first tbody element with the given id in a VDOM tree. |
| Console | extractRows | (tbody) | → Array<{key: (string|null), vdom: Object}> | Extracts the direct tr children of a tbody as keyed VDOM entries. |
| Console | postResult | (port, url, payload) | → void> | Posts a result to the port that sent the request. |
| Console | handleDiff | (port, url, html, tbodyId) | → void> | Diffs a new row set against the stored snapshot for the url and posts the res... |
| Console | onconnect | (e) | → void> | Handles new SharedWorker connections. |
| Console | onconnect | (e) | → void> | Handles new SharedWorker connections by setting up message and close handlers... |
| Console | handleClientMessage | (event, clientData, clientData.port, clientData.clientId) | → void> | Processes incoming messages from a client port, debouncing or force-enqueuein... |
| Console | setClientVisibility | (clientData, visible) | → void> | Updates a client's visibility state, purging all its pending work when it bec... |
| Console | purgeClientWork | (clientId) | → void> | Removes all pending debounce timers and queued fetches for a client. |
| Console | enqueueFetchRequest | (url, now, clientData) | → void> | Enqueues a fetch request, executing immediately if concurrency limit not reac... |
| Console | processFetchRequest | (url, now, clientData) | → Promise<void> | Executes a fetch request and posts the response back to the client port. Requ... |
| Console | updateLastRequestTime | (clientId, now) | → void> | Updates the last request timestamp for a given client. |
| Console | incrementNoResponse | () | → number> | Increments and returns the no-response counter. |
| Console | decrementActiveRequests | () | → void> | Decrements the active request counter. |
| Console | processNextFetchRequest | () | → void> | Processes the next fetch request in the queue if concurrency limit allows. Sk... |
| Console | cleanupClient | (clientData) | → void> | Cleans up resources associated with a disconnected client. |
| Console | refresh | (elementId, url) | → void> | Refreshes a specific DOM element by fetching the URL and replacing its innerH... |
| Console | setupFormListeners | (formId, elementId, url) | → void> | Sets up form submission and iframe load listeners to trigger content refresh. |
| Console | getQueryParameter | (name) | → string>|null> | Retrieves a URL query parameter by name. |
| Console | renderTemplate | (template, context) | → string> | Renders a template string with variable substitution. |
| Console | debounce | (func, wait, [immediate]) | → function> | Creates a debounced version of the given function. |
| Console | scheduleRetry | (callback, [attempt]) | → void> | Schedules a retry with exponential backoff. |
| Console | preloadFlags | (codes) | → void> | Preloads country flag images into a hidden container for faster rendering. |
| Console | storeRouterCounts async | () | → Promise<void> | Fetches router data from /netdb, parses country/floodfill/tier counts, and st... |
| Console | getRouterCount | (shapeId, [routerClass]) | → number> | Gets the router count for a specific country/shape and classification. |
| Console | getRouterTotalByClass | (routerClass) | → number> | Gets the total router count for a specific classification. |
| Console | updateShapeClass | (shapeId, count) | → void> | Updates the CSS class of an SVG shape based on the router count threshold. |
| Console | updateShapeClasses | (routerClass) | → void> | Updates all SVG shape classes for the given router classification. |
| Console | createInfobox | (data, infoboxTemplate, shapeId, [routerClass]) | → void> | Populates the infobox element with country data, flag, and router count. |
| Console | renderTotals | () | → void> | Renders the total router count in the infobox for the current classification. |
| Console | handleEventCore | (event) | → void> | Core handler for mouse events on map paths. |
| Console | getCapsParam | () | → string> | Gets the caps query parameter value based on the current router class. |
| Console | handleMouseReposition | (target) | → void> | Handles throttled DOM repositioning of hovered path elements. |
| Console | setNavButtonActive | () | → void> | Highlights the active navigation button based on the current URL query parame... |
| Console | getLocalStorageHideLegend | () | → boolean> | Reads the hide legend preference from localStorage. |
| Console | setLocalStorageHideLegend | (value) | → void> | Saves the hide legend preference to localStorage. |
| Console | getHideLegendFromURL | () | → boolean>|null> | Reads the hideLegend query parameter from the current URL. |
| Console | updateHideLegendInURL | (url, hideLegend) | → string> | Updates or appends the hideLegend parameter in the given URL string. |
| Console | syncLocalStorageWithURL | () | → void> | Synchronizes localStorage hide legend state with the URL parameter if present. |
| Console | initButtons | () | → void> | Sets up click delegation for graph option links, handling legend toggling and... |
| Console | initCss | () | → void> | Injects the graph container width style in one shot. Safe to call before the ... |
| Console | injectCss | () | → void> | Injects a style element with the graph container width based on the image dim... |
| Console | refreshGraph | () | → void> | Sets up periodic graph image refresh at the configured interval. |
| Console | checkLocalStorageAndRedirect | () | → boolean> | Checks localStorage for a hide legend preference and redirects the page if th... |
| Console | initializeSearchFilter | () | → Object> | Creates and appends a search filter UI element above the graph list. |
| Console | applyFilter | (input) | → void> | Filters graph containers based on the search input text and alias map. |
| Console | debounceFilter | (func, [delay], input) | → function> | Creates a debounced version of the filter function. |
| Console | disconnectObservers | () | → void> | Disconnects all active IntersectionObservers and clears the array. |
| Console | initializeObservers | (target, debouncedFunc, input) | → void> | Sets up MutationObserver on the target and IntersectionObservers for each gra... |
| Console | applyDimensions async | () | → Promise<boolean> | Applies the natural dimensions of the first graph image to the container style. |
| Console | ensureDimensions | () | → void> | Retries applying dimensions until successful or no images remain. |
| Console | updateGraphs async | (input, debouncedFunc) | → Promise<void> | Refreshes all graph images via preloaded images and updates the display. |
| Console | toggleView | () | → void> | Toggles the visibility of the graph configuration panel. |
| Console | loadToggleCss | () | → void> | Dynamically loads the graph configuration toggle CSS if not already loaded. |
| Console | isDown | () | → void> | Checks if graph images are present; shows an error message if none are loaded. |
| Console | stopRefresh | () | → void> | Stops the graph refresh interval timer. |
| Console | loadExpandedSections | () | → Set<string> | Loads expanded section IDs from localStorage. |
| Console | saveExpandedSections | (expandedSections) | → void> | Saves the expanded section IDs to localStorage. |
| Console | initJobqueueToggles | () | → boolean> | Initializes section toggles for the jobqueue page, applying default and store... |
| Console | fetchJobs async | () | → Promise<void> | Fetches job data from /jobs, compares with existing rows, and updates the DOM... |
| Console | startRefresh | () | → void> | Starts the periodic job data refresh interval. |
| Console | stopRefresh | () | → void> | Stops the periodic job data refresh interval. |
| Console | compact | () | → void> | Compacts leaseset tables by repositioning encryption keys after expiry cells. |
| Console | countTypes | () | → void> | Counts signature and encryption types across all leasesets and displays summa... |
| Console | styleLabels | () | → void> | Injects CSS styles for leaseset counter labels and badges. |
| Console | sortLeasesets | () | → void> | Sorts leaseset tables by priority (published > unpublished > known clie... |
| Console | refreshLeasesets | () | → void> | Fetches updated leaseset content and replaces the current container. |
| Console | startRefresh | () | → void> | Starts the periodic leaseset refresh interval. |
| Console | stopRefresh | () | → void> | Stops the periodic leaseset refresh interval. |
| Console | initLSCompact | () | → void> | Initializes the leaseset compact view with refresh, styling, sorting, and debug. |
| Console | lsDebug | () | → void> | Merges and consolidates the leaseset debug and keyspace tables into a single ... |
| Console | periodLength | (minutes) | → number> | Buffer length that represents the configured period. One sample per SAMPLE_SE... |
| Console | getCSSVar | (name) | → string> | Reads a CSS custom property from the document root. |
| Console | parseFillStyle | (ctx, cssValue, startY, endY) | → string>|CanvasGradient> | Creates a Canvas fill style from a CSS variable value. Supports flat colors (... |
| Console | drawSpline | (ctx, pts, close, tension) | | Draws a cardinal spline through a set of points on a canvas context. Based on... |
| Console | valueToYIn | (value, maxVal) | → number> | Converts a data value to a Y coordinate for the top half (inbound, inverted).... |
| Console | valueToYOut | (value, maxVal) | → number> | Converts a data value to a Y coordinate for the bottom half (outbound, normal... |
| Console | valueToYOverlay | (value, maxVal) | → number> | Converts a data value to a Y coordinate for overlay mode (both lines from top... |
| Console | parseValues | (str) | → Array<number> | Parses a comma-separated string of numeric values into an array of numbers. |
| Console | interpolate | (lowRes, pointsPerStep) | → Array<number> | Linearly interpolates a low-resolution array into a high-resolution array. Ea... |
| Console | restoreBuffers | (minutes) | → boolean> | Restores shift buffers from sessionStorage if available and data-minutes matc... |
| Console | saveBuffers | (minutes) | | Persists shift buffers to sessionStorage. Caps stored length to the period le... |
| Console | drawHalf | (ctx, values, maxVal, lineColor, fillColor, yMapper, fillDown, rtl, glowWidth, glowAlpha, glowBlur, lineWidth, tension, baselineY, blendMode, pass) | | Draws a single half of the graph (inbound or outbound). Supports two-pass ren... |
| Console | drawGrid | (ctx, minutes, split) | | Draws a subtle dotted grid behind the graph data. Split mode: horizontal line... |
| Console | renderNewGraph | () | → void> | Main render function. Reads data from the canvas element attributes and draws... |
| Console | initNewGraph | () | → void> | Initializes the new minigraph renderer. Re-renders on a polling interval to h... |
| Console | miniGraph | () | → void> | Initializes the mini graph by starting the SharedWorker connection and settin... |
| Console | handleWorkerMessage | (event) | → void> | Handles messages from the SharedWorker, initiating refresh intervals and proc... |
| Console | refreshGraph | () | → void> | Sends a fetch request to the worker for the latest bandwidth graph image. |
| Console | handleGraphUpdate | (responseBlob) | → void> | Processes a graph image blob from the worker and renders it to the offscreen ... |
| Console | init | () | → void> | Starts the active renderer: the new canvas renderer at parse time when the si... |
| Console | initRefresh | () | → void> | Initializes auto-refresh based on the current view type (countries, RI, or LS... |
| Console | createSelectForField | (field, [value]) | | Populated <select> for the given dropdown field. |
| Console | createTextInput | ([value]) | | Text input for free-form query entry. |
| Console | switchQueryField | () | | Swap query input between text and <select> depending on the field type. |
| Console | tooltipShow | () | → void> | Shows the new hosts tooltip; looks elements up at event time so the handlers ... |
| Console | tooltipHide | () | → void> | Hides the new hosts tooltip; looks elements up at event time. |
| Console | ensureTooltipListeners | (badge) | → void> | Attaches the tooltip listeners to the current badge node exactly once; re-att... |
| Console | newHosts | () | → void> | Initializes the new hosts badge with periodic fetching, caching, and tooltip ... |
| Console | getStoredData | () | → Object> | Retrieves cached new hosts data from localStorage. |
| Console | fetchNewHosts | () | → void> | Fetches the latest hosts from /susidns/log.jsp, filters by 24-hour window, an... |
| Console | getNewHosts | () | → void> | Retrieves new hosts from cache if recent enough, otherwise triggers a fresh f... |
| Console | updateTooltip | (hostnames) | → void> | Updates the tooltip content with a list of new hostnames as clickable links. |
| Console | modal | (msg, [buttonText]) | → Promise<void> | Displays a modal dialog with the given message and an OK button. Returns a Pr... |
| Console | centerModal | () | → void> | Centers the modal dialog in the viewport and focuses the OK button. |
| Console | handleEnterKey | (event) | → void> | Handles the Enter key press on the OK button, triggering the click action. |
| Console | addListener | () | → void> | Adds a one-time visibility change listener to the document. |
| Console | onVisible | (element, callback) | → void> | Executes the callback once when the element becomes visible in the viewport a... |
| Console | onHidden | (element, callback) | → void> | Executes the callback once when the element becomes hidden (leaves viewport) ... |
| Console | initRefresh | () | → void> | Initializes refresh listeners and table sort event handlers. |
| Console | addSortListeners | () | → void> | Adds progress bar handlers for beforeSort/afterSort events on peer tables. |
| Console | countTiers | () | → void> | Counts peers by bandwidth tier (L, M, N, O, P, X) and floodfill status, displ... |
| Console | setupEngineRefresh | (selector, tbodyId) | → void> | Sets up periodic element refresh for the given selector. |
| Console | setupRefresh | (selector, fragmentIds) | → void> | Sets up periodic element refresh for the given selector, requesting only the ... |
| Console | setupSummaryRefresh | () | → void> | Sets up periodic refresh for the transport summary section. |
| Console | saveFilterState | () | → void> | Persist filter state to localStorage so it survives page refresh. Saves both ... |
| Console | loadFilterState | () | → void> | Restore filter state from localStorage on page load. Populates both disabled-... |
| Console | initRefresh | () | → void> | Initializes sort listeners and refresh schedules for profile pages. |
| Console | addSortListeners | () | → void> | Sets up Tablesort instances and progress bar handlers for profile tables. |
| Console | setupRefreshes | () | → void> | Configures periodic element refresh for profile rings, lists, floodfills, and... |
| Console | filterBanTable | () | → void> | Filters the session ban table based on active reasons in the summary list. |
| Console | updateBanSummary | (banBody) | → void> | Generates and displays a summary of session bans grouped by reason. |
| Console | initProgressX | (window, document) | → void> | |
| Console | reportVisibility | (port) | → void> | Reports the page's visibility to the SharedWorker so the fetch worker can sus... |
| Console | normalizeSelectors | (targetSelectors) | → Array<string> | Splits a selector string or array into trimmed selector strings. |
| Console | normalizeFragmentIds | (fragmentIds) | → string>|null> | Joins fragment element ids into a comma-separated contentonly parameter value. |
| Console | installScrollGate | () | → void> | Shared per-page scroll gate: flips a flag while the user is actively scrollin... |
| Console | createScrollDeferred | () | → function> | Runs an apply function immediately, or holds the latest one until the user st... |
| Console | appendContentOnly | (url, ids) | → string> | Appends the contentonly parameter to a fetch URL. |
| Console | realizeVdom | (vnode) | → Node>|null> | Realizes a serializable VDOM node (from diffWorker.js) as a live DOM node. Sc... |
| Console | refreshElements | (targetSelectors, url, delay, [immediate], [silent], [fragmentIds], [diffRows], [minInterval]) | → function> | Sets up periodic element refresh using a SharedWorker for fetch requests. Aut... |
| Console | dispatchDone | () | → void> | Dispatches the refresh events after a patch is applied. |
| Console | patchRows | (tbodyId, result) | → boolean> | Applies a row-level diff result to the live tbody. Inserted rows carry their ... |
| Console | patchFull | (tbodyId, vdom) | → Object> | Full fallback: replace the tbody contents wholesale (first tick, row order ch... |
| Console | patchResponse | (vdom) | → void> | Patch the document from a fetched response with morphdom (no row diff). The r... |
| Console | stop | () | → void> | Halts the refresh loop for this instance. |
| Console | start | () | → void> | Initializes log page refresh functionality including worker setup, filter inp... |
| Console | processUpdates | (doc, els, state) | → void> | Queues DOM updates for error counts, critical logs, router logs, and service ... |
| Console | initRefresh | () | → void> | Starts the log refresh interval, retrying until required elements are available. |
| Console | stopRefresh | () | → void> | Stops the log refresh interval timer. |
| Console | refreshLogs | (state, els) | → void> | Triggers a log refresh by posting a fetch URL to the SharedWorker. |
| Console | updateInterval | (state, els) | → void> | Reads the refresh interval from localStorage and updates the input control an... |
| Console | addFilterInput | (els) | → void> | Adds a debounced input listener to the log filter text field. |
| Console | applyFilter | (els) | → void> | Filters log list items based on the current filter input value. |
| Console | linkifyLogEntries | (container) | → void> | Converts router IDs, lease hashes, and IP addresses in log entries into click... |
| Console | tagFirstLi | (list) | → void> | Tags the first list item with a unique data-key attribute for morphdom diffing. |
| Console | refreshOnClick | (triggerSelectors, updateSelectors, [interval], [maxAttempts]) | → void> | Sets up click-triggered AJAX refresh for specified DOM elements. |
| Console | updateCachedElements | () | → void> | Caches references to sidebar badge and volatile elements for efficient updates. |
| Console | getRefreshInterval | () | → number> | Gets the configured refresh interval in milliseconds. |
| Console | start | () | → void> | Initializes all sidebar components and starts auto-refresh. |
| Console | consumeKick | () | → void> | Hands off from the parse-time kicker (refreshKick.js): stops its refreshEleme... |
| Console | startAutoRefresh | () | → void> | Starts the sidebar auto-refresh interval timer. |
| Console | stopAutoRefresh | () | → void> | Stops the sidebar auto-refresh interval timer. |
| Console | refreshSidebar | ([force]) | → void> | Triggers a sidebar refresh by posting a fetch request to the SharedWorker. Se... |
| Console | applySidebarUpdates | () | → void> | Applies differential updates from the fetched sidebar document to the current... |
| Console | updatePersistentBars | (responseDoc) | → void> | Updates non-volatile memory and CPU bars from the response document. The bars... |
| Console | syncGraphDataAttributes | () | → void> | Copies data-rx/data-tx attributes from the response canvas to the live canvas... |
| Console | refreshAll | () | → void> | Performs a full sidebar refresh by replacing all innerHTML from the fetched d... |
| Console | isOnline | () | → boolean> | Checks if the browser reports an online connection. |
| Console | updateConnectionStatus | () | → void> | Updates the connection status, adding/removing "isDown" class and t... |
| Console | checkConnectionStatus | () | → void> | Triggers a connection status check via the debounced update function. |
| Console | handleStatus | () | → void> | Handles online/offline/visibility events by triggering a forced sidebar refre... |
| Console | initSidebar | () | → void> | Initializes the sidebar when the xhr container is available, with a bounded r... |
| Console | resetScrollLeft | (element) | → void> | Resets the horizontal scroll position of an element to 0. |
| Console | initResetScroll | () | → void> | Initializes blur event handlers on all "resetScrollLeft" elements. |
| Console | smoothScroll | (target) | → void> | Smoothly scrolls the given target element into view. |
| Console | initScrollers | () | → void> | Attaches click handlers to all "scrollToNav" elements that smooth-s... |
| Console | searchLS | () | → void> | Creates and appends a search UI for leaseset lookups with localStorage persis... |
| Console | sectionToggler | () | → void> | Initializes sidebar section toggle controls, restoring persisted states and a... |
| Console | initializeLocalStorage | () | → Promise<Object> | Initializes storage with default sidebar section visibility states. |
| Console | saveToggleStates async | () | → Promise<void> | Saves the current toggle state of the active element to storage. |
| Console | restoreToggleStates | () | → void> | Restores toggle states from storage, delegating to the sidebarState helper th... |
| Console | addToggleListeners | () | → void> | Attaches delegated click listeners for toggle interactions on the sidebar. |
| Console | countNewsItems | () | → void> | Counts news items in the sidebar and updates the news badge display. |
| Console | initSelectAll | () | → void> | Initializes click handlers on readonly input elements to select their text co... |
| Console | addSelectAllHander | (elem) | → void> | Attaches a click handler that selects all text in the element. |
| Console | selectAll | (element) | → void> | Selects all text content within the given input element. |
| Console | setupIframe | () | → void> | Checks if the page is in an iframe context and applies the "iframed"... |
| Console | endOfPage | () | → void> | Creates and appends an end-of-page marker element for iframe height detection. |
| Console | refreshLocalTunnelsSummary | () | → void> | Rebuilds the collapsed local-tunnel summary counts from the current #sb_local... |
| Console | readSidebarState | () | → Object>|null> | Reads the saved section state, preferring localStorage and falling back to th... |
| Console | saveSidebarState | (state) | → void> | Persists the section state to localStorage and mirrors it to the sidebarSecti... |
| Console | readCookieState | () | → Object>|null> | Reads the section state from the sidebarSections cookie. |
| Console | handleServicesVisibility | (toggleInput, element, isVisible) | → void> | Toggles the services section between icon and text link display. |
| Console | handleUpdateSectionVisibility | (toggleInput, element, isVisible) | → void> | Toggles the update section visibility and collapsed class. |
| Console | handleLocalTunnelsVisibility | (element, isVisible) | → void> | Refreshes the local-tunnel summary counts and toggles the summary visibility ... |
| Console | setSidebarSectionState | (toggleInput, isVisible) | → void> | Applies the visibility of a sidebar section from its toggle input state. |
| Console | applySidebarState | () | → void> | Restores all sidebar section toggle states from storage. |
| Console | refreshLocalTunnelsOnRefresh | () | → void> | Recompute local-tunnel counts after any element or sidebar refresh, regardles... |
| Console | reportVisibility | () | → void> | Reports the page's visibility to the SharedWorker so the fetch worker can sus... |
| Console | stickySidebar | () | → void> | Calculates sidebar and viewport heights and applies/removes sticky positioning. |
| Console | calcHeight | () | → void> | Compares sidebar height to viewport and toggles sticky CSS accordingly. |
| Console | initTablesort | () | | Attach Tablesort to each .streams table. Safe to call repeatedly — returns fa... |
| Console | switchToBodyRefresh | () | | Switch refresh target to tbody + streamstats so morphdom preserves the thead ... |
| Console | toggleRows | () | → void> | Sets up click-to-toggle behavior for table sections, showing one section at a... |
| Console | empty | () | → boolean> | |
| Console | emptyLast | (cmp) | → function> | Wrap a comparator so empty cells always sort to the bottom, regardless of dir... |
| Console | numberCmp | (a, b) | → number> | Number comparator — strips non-numeric chars except E/e/%. |
| Console | numberPattern | (item) | | Match only pure numbers/percentages. Previously any string containing a digit... |
| Console | naturalCmp | (a, b) | → number> | Natural sort — splits text into numeric/text chunks for human-friendly ordering. |
| Console | naturalPattern | (item) | | |
| Console | dotsepCmp | (a, b) | → number> | Dot-separated comparator (IPs, version numbers). Pads shorter segment lists w... |
| Console | dotsepPattern | (item) | | |
| Console | filesizeCmp | (a, b) | → number> | Filesize comparator — converts with/without suffix to bytes (1024-base). |
| Console | filesizePattern | (item) | | |
| Console | monthnameCmp | () | | Month-name comparator. @param {string} a @param {string} b @returns {number} |
| Console | monthnamePattern | (item) | | |
| Console | dateCmp | (a, b) | → number> | Date comparator — normalises separators and formats before parsing. |
| Console | datePattern | (item) | | |
| Console | intlCmp | () | | Intl.Collator comparator (locale-aware). @param {string} a @param {string} b ... |
| Console | intlPattern | () | | Intl never auto-detects; requires data-sort-method="intl". @returns... |
| Console | stringCmp | () | | Default string fallback (case-insensitive). @param {string} a @param {string}... |
| Console | sortRows | (rows, sortColumn, direction, columnType) | → Array<Object<string, string>> | Sort an array of row data in place by a column, applying the selected compara... |
| Console | onmessage | (e) | | Receives sort data from the main thread, sorts rows, and posts results back. |
| Console | Tablesort | (el, [options], [options.descending]) | | |
| Console | createEvent | (name) | → CustomEvent> | Create a CustomEvent (old-browser fallback). |
| Console | getInnerText | (el) | → string> | Read cell text; prefers data-sort attribute. |
| Console | getCellByKey | (cells, key) | → HTMLElement>|undefined> | Find a cell by data-sort-column-key attribute. |
| Console | extend | (name, pattern, sort) | | Register a named sort extension. |
| Console | init | (el, options) | | Attach click and keydown listeners to header cells. Skips cells with data-sor... |
| Console | sortTable | (header, [update]) | | Sort the table by the clicked header. Dispatches beforeSort / afterSort event... |
| Console | sortWithWorker | (header, update, columnKey, column, sortMethod, sortOrder, [caseInsensitive]) | | Sort table rows. Extracts row text and determines the sort type, then sorts v... |
| Console | refresh | () | | Re-apply current sort without toggling direction. Use after row data changes. |
| Console | addResizeListener | (element) | → void> | Adds an input listener to a textarea that dynamically adjusts its height to f... |
| Console | setupToggles | (toggleSelector, hiddenSelector, displayStyle, [collapseByDefault], [displaySingle]) | → void> | Sets up toggle behavior for elements matching the given selectors. |
| Console | initTransit | (config, config.fetchUrl, [config.refreshInterval], [config.retryDelay], [config.usePeerRowTracking]) | → void> | Initializes a transit-style page with auto-refresh and tablesort. |
| Console | getDOM | () | | Caches DOM element references. |
| Console | setupTablesort | () | | Initializes Tablesort on the transit table. |
| Console | startRefresh | () | | Shows the progress bar. |
| Console | endRefresh | () | | Hides the progress bar. |
| Console | refreshData | () | | Fetches fresh transit data via SharedWorker and replaces matching DOM elements. |
| Console | init | ([retryCount]) | | Retries DOM lookup until the refresh button is found, then starts the refresh... |
| Console | setupSort | () | → void> | Initializes the Tablesort instance on the transit summary table. |
| Console | updateTunnels | () | → void> | Triggers an element refresh for transit tunnel and peer data. |
| Console | hideComplete | (txTables) | → void> | Hides completed translation rows and marks tables with no incomplete rows as ... |
| Console | showComplete | (txTables, showCompleteClass) | → void> | Shows all translation rows and applies the showAll CSS class to the summary. |
| Console | initTuningToggles | () | → void> | Auto-tuning checkbox toggle: when unchecked, replace Min/Max/Step inputs with... |
| Console | saveTuningState | () | → void> | Persist the list of expanded section headings to localStorage. |
| Console | restoreTuningState | () | → void> | Restore expanded section headings from localStorage. Matches saved labels aga... |
| Console | initTuning | () | → void> | Initialise on DOM ready: start AJAX refresh, wire up checkbox toggles, sectio... |
| Console | updateTunnels async | () | → Promise<void> | Refreshes tunnel peer data elements via the refreshElements system. |
| Console | initRefresh | () | → void> | Starts the periodic data refresh for tunnel peer counts. |
| Console | initFilter | () | → void> | Creates and appends the filter input UI with clear button and localStorage pe... |
| Console | checkForCachedFilter | () | → void> | Restores the filter value from localStorage and applies it. |
| Console | applyFilter | (filterValue) | → void> | Filters tunnel peer rows based on key=value filter syntax. Supports tier, cc/... |
| Console | displayPeerCount | () | → void> | Updates the displayed peer count in the navigation tab based on filtered resu... |
| Console | addFilterListener | () | → void> | Attaches an input listener to the filter field for real-time filtering and UR... |
| Console | applyQueryParamsFilter | () | → void> | Applies filter values from URL query parameters on page load. |
| Console | updateURLWithFilter | (filterValue) | → void> | Updates the browser URL with the current filter value using replaceState. |
| Console | persistTunnelTableVisibility | () | → void> | Restores tunnel table visibility state from localStorage on page load. |
| Console | persistTunnelIdVisibility | () | → void> | Restores tunnel ID visibility state from localStorage on page load. |
| Console | updateTunnelCounts | () | → void> | Recalculates and updates tunnel in/out count displays for each pool. |
| Console | getBaseAttributes | (token) | → * | Get attributes from a string token and return an object |
| Console | getAttributes | (tagStr, config) | → * | Get attributes from a string token and return an object. In addition to the b... |
| Console | toLowerCase | (str) | → * | Converts a string to lowercase. |
| Console | toUpperCase | (str) | → * | Converts a string to uppercase. |
| Console | startsWith | (str, prefix, position) | → * | Checks if a string starts with a specified prefix. |
| Console | endsWith | (str, suffix, position) | → * | Checks if a string ends with a specified suffix. |
| Console | fromCharCode | (char) | → * | Creates a string from a character code. |
| Console | charCodeAt | (str, index) | → * | Returns the character code at a specific index in a string. |
| Console | defineProperties | (obj, props) | → * | Defines multiple properties on an object. |
| Console | isObj | (node) | → * | Checks if a node is an object. |
| Console | isRoot | (node) | → * | Checks if a node is a root object (RootNode or RootLike). |
| Console | isTag | (node) | → * | Checks if a node is a tag node (NodeLike or DOMNode). |
| Console | isNode | (node) | → * | Checks if a node is a root node (RootLike or RootNode), a tag node (NodeLike ... |
| Console | isPrimitive | (val) | → * | Checks if a value is a primitive (number or string). |
| Console | trim | (str) | → * | Trim a string value. |
| Console | tokenize | (html) | → * | Tokenizes an HTML string into an array of HTML tokens. These tokens represent... |
| Console | Parser | () | → * | Parser A tiny yet very fast and powerful parser that takes a string of HTML a... |
| Console | decodeTree | (node, inRawText) | → void> | Decodes entities in text nodes and attribute values. Text inside and is raw b... |
| Console | parse | (htmlString) | → Object> | Parses an HTML string into a serializable VDOM tree whose shape matches the b... |
| Console | extractTooltip | (title) | → Array<string> | Extracts tooltip content from bracketed text in a title string. |
| Console | cleanValue | (value) | → string> | Cleans and formats a raw profile value by removing brackets, GMT suffixes, an... |
| Console | convertEpochToReadableDate | (epoch) | → string> | Converts an epoch millisecond timestamp to a human-readable date string. |
| Console | convertBtoKB | (bytes) | → string> | Converts bytes to kilobytes with two decimal places. |
| Console | addToggles | () | → void> | Sets up collapsible section toggles for the profile table, expanding router i... |
| SusiDNS | handleClear | () | → void> | Updates the clear-search anchor visibility and href based on whether the sear... |
| SusiDNS | performDelete async | (hosts) | → Promise<void> | Performs an asynchronous deletion request for the specified hosts from the ro... |
| SusiDNS | extractMessageContent | (html) | → string> | Extracts the message content from the server response HTML by querying the el... |
| SusiDNS | displayMessage | (message, className, hosts) | → void> | Displays a status message to the user, optionally including a list of affecte... |
| SusiDNS | toggleAll | (selectAll) | → void> | Toggles every host checkbox to the given state and updates the master "s... |
| SusiDNS | createSelectAllCheckbox | () | → void> | Creates and injects a "select all" checkbox into the dead-hosts hea... |
| SusiDNS | toggleVisibility | (showContainer, hideContainer) | → void> | Shows one panel container and hides the other, adjusting page layout and scro... |
| SusiDNS | toggleBodyClass | () | → void> | Adds or removes the "displayPanels" class on <body> based on ... |
| SusiDNS | resetAddInputs | () | → void> | Clears all text input values inside the "Add" panel and hides the c... |
| SusiMail | SanitizeHtml | (input, [extraSelector], [callback]) | → string> | Sanitizes HTML using allowlist approach. |
| SusiMail | initPopup | () | → void> | Iterates over all elements with class "beforePopup" and attaches a ... |
| SusiMail | addClickHandler5 | (elem) | → void> | Attaches a click listener to the given element that sets the global {@link be... |
| SusiMail | handleModal | () | → void> | IIFE that manages the lifecycle of the delete-mail modal dialog. Handles posi... |
| SusiMail | toggleModalStyles async | () | → Promise<void> | Toggles modal display state by positioning the #nukemail dialog, managing bod... |
| SusiMail | createOverlay async | () | → Promise<HTMLElement> | Creates and appends a fullscreen overlay <div> to the document body. |
| SusiMail | initButtons | () | → void> | Initialises all interactive buttons in the folder view by mapping CSS class n... |
| SusiMail | setupDeleteClickHandler | (elem, form) | → void> | Attaches a click handler that enables/disables the delete button based on whe... |
| SusiMail | setupToggleSelectionHandler | (selectAll) | → function> | Returns a handler factory that checks or unchecks all visible delete-checkbox... |
| SusiMail | addDirectClickHandler | (elem) | → void> | Attaches a click handler that navigates to the URL stored in the element's da... |
| SusiMail | deleteboxclicked | (form) | → void> | Evaluates the current checkbox state and updates the delete, mark-all, and cl... |
| SusiMail | initViewToggle | () | → void> | Sets up the view-toggle and "open in new tab" buttons by copying th... |
| SusiMail | setupFallbackCss | () | → void> | Injects a fallback CSS stylesheet into the HTML mail iframe to ensure consist... |
| SusiMail | _esc | (str) | → string> | HTML-escapes a string for attribute values. |
| SusiMail | _ent | (str) | → string> | HTML-escapes a string for element content. |
| SusiMail | _safeUrl | (url) | → boolean> | Checks if a URL uses an allowed scheme. |
| SusiMail | _tab2space | (line) | → string> | Converts tabs to spaces (4-column tab stops). |
| SusiMail | _skip | (line) | → Object> | Skips leading whitespace, returns indent and text. |
| SusiMail | _findEm | (src, start, len, close) | → number> | Finds closing delimiter for emphasis (bold/italic). |
| SusiMail | _img | (src, alt) | → string> | Creates an image element with URL safety check. |
| SusiMail | _inlines | (src, defs) | → string> | Parses inline markdown elements and returns HTML. |
| SusiMail | _renderBlock | (b) | → string> | Renders a single block to HTML. |
| SusiMail | _renderTable | (b) | → string> | Renders a table block to HTML. |
| SusiMail | _splitCells | (row) | → Array<string> | Splits a table row into cells, handling escaped pipes. |
| SusiMail | _inline | (text, defs) | → string> | Wrapper for _inlines that handles trailing double-space as br. |
| SusiMail | _tryConvertParagraphToList | (text) | → Array<string>|null> | Attempts to convert a paragraph into a numbered list. |
| SusiMail | _processPendingBlock | (pending, defs) | → Object>|null> | Finalizes a pending block, converting paragraphs to lists if detected. |
| SusiMail | _parseBlocks | (lines, start, end, refdefs) | → Array<Block> | Parses markdown text into block structure. |
| SusiMail | _groupBlocks | (blocks) | → Array<Block> | Groups consecutive list items into list blocks. |
| SusiMail | _render | (blocks) | → string> | Renders blocks to HTML string. |
| SusiMail | _normalize | (text) | → string> | Normalizes whitespace in markdown text. |
| SusiMail | makeHtml | (text) | → string> | Main entry point: converts markdown to HTML. |
| SusiMail | initMarkdown | () | → void> | Initializes markdown rendering for all mailbody elements with data-markdown a... |
| SusiMail | removeNotify | () | → void> | IIFE that sets up DOM-based notification management. Removes empty notices on... |
| SusiMail | previewMail | () | → void> | Sets up the preview-popup system. Wires up mouseenter/mouseleave event delega... |
| SusiMail | fetchPreview async | (showValue, [depth]) | → Promise<string> | Returns the preview text for the given URL, using an in-memory cache and dedu... |
| SusiMail | _doFetchPreview async | (showValue, [depth]) | → Promise<string> | Performs the actual fetch and parses the response. Handles binary content det... |
| SusiMail | cleanText | (raw) | → string> | Normalises raw extracted text by collapsing whitespace, removing boilerplate ... |
| SusiMail | ensurePopup | () | → HTMLElement> | Lazily creates the preview popup <div> element with theme-aware styling... |
| SusiMail | positionPopup | (targetEl) | → void> | Positions the popup element relative to the target anchor, preferring below b... |
| SusiMail | showPopup async | (el, showValue) | → Promise<void> | Displays the preview popup anchored to the given element, fetches the preview... |
| SusiMail | hidePopup | () | → void> | Hides the preview popup if it exists. |
| SusiMail | doRefresh | () | → void> | Fetches the current mailbox HTML and diffs/updates the relevant DOM sections ... |
| SusiMail | removeDupeNotices | () | → void> | Removes duplicate notification elements, keeping only the first one. |
| SusiMail | sanitizeHTML | () | → void> | Iterates every element in the document, normalising inline styles, hiding rem... |
| SusiMail | toggleBlockedImages | () | → void> | Toggles the visibility of all blocked images and web bugs inside the HTML mai... |
| SusiMail | createButton | () | → void> | Creates a "Toggle Images" button and appends it to the blocked-imag... |
| SusiMail | initToggleHeaders | () | → void> | Initialises the expand/collapse toggle buttons for debug headers. |
| SusiMail | toggleHeaders | () | → void> | Toggles the display of each debug header row between "table-row" an... |