API Summary

511 documented functions across 5 subsystems · Back to docs

SectionFunctionSignatureReturnsDescription
I2PSnarkinjectCss()→ void>Injects the confirmation dialog CSS styles into the document head. Creates st...
I2PSnarkhandleInputClick async(clickTarget, event)→ Promise<void>Handles clicks on interactive UI elements (toggle views, tabs, navigation, fi...
I2PSnarkshowConfirmationDialog async(targetElement, message, inputName, inputValue, inputAction)→ Promise<boolean>Creates and displays a modal confirmation dialog with the given message. Supp...
I2PSnarkscrollToTop()→ void>Scrolls both the window and parent window (if iframed) to the top to ensure t...
I2PSnarkcaptureKeyDown(event)→ void>Handles keyboard events for the confirmation dialog. Enter triggers the confi...
I2PSnarkremoveDialog()→ void>Removes the confirmation dialog and overlay from the DOM, cleans up keyboard ...
I2PSnarkhandleResize()→ void>Repositions the confirmation dialog vertically centered in the viewport, acco...
I2PSnarkconvertTooltip(selector)→ void>Finds all elements matching the selector that have a title attribute, convert...
I2PSnarkqueueConvert()→ void>Schedules a single tooltip conversion per animation frame, coalescing the obs...
I2PSnarkscheduleBadgeUpdate()→ void>Coalesces torrent-count badge updates triggered by DOM mutations into a singl...
I2PSnarkensureObserver()→ void>Creates the badge-count MutationObserver once and attaches it to the torrents...
I2PSnarkshowBadge async()→ Promise<void>Updates the filter bar badge display based on the current URL filter/search p...
I2PSnarkcountSnarks()→ number>Counts the number of visible torrent rows (volatile, non-peerinfo rows) in th...
I2PSnarkupdateURLs()→ void>Sets up click handlers on sort icon elements to save the current query string...
I2PSnarksetQuery()→ void>Saves the current URL query string to localStorage for persistence across pag...
I2PSnarkfilterNav async()→ Promise<void>Sets up the filter bar click handler. Intercepts clicks on filter elements, c...
I2PSnarkrefreshGraph()→ void>Fetches the I2PSnark bandwidth graph image if the refresh interval has elapse...
I2PSnarkclearIntervalAndAbort()→ void>Clears the graph refresh interval timer. Called on page unload to prevent mem...
I2PSnarkLightbox class()Provides a fullscreen image viewing experience with navigation controls, slid...
I2PSnarkLightbox class()Initializes the Lightbox instance. Sets up internal state for image tracking,...
I2PSnarkinitialize()→ void>Creates the lightbox container element and attaches it to the document body.
I2PSnarkcreateEl(tag, id)→ HTMLElement>Creates a new DOM element with the specified tag and id.
I2PSnarkcreateButton(text, id, callback)→ HTMLSpanElement>Creates a clickable button element with text content and a click callback. St...
I2PSnarkcreateControls()→ HTMLElement>Creates the slideshow control buttons (prev, next, play, pause) and appends t...
I2PSnarkload([opt], [opt.preload], [opt.maxImgSize])→ void>Loads thumbnail elements from the document, assigns index data attributes, at...
I2PSnarksetOpt([opt])→ void>Sets lightbox options by merging provided options with defaults, and attaches...
I2PSnarkaddThumbnailClickHandler(thumbnail)→ void>Attaches a click handler to a thumbnail that opens the lightbox with the appr...
I2PSnarkopenBox(el)→ void>Opens the lightbox for the given element. Creates a new Image, sets its sourc...
I2PSnarkonImageLoad()→ void>Called when the lightbox image finishes loading. Marks the lightbox as open, ...
I2PSnarktoggleControlButtons()→ void>Shows the navigation (prev/next) buttons and toggles play/pause button visibi...
I2PSnarkpreload()→ void>Preloads the next and previous images in the current group to improve navigat...
I2PSnarkresize()→ void>Constrains the current lightbox image with max-width/max-height so the browse...
I2PSnarkgetMaxSizing()→ Object>Computes the max-width/max-height style object that fits images within the vi...
I2PSnarkclose()→ void>Closes the lightbox: aborts any transition in progress, removes the image fro...
I2PSnarkadjustPosition()→ void>Adjusts the lightbox positioning for iframe or standalone mode. In iframe mod...
I2PSnarkresetParentStyles()→ void>Restores parent document styles when the lightbox is closed in iframe mode. R...
I2PSnarkcleanupObserversAndListeners()→ void>Disconnects the ResizeObserver if active and nullifies the reference.
I2PSnarkplay()→ void>Starts the slideshow by setting an interval that advances to the next image e...
I2PSnarkpause()→ void>Pauses the slideshow by clearing the interval and resetting the interval ID. ...
I2PSnarkresetSlideshowTimer()→ void>Restarts the slideshow interval from zero when the timer is running, so a man...
I2PSnarktogglePlayPauseButtons([isPaused])→ void>Toggles the active state of play, pause, prev, and next buttons based on whet...
I2PSnarkaddEventListeners()→ void>Registers all event listeners, currently only the resize listener.
I2PSnarkaddResizeEventListener()→ void>Attaches a passive resize listener to the window that resizes and repositions...
I2PSnarknext()→ void>Advances to the next image in the current group, crossfading between the curr...
I2PSnarkprev()→ void>Goes to the previous image in the current group, crossfading between the curr...
I2PSnarktransitionTo(thumb)→ void>Starts a crossfade transition to the given thumbnail image. Cancels any trans...
I2PSnarkcancelTransition()→ void>Aborts any transition in progress: clears the settle timer and removes the im...
I2PSnarkrunTransition(oldImg, newImg)→ void>Performs the image swap as a pure opacity cross-fade. Both images carry the s...
I2PSnarksettleDone(newImg, oldImg)→ void>Removes the transition styling once the cross-fade finishes and drops the out...
I2PSnarkisIframed()→ boolean>Checks whether the page is running inside an iframe by inspecting the &quot;i...
I2PSnarksetupResizeObserver()→ void>Creates a ResizeObserver on the document body (or parent body in iframe mode)...
I2PSnarkrepositionControls()→ void>Vertically centers the prev and next navigation buttons relative to the viewp...
I2PSnarkpageNav()→ void>Initializes the AJAX pagination listener. Adds a delegated click handler on t...
I2PSnarkpagenavListener(event)→ void>Delegated click listener for pagination links. Prevents default navigation, e...
I2PSnarkrefreshWithSearch async(value)→ Promise<void>Refreshes the torrent list with the given search term applied, aborting any i...
I2PSnarkinitRealtimeSearch()→ void>Wires up the search input listener, form submit interception, and the clear-s...
I2PSnarkextractRefreshPayload(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...
I2PSnarkrequestAnimationFramePromise(callback)→ Promise<void>Wraps requestAnimationFrame in a Promise, executing the callback within the a...
I2PSnarkgetRefreshInterval async()→ Promise<number>Reads the refresh interval from the global snarkRefreshDelay variable, localS...
I2PSnarkgetURL async()→ Promise<string>Constructs the AJAX refresh URL by replacing the &quot;/i2psnark/&quot; path ...
I2PSnarksetActiveSearch(value)→ void>The active search term appended to AJAX refresh URLs so refreshes keep the re...
I2PSnarksetLinks async([query])→ Promise<void>Updates the main navigation link href to point to the I2PSnark root, optional...
I2PSnarkinitHandlers async()→ Promise<void>Initializes sub-module handlers including sort listeners, debug toggle, page ...
I2PSnarkinitWorker()→ void>Constructs the snarkWork worker once. Falls back to direct fetching when Web ...
I2PSnarkworkerFailed()→ void>Marks the worker as unusable and rejects all pending requests so callers fall...
I2PSnarkfetchViaWorker(url, signal, [type], [timeout])→ Promise<Object>Fetches the URL through the worker, correlating the response by requestId. Re...
I2PSnarkfetchRefreshPayload async(url, [forceFetch], [signal])→ Promise<Object>Fetches the refresh payload for the given URL, preferring the worker so the n...
I2PSnarkfetchDirect async(url, signal)→ Promise<string>Fetches the URL on the main thread and returns the response text. Used as the...
I2PSnarkcleanupCache()→ void>Identifies and removes expired cache entries older than cacheDuration.
I2PSnarkremoveStaleCacheKeys()→ void>Removes all keys tracked in staleCacheKeys from the main cache, then clears t...
I2PSnarkdoRefresh async([options], [options.url], [options.forceFetch], [options.signal])→ Promise<void>Main refresh entry point. Fetches the AJAX HTML document for the given URL, r...
I2PSnarkrefreshTorrents async([payload])→ Promise<void>Core refresh function that updates the I2PSnark UI. Detects the current view ...
I2PSnarkmorphTorrentsBody(newTbodyHTML)→ void>Morphs the live torrent tbody to match the response rows, diffing by row key ...
I2PSnarkrefreshAll async()→ Promise<void>Performs a full refresh of the torrent table from the payload, morphing the t...
I2PSnarkupdateVolatile async()→ Promise<void>Performs an incremental update of the torrent table from the payload. Morphs ...
I2PSnarkupdateFiles async()→ Promise<void>Updates file listing information by comparing and refreshing incomplete file ...
I2PSnarkrefreshHeaderAndFooter async()→ Promise<void>Refreshes the header and footer table header cells from the payload. Also adj...
I2PSnarkrefreshScreenLog async([callback], [forceFetch])→ Promise<void>Fetches and updates the screen log (#messages) element. Uses a cache with tri...
I2PSnarkconvertEncodedSpaces()→ void>Replaces URL-encoded spaces (%20) with regular spaces in screen log message t...
I2PSnarkreplaceEncodedSpaces(node)→ void>Recursively traverses DOM nodes, replacing %20 with spaces in text nodes.
I2PSnarkwaitForIframeLoad(iframe)→ Promise<void>Returns a promise that resolves when the processForm iframe next fires load, ...
I2PSnarkinvalidateCache()→ void>Clears all cached fetch payloads so the next refresh fetches fresh data. Call...
I2PSnarkmarkStartingRows()→ void>Adds a indicator to the action cell of rows that currently have no action but...
I2PSnarkrefreshOnSubmit()→ void>Attaches form submission handlers that refresh the torrent display and screen...
I2PSnarkinitSnarkRefresh async()→ Promise<void>Initializes the I2PSnark refresh system. Sets up periodic refresh intervals, ...
I2PSnarkstopSnarkRefresh()→ void>Clears the main torrent refresh interval. Called when the document becomes hi...
I2PSnarkcheckIfUp async([minDelay])→ Promise<void>Periodically checks server connectivity by performing a HEAD request. Removes...
I2PSnarkpreloadImage(src)→ void>Preloads an image into the browser HTTP cache by creating an Image object and...
I2PSnarkisDown()→ void>Creates and displays an offline overlay with a loading spinner and chimp imag...
I2PSnarksetFilterQuery()→ void>Registers click listeners on the navbar and cancel-search elements. When clic...
I2PSnarkupdateHref(element)→ void>Reads the current filter from the URL or localStorage and updates the element...
I2PSnarkhandleTorrentNotify async(event, notificationElement, inputElement, form)→ Promise<void>Handles torrent form submission events. Prevents default form behavior, submi...
I2PSnarkshowNotification(notificationElement, inputElement, displayText)→ void>Displays a notification message in the given element. Clears any existing hid...
I2PSnarkhideAlert(notificationElement)→ void>Hides a notification element by setting its hidden attribute. Uses requestAni...
I2PSnarksubmitForm async(form)→ Promise<void>Submits a form via fetch using FormData, preserving the form's method and act...
I2PSnarkgetLastMessage()→ string>Extracts the latest message text from the screen log's first message element....
I2PSnarkinitSnarkAlert()→ void>Initializes the inline notification system on DOMContentLoaded. Registers sub...
I2PSnarksnarkSort()→ void>Initializes the sort listener on the I2PSnark torrent table header. Adds a de...
I2PSnarksortListener(event)→ void>Handles click events on sort column links. Prevents default navigation, const...
I2PSnarkhandleFetch async(requestId, url)→ Promise<void>Fetches the URL, streaming the response body into a string, parses it, and po...
I2PSnarkloadCSS(href)→ void>Dynamically loads a CSS stylesheet by inserting a element before the #snarkTh...
I2PSnarkcreateTextViewer()→ Object>Creates the text viewer DOM structure (wrapper, content, filename elements) i...
I2PSnarkdisplayWithLineNumbers(text)→ string>Converts plain text into an ordered list with each line as a list item, provi...
I2PSnarkdisplayText(link, fileName, fileExt, linkHref)→ void>Fetches and displays the content of a text file in the viewer. Uses the respo...
I2PSnarkresetScrollPosition()→ void>Resets the text view content scroll position to the top. Retries after a shor...
I2PSnarkpreventScroll(elements, prevent)→ void>Adds or removes scroll prevention on the given elements by toggling overflow:...
I2PSnarkrenderContent(fileName, fileExt, data)→ void>Renders fetched text content into the viewer. Applies pre-formatted styling f...
I2PSnarkaddListeners()→ void>Registers a delegated click handler that opens the text viewer for file links...
I2PSnarksaveScroll()→ void>Records the current scroll offsets of this window and, when embedded, the par...
I2PSnarkrestoreScroll()→ void>Smoothly returns this window and, when embedded, the parent window to the off...
I2PSnarkrunAfterLayout(callback)→ void>Runs the given callback after the layout and, when embedded, the parent ifram...
I2PSnarktoggleSection(event)→ void>Handles expansion and collapse of the add and create torrent sections. When e...
I2PSnarktoggleConfig(table, title)→ void>Toggles the visibility of a configuration table. When shown, adds the &quot;e...
I2PSnarkscrollToElement(element, [windowObj])→ void>Smoothly scrolls the given element into view within the specified window cont...
I2PSnarktoggleDebug()→ void>Initializes the debug toggle listener. Registers a delegated click handler on...
I2PSnarkdebugListener(event)→ void>Delegated click listener that toggles the &quot;debug&quot; class on the docu...
I2PSnarkinitLinkToggler()→ void>Initializes the link toggling system. Sets up event listeners for the toggle ...
I2PSnarkscrollToTop async(timeout)→ Promise<void>Scrolls to the top of the window (and parent window if iframed), waits for th...
I2PSnarksetLinkMode()→ void>Applies the current link toggle configuration to the UI by setting body class...
I2PSnarkdoToggle()→ void>Toggles between magnet and link display modes, persists the choice to localSt...
I2PSnarkshowToast(msg)→ void>Displays a toast notification with the given message, auto-dismisses after 3....
I2PSnarkcopyMagnetHandler(event)→ void>Handles click events on .copyMagnet elements. Extracts the magnet link from t...
I2PSnarkcopyToClipboard async(text)→ Promise<void>Copies the given text to the system clipboard using the Clipboard API. Silent...
I2PSnarkinitToggleLog()→ void>Initializes the screen log toggle functionality. Creates expand/shrink button...
I2PSnarkclean()→ void>Removes existing expand/shrink CSS classes and button elements to prepare for...
I2PSnarktoggleVaryTunnelLength(checkboxId, string)→ void>Registers a change listener on the specified checkbox that toggles the tunnel...
I2PTunnelinit()→ void>Initializes delete button click handlers on DOM ready. Finds all elements wit...
I2PTunneladdClickHandler(elem)→ void>Attaches a click event listener that shows a confirmation dialog. If the user...
I2PTunnelupdateElementContent(element, responseElement)→ void>Updates element content if it differs from the response element.
I2PTunnelrefreshTunnelStatus async()→ Promise<void>Fetches the current page and updates tunnel status information. On success, c...
I2PTunnelhandleDownState()→ void>Displays the 'router is down' overlay and schedules a re-check. Creates a ful...
I2PTunnelcountServices()→ void>Counts tunnel services by status and updates the UI count displays. Iterates ...
I2PTunnelsetStatusClass(parentTr, status)→ void>Sets the status class on a table row element, removing other status classes.
I2PTunnelupdateCount(element, selector, status)→ void>Updates the count display for a given selector and status.
I2PTunnelupdateVolatile(responseDoc)→ void>Updates volatile tunnel property elements from the response document. If elem...
I2PTunnelupdateLog(responseDoc)→ void>Updates the tunnel messages log from the response document. If messages eleme...
I2PTunnelrefreshPanels(responseDoc)→ void>Refreshes server and client tunnel panels from the response document.
I2PTunnelrefreshAll(responseDoc)→ void>Performs a full page content refresh from the response document. Updates the ...
I2PTunnelreloadPage()→ void>Forces a hard reload of the current page, bypassing cache.
I2PTunnelupdateNonceLinks(responseDoc)→ void>Updates nonce values in all action forms from the response document. Parses n...
I2PTunnelbindToggle()→ void>Binds the toggle info click handler if not already attached. Prevents duplica...
I2PTunnelrefreshIndex()→ void>Main refresh cycle function called on interval. Refreshes tunnel status and e...
I2PTunnelinitTunnelControl()→ void>Initializes tunnel control click handlers for start/stop/restart actions. Att...
I2PTunneltunnelControl async(form, action)→ Promise<void>Executes a tunnel control action via POST and updates the UI.
I2PTunnelresizeIframe()→ void>Resizes the parent iframe to fit content by posting a resize message. Only ex...
I2PTunnelpreloadImage(url)→ void>Preloads an image into browser cache for faster subsequent display.
I2PTunneltoggleElement()→ void>Toggles the throttler panel visibility and persists state.
I2PTunnelinitToggleInfo()→ void>Toggles the display of tunnel info rows between collapsed and expanded states...
ConsoleadvConfigInit()→ void>Initializes the advanced configuration interface by converting the textarea i...
ConsoleclearOldRows()→ void>Removes old configuration rows from the DOM before rebuilding the table.
ConsolecreateRow(key, value)→ HTMLTableRowElement>Creates a table row with editable key and value cells and a delete cell.
ConsoleupdateTextarea()→ void>Synchronizes the hidden textarea with the current state of the editable table...
ConsolesubmitNewKeyValue()→ void>Submits a new key-value pair by creating a row and clearing the input fields.
ConsoleaddFilter()→ void>Adds a filter input to the configuration header for searching key-value pairs.
ConsoledoSave(event)→ void>Handles save logic: validates new key-value inputs, checks for duplicates, an...
ConsoleresetForm(event)→ void>Resets the form to the original configuration stored in a hidden input.
ConsolefloodfillStatus()→ void>Polls for the floodfill config element and adds a status badge to the header.
Consolespanify()→ void>Finds the changelog pre element, splits content by blank lines, and wraps eac...
Consoleinit()→ void>Initializes click handlers to clear selected tab styling from toggle elements.
ConsoleclearSelected()→ void>Removes the &quot;tab2&quot; class from all elements with class &quot;toggles...
ConsoleaddClickHandler1(elem)→ void>Attaches a click handler to the given element that clears selected tabs.
ConsoleclickToClose(element)→ void>Adds the &quot;closed&quot; class to an element and removes it from the DOM a...
ConsolesetupClickToClose(selectors)→ void>Sets up a delegated click listener on the document body that closes matching ...
ConsoleupdateCountSpan(thElement, checkedItems, totalItems, needsSaving)→ void>Updates or creates a count span in the table header showing checked/total stats.
ConsolegetCheckboxState(checkboxes)→ Object<string, boolean>Captures the current checked state of all checkboxes as an object.
ConsolenaturalSort(a, b)→ number>Performs a natural (human-friendly) sort comparison between two strings.
Consoleinitialize()→ Object<string, Object<string, boolean>>Initializes stat group rows with checkbox listeners and count displays.
ConsolerenderSortedSections(sections)→ void>Renders the sorted stat sections back into the table body.
ConsoleshowHideTunnelCounts()→ void>Sets up toggle listeners on tunnel config headers to show/hide tunnel count b...
ConsoleconvertKBtoMB(selector)→ void>Converts KB text values to MB in matching DOM elements when value exceeds 102...
ConsolegetCsrfTokenFromMeta()→ string>|null>Retrieves CSRF token from meta tag or hidden form input.
ConsolegetCsrfTokenFromCookie()→ string>|null>Retrieves CSRF token from cookie.
ConsolecsrfFetch(url, [options], [options.method], [options.headers], [options.body], [options.credentials])→ Promise<Response>Fetches resource with CSRF protection headers.
ConsolecsrfXHR()→ XMLHttpRequest>Creates XMLHttpRequest with CSRF protection headers.
ConsolemanageZoomCSS()→ void>Manages the zoom CSS by detecting the device pixel ratio and dynamically load...
ConsolefindTbody(root, id)→ Object>|null>Finds the first tbody element with the given id in a VDOM tree.
ConsoleextractRows(tbody)→ Array<{key: (string|null), vdom: Object}>Extracts the direct tr children of a tbody as keyed VDOM entries.
ConsolepostResult(port, url, payload)→ void>Posts a result to the port that sent the request.
ConsolehandleDiff(port, url, html, tbodyId)→ void>Diffs a new row set against the stored snapshot for the url and posts the res...
Consoleonconnect(e)→ void>Handles new SharedWorker connections.
Consoleonconnect(e)→ void>Handles new SharedWorker connections by setting up message and close handlers...
ConsolehandleClientMessage(event, clientData, clientData.port, clientData.clientId)→ void>Processes incoming messages from a client port, debouncing or force-enqueuein...
ConsolesetClientVisibility(clientData, visible)→ void>Updates a client's visibility state, purging all its pending work when it bec...
ConsolepurgeClientWork(clientId)→ void>Removes all pending debounce timers and queued fetches for a client.
ConsoleenqueueFetchRequest(url, now, clientData)→ void>Enqueues a fetch request, executing immediately if concurrency limit not reac...
ConsoleprocessFetchRequest(url, now, clientData)→ Promise<void>Executes a fetch request and posts the response back to the client port. Requ...
ConsoleupdateLastRequestTime(clientId, now)→ void>Updates the last request timestamp for a given client.
ConsoleincrementNoResponse()→ number>Increments and returns the no-response counter.
ConsoledecrementActiveRequests()→ void>Decrements the active request counter.
ConsoleprocessNextFetchRequest()→ void>Processes the next fetch request in the queue if concurrency limit allows. Sk...
ConsolecleanupClient(clientData)→ void>Cleans up resources associated with a disconnected client.
Consolerefresh(elementId, url)→ void>Refreshes a specific DOM element by fetching the URL and replacing its innerH...
ConsolesetupFormListeners(formId, elementId, url)→ void>Sets up form submission and iframe load listeners to trigger content refresh.
ConsolegetQueryParameter(name)→ string>|null>Retrieves a URL query parameter by name.
ConsolerenderTemplate(template, context)→ string>Renders a template string with variable substitution.
Consoledebounce(func, wait, [immediate])→ function>Creates a debounced version of the given function.
ConsolescheduleRetry(callback, [attempt])→ void>Schedules a retry with exponential backoff.
ConsolepreloadFlags(codes)→ void>Preloads country flag images into a hidden container for faster rendering.
ConsolestoreRouterCounts async()→ Promise<void>Fetches router data from /netdb, parses country/floodfill/tier counts, and st...
ConsolegetRouterCount(shapeId, [routerClass])→ number>Gets the router count for a specific country/shape and classification.
ConsolegetRouterTotalByClass(routerClass)→ number>Gets the total router count for a specific classification.
ConsoleupdateShapeClass(shapeId, count)→ void>Updates the CSS class of an SVG shape based on the router count threshold.
ConsoleupdateShapeClasses(routerClass)→ void>Updates all SVG shape classes for the given router classification.
ConsolecreateInfobox(data, infoboxTemplate, shapeId, [routerClass])→ void>Populates the infobox element with country data, flag, and router count.
ConsolerenderTotals()→ void>Renders the total router count in the infobox for the current classification.
ConsolehandleEventCore(event)→ void>Core handler for mouse events on map paths.
ConsolegetCapsParam()→ string>Gets the caps query parameter value based on the current router class.
ConsolehandleMouseReposition(target)→ void>Handles throttled DOM repositioning of hovered path elements.
ConsolesetNavButtonActive()→ void>Highlights the active navigation button based on the current URL query parame...
ConsolegetLocalStorageHideLegend()→ boolean>Reads the hide legend preference from localStorage.
ConsolesetLocalStorageHideLegend(value)→ void>Saves the hide legend preference to localStorage.
ConsolegetHideLegendFromURL()→ boolean>|null>Reads the hideLegend query parameter from the current URL.
ConsoleupdateHideLegendInURL(url, hideLegend)→ string>Updates or appends the hideLegend parameter in the given URL string.
ConsolesyncLocalStorageWithURL()→ void>Synchronizes localStorage hide legend state with the URL parameter if present.
ConsoleinitButtons()→ void>Sets up click delegation for graph option links, handling legend toggling and...
ConsoleinitCss()→ void>Injects the graph container width style in one shot. Safe to call before the ...
ConsoleinjectCss()→ void>Injects a style element with the graph container width based on the image dim...
ConsolerefreshGraph()→ void>Sets up periodic graph image refresh at the configured interval.
ConsolecheckLocalStorageAndRedirect()→ boolean>Checks localStorage for a hide legend preference and redirects the page if th...
ConsoleinitializeSearchFilter()→ Object>Creates and appends a search filter UI element above the graph list.
ConsoleapplyFilter(input)→ void>Filters graph containers based on the search input text and alias map.
ConsoledebounceFilter(func, [delay], input)→ function>Creates a debounced version of the filter function.
ConsoledisconnectObservers()→ void>Disconnects all active IntersectionObservers and clears the array.
ConsoleinitializeObservers(target, debouncedFunc, input)→ void>Sets up MutationObserver on the target and IntersectionObservers for each gra...
ConsoleapplyDimensions async()→ Promise<boolean>Applies the natural dimensions of the first graph image to the container style.
ConsoleensureDimensions()→ void>Retries applying dimensions until successful or no images remain.
ConsoleupdateGraphs async(input, debouncedFunc)→ Promise<void>Refreshes all graph images via preloaded images and updates the display.
ConsoletoggleView()→ void>Toggles the visibility of the graph configuration panel.
ConsoleloadToggleCss()→ void>Dynamically loads the graph configuration toggle CSS if not already loaded.
ConsoleisDown()→ void>Checks if graph images are present; shows an error message if none are loaded.
ConsolestopRefresh()→ void>Stops the graph refresh interval timer.
ConsoleloadExpandedSections()→ Set<string>Loads expanded section IDs from localStorage.
ConsolesaveExpandedSections(expandedSections)→ void>Saves the expanded section IDs to localStorage.
ConsoleinitJobqueueToggles()→ boolean>Initializes section toggles for the jobqueue page, applying default and store...
ConsolefetchJobs async()→ Promise<void>Fetches job data from /jobs, compares with existing rows, and updates the DOM...
ConsolestartRefresh()→ void>Starts the periodic job data refresh interval.
ConsolestopRefresh()→ void>Stops the periodic job data refresh interval.
Consolecompact()→ void>Compacts leaseset tables by repositioning encryption keys after expiry cells.
ConsolecountTypes()→ void>Counts signature and encryption types across all leasesets and displays summa...
ConsolestyleLabels()→ void>Injects CSS styles for leaseset counter labels and badges.
ConsolesortLeasesets()→ void>Sorts leaseset tables by priority (published &gt; unpublished &gt; known clie...
ConsolerefreshLeasesets()→ void>Fetches updated leaseset content and replaces the current container.
ConsolestartRefresh()→ void>Starts the periodic leaseset refresh interval.
ConsolestopRefresh()→ void>Stops the periodic leaseset refresh interval.
ConsoleinitLSCompact()→ void>Initializes the leaseset compact view with refresh, styling, sorting, and debug.
ConsolelsDebug()→ void>Merges and consolidates the leaseset debug and keyspace tables into a single ...
ConsoleperiodLength(minutes)→ number>Buffer length that represents the configured period. One sample per SAMPLE_SE...
ConsolegetCSSVar(name)→ string>Reads a CSS custom property from the document root.
ConsoleparseFillStyle(ctx, cssValue, startY, endY)→ string>|CanvasGradient>Creates a Canvas fill style from a CSS variable value. Supports flat colors (...
ConsoledrawSpline(ctx, pts, close, tension)Draws a cardinal spline through a set of points on a canvas context. Based on...
ConsolevalueToYIn(value, maxVal)→ number>Converts a data value to a Y coordinate for the top half (inbound, inverted)....
ConsolevalueToYOut(value, maxVal)→ number>Converts a data value to a Y coordinate for the bottom half (outbound, normal...
ConsolevalueToYOverlay(value, maxVal)→ number>Converts a data value to a Y coordinate for overlay mode (both lines from top...
ConsoleparseValues(str)→ Array<number>Parses a comma-separated string of numeric values into an array of numbers.
Consoleinterpolate(lowRes, pointsPerStep)→ Array<number>Linearly interpolates a low-resolution array into a high-resolution array. Ea...
ConsolerestoreBuffers(minutes)→ boolean>Restores shift buffers from sessionStorage if available and data-minutes matc...
ConsolesaveBuffers(minutes)Persists shift buffers to sessionStorage. Caps stored length to the period le...
ConsoledrawHalf(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...
ConsoledrawGrid(ctx, minutes, split)Draws a subtle dotted grid behind the graph data. Split mode: horizontal line...
ConsolerenderNewGraph()→ void>Main render function. Reads data from the canvas element attributes and draws...
ConsoleinitNewGraph()→ void>Initializes the new minigraph renderer. Re-renders on a polling interval to h...
ConsoleminiGraph()→ void>Initializes the mini graph by starting the SharedWorker connection and settin...
ConsolehandleWorkerMessage(event)→ void>Handles messages from the SharedWorker, initiating refresh intervals and proc...
ConsolerefreshGraph()→ void>Sends a fetch request to the worker for the latest bandwidth graph image.
ConsolehandleGraphUpdate(responseBlob)→ void>Processes a graph image blob from the worker and renders it to the offscreen ...
Consoleinit()→ void>Starts the active renderer: the new canvas renderer at parse time when the si...
ConsoleinitRefresh()→ void>Initializes auto-refresh based on the current view type (countries, RI, or LS...
ConsolecreateSelectForField(field, [value])Populated &lt;select&gt; for the given dropdown field.
ConsolecreateTextInput([value])Text input for free-form query entry.
ConsoleswitchQueryField()Swap query input between text and &lt;select&gt; depending on the field type.
ConsoletooltipShow()→ void>Shows the new hosts tooltip; looks elements up at event time so the handlers ...
ConsoletooltipHide()→ void>Hides the new hosts tooltip; looks elements up at event time.
ConsoleensureTooltipListeners(badge)→ void>Attaches the tooltip listeners to the current badge node exactly once; re-att...
ConsolenewHosts()→ void>Initializes the new hosts badge with periodic fetching, caching, and tooltip ...
ConsolegetStoredData()→ Object>Retrieves cached new hosts data from localStorage.
ConsolefetchNewHosts()→ void>Fetches the latest hosts from /susidns/log.jsp, filters by 24-hour window, an...
ConsolegetNewHosts()→ void>Retrieves new hosts from cache if recent enough, otherwise triggers a fresh f...
ConsoleupdateTooltip(hostnames)→ void>Updates the tooltip content with a list of new hostnames as clickable links.
Consolemodal(msg, [buttonText])→ Promise<void>Displays a modal dialog with the given message and an OK button. Returns a Pr...
ConsolecenterModal()→ void>Centers the modal dialog in the viewport and focuses the OK button.
ConsolehandleEnterKey(event)→ void>Handles the Enter key press on the OK button, triggering the click action.
ConsoleaddListener()→ void>Adds a one-time visibility change listener to the document.
ConsoleonVisible(element, callback)→ void>Executes the callback once when the element becomes visible in the viewport a...
ConsoleonHidden(element, callback)→ void>Executes the callback once when the element becomes hidden (leaves viewport) ...
ConsoleinitRefresh()→ void>Initializes refresh listeners and table sort event handlers.
ConsoleaddSortListeners()→ void>Adds progress bar handlers for beforeSort/afterSort events on peer tables.
ConsolecountTiers()→ void>Counts peers by bandwidth tier (L, M, N, O, P, X) and floodfill status, displ...
ConsolesetupEngineRefresh(selector, tbodyId)→ void>Sets up periodic element refresh for the given selector.
ConsolesetupRefresh(selector, fragmentIds)→ void>Sets up periodic element refresh for the given selector, requesting only the ...
ConsolesetupSummaryRefresh()→ void>Sets up periodic refresh for the transport summary section.
ConsolesaveFilterState()→ void>Persist filter state to localStorage so it survives page refresh. Saves both ...
ConsoleloadFilterState()→ void>Restore filter state from localStorage on page load. Populates both disabled-...
ConsoleinitRefresh()→ void>Initializes sort listeners and refresh schedules for profile pages.
ConsoleaddSortListeners()→ void>Sets up Tablesort instances and progress bar handlers for profile tables.
ConsolesetupRefreshes()→ void>Configures periodic element refresh for profile rings, lists, floodfills, and...
ConsolefilterBanTable()→ void>Filters the session ban table based on active reasons in the summary list.
ConsoleupdateBanSummary(banBody)→ void>Generates and displays a summary of session bans grouped by reason.
ConsoleinitProgressX(window, document)→ void>
ConsolereportVisibility(port)→ void>Reports the page's visibility to the SharedWorker so the fetch worker can sus...
ConsolenormalizeSelectors(targetSelectors)→ Array<string>Splits a selector string or array into trimmed selector strings.
ConsolenormalizeFragmentIds(fragmentIds)→ string>|null>Joins fragment element ids into a comma-separated contentonly parameter value.
ConsoleinstallScrollGate()→ void>Shared per-page scroll gate: flips a flag while the user is actively scrollin...
ConsolecreateScrollDeferred()→ function>Runs an apply function immediately, or holds the latest one until the user st...
ConsoleappendContentOnly(url, ids)→ string>Appends the contentonly parameter to a fetch URL.
ConsolerealizeVdom(vnode)→ Node>|null>Realizes a serializable VDOM node (from diffWorker.js) as a live DOM node. Sc...
ConsolerefreshElements(targetSelectors, url, delay, [immediate], [silent], [fragmentIds], [diffRows], [minInterval])→ function>Sets up periodic element refresh using a SharedWorker for fetch requests. Aut...
ConsoledispatchDone()→ void>Dispatches the refresh events after a patch is applied.
ConsolepatchRows(tbodyId, result)→ boolean>Applies a row-level diff result to the live tbody. Inserted rows carry their ...
ConsolepatchFull(tbodyId, vdom)→ Object>Full fallback: replace the tbody contents wholesale (first tick, row order ch...
ConsolepatchResponse(vdom)→ void>Patch the document from a fetched response with morphdom (no row diff). The r...
Consolestop()→ void>Halts the refresh loop for this instance.
Consolestart()→ void>Initializes log page refresh functionality including worker setup, filter inp...
ConsoleprocessUpdates(doc, els, state)→ void>Queues DOM updates for error counts, critical logs, router logs, and service ...
ConsoleinitRefresh()→ void>Starts the log refresh interval, retrying until required elements are available.
ConsolestopRefresh()→ void>Stops the log refresh interval timer.
ConsolerefreshLogs(state, els)→ void>Triggers a log refresh by posting a fetch URL to the SharedWorker.
ConsoleupdateInterval(state, els)→ void>Reads the refresh interval from localStorage and updates the input control an...
ConsoleaddFilterInput(els)→ void>Adds a debounced input listener to the log filter text field.
ConsoleapplyFilter(els)→ void>Filters log list items based on the current filter input value.
ConsolelinkifyLogEntries(container)→ void>Converts router IDs, lease hashes, and IP addresses in log entries into click...
ConsoletagFirstLi(list)→ void>Tags the first list item with a unique data-key attribute for morphdom diffing.
ConsolerefreshOnClick(triggerSelectors, updateSelectors, [interval], [maxAttempts])→ void>Sets up click-triggered AJAX refresh for specified DOM elements.
ConsoleupdateCachedElements()→ void>Caches references to sidebar badge and volatile elements for efficient updates.
ConsolegetRefreshInterval()→ number>Gets the configured refresh interval in milliseconds.
Consolestart()→ void>Initializes all sidebar components and starts auto-refresh.
ConsoleconsumeKick()→ void>Hands off from the parse-time kicker (refreshKick.js): stops its refreshEleme...
ConsolestartAutoRefresh()→ void>Starts the sidebar auto-refresh interval timer.
ConsolestopAutoRefresh()→ void>Stops the sidebar auto-refresh interval timer.
ConsolerefreshSidebar([force])→ void>Triggers a sidebar refresh by posting a fetch request to the SharedWorker. Se...
ConsoleapplySidebarUpdates()→ void>Applies differential updates from the fetched sidebar document to the current...
ConsoleupdatePersistentBars(responseDoc)→ void>Updates non-volatile memory and CPU bars from the response document. The bars...
ConsolesyncGraphDataAttributes()→ void>Copies data-rx/data-tx attributes from the response canvas to the live canvas...
ConsolerefreshAll()→ void>Performs a full sidebar refresh by replacing all innerHTML from the fetched d...
ConsoleisOnline()→ boolean>Checks if the browser reports an online connection.
ConsoleupdateConnectionStatus()→ void>Updates the connection status, adding/removing &quot;isDown&quot; class and t...
ConsolecheckConnectionStatus()→ void>Triggers a connection status check via the debounced update function.
ConsolehandleStatus()→ void>Handles online/offline/visibility events by triggering a forced sidebar refre...
ConsoleinitSidebar()→ void>Initializes the sidebar when the xhr container is available, with a bounded r...
ConsoleresetScrollLeft(element)→ void>Resets the horizontal scroll position of an element to 0.
ConsoleinitResetScroll()→ void>Initializes blur event handlers on all &quot;resetScrollLeft&quot; elements.
ConsolesmoothScroll(target)→ void>Smoothly scrolls the given target element into view.
ConsoleinitScrollers()→ void>Attaches click handlers to all &quot;scrollToNav&quot; elements that smooth-s...
ConsolesearchLS()→ void>Creates and appends a search UI for leaseset lookups with localStorage persis...
ConsolesectionToggler()→ void>Initializes sidebar section toggle controls, restoring persisted states and a...
ConsoleinitializeLocalStorage()→ Promise<Object>Initializes storage with default sidebar section visibility states.
ConsolesaveToggleStates async()→ Promise<void>Saves the current toggle state of the active element to storage.
ConsolerestoreToggleStates()→ void>Restores toggle states from storage, delegating to the sidebarState helper th...
ConsoleaddToggleListeners()→ void>Attaches delegated click listeners for toggle interactions on the sidebar.
ConsolecountNewsItems()→ void>Counts news items in the sidebar and updates the news badge display.
ConsoleinitSelectAll()→ void>Initializes click handlers on readonly input elements to select their text co...
ConsoleaddSelectAllHander(elem)→ void>Attaches a click handler that selects all text in the element.
ConsoleselectAll(element)→ void>Selects all text content within the given input element.
ConsolesetupIframe()→ void>Checks if the page is in an iframe context and applies the &quot;iframed&quot...
ConsoleendOfPage()→ void>Creates and appends an end-of-page marker element for iframe height detection.
ConsolerefreshLocalTunnelsSummary()→ void>Rebuilds the collapsed local-tunnel summary counts from the current #sb_local...
ConsolereadSidebarState()→ Object>|null>Reads the saved section state, preferring localStorage and falling back to th...
ConsolesaveSidebarState(state)→ void>Persists the section state to localStorage and mirrors it to the sidebarSecti...
ConsolereadCookieState()→ Object>|null>Reads the section state from the sidebarSections cookie.
ConsolehandleServicesVisibility(toggleInput, element, isVisible)→ void>Toggles the services section between icon and text link display.
ConsolehandleUpdateSectionVisibility(toggleInput, element, isVisible)→ void>Toggles the update section visibility and collapsed class.
ConsolehandleLocalTunnelsVisibility(element, isVisible)→ void>Refreshes the local-tunnel summary counts and toggles the summary visibility ...
ConsolesetSidebarSectionState(toggleInput, isVisible)→ void>Applies the visibility of a sidebar section from its toggle input state.
ConsoleapplySidebarState()→ void>Restores all sidebar section toggle states from storage.
ConsolerefreshLocalTunnelsOnRefresh()→ void>Recompute local-tunnel counts after any element or sidebar refresh, regardles...
ConsolereportVisibility()→ void>Reports the page's visibility to the SharedWorker so the fetch worker can sus...
ConsolestickySidebar()→ void>Calculates sidebar and viewport heights and applies/removes sticky positioning.
ConsolecalcHeight()→ void>Compares sidebar height to viewport and toggles sticky CSS accordingly.
ConsoleinitTablesort()Attach Tablesort to each .streams table. Safe to call repeatedly — returns fa...
ConsoleswitchToBodyRefresh()Switch refresh target to tbody + streamstats so morphdom preserves the thead ...
ConsoletoggleRows()→ void>Sets up click-to-toggle behavior for table sections, showing one section at a...
Consoleempty()→ boolean>
ConsoleemptyLast(cmp)→ function>Wrap a comparator so empty cells always sort to the bottom, regardless of dir...
ConsolenumberCmp(a, b)→ number>Number comparator — strips non-numeric chars except E/e/%.
ConsolenumberPattern(item)Match only pure numbers/percentages. Previously any string containing a digit...
ConsolenaturalCmp(a, b)→ number>Natural sort — splits text into numeric/text chunks for human-friendly ordering.
ConsolenaturalPattern(item)
ConsoledotsepCmp(a, b)→ number>Dot-separated comparator (IPs, version numbers). Pads shorter segment lists w...
ConsoledotsepPattern(item)
ConsolefilesizeCmp(a, b)→ number>Filesize comparator — converts with/without suffix to bytes (1024-base).
ConsolefilesizePattern(item)
ConsolemonthnameCmp()Month-name comparator. @param {string} a @param {string} b @returns {number}
ConsolemonthnamePattern(item)
ConsoledateCmp(a, b)→ number>Date comparator — normalises separators and formats before parsing.
ConsoledatePattern(item)
ConsoleintlCmp()Intl.Collator comparator (locale-aware). @param {string} a @param {string} b ...
ConsoleintlPattern()Intl never auto-detects; requires data-sort-method=&quot;intl&quot;. @returns...
ConsolestringCmp()Default string fallback (case-insensitive). @param {string} a @param {string}...
ConsolesortRows(rows, sortColumn, direction, columnType)→ Array<Object<string, string>>Sort an array of row data in place by a column, applying the selected compara...
Consoleonmessage(e)Receives sort data from the main thread, sorts rows, and posts results back.
ConsoleTablesort(el, [options], [options.descending])
ConsolecreateEvent(name)→ CustomEvent>Create a CustomEvent (old-browser fallback).
ConsolegetInnerText(el)→ string>Read cell text; prefers data-sort attribute.
ConsolegetCellByKey(cells, key)→ HTMLElement>|undefined>Find a cell by data-sort-column-key attribute.
Consoleextend(name, pattern, sort)Register a named sort extension.
Consoleinit(el, options)Attach click and keydown listeners to header cells. Skips cells with data-sor...
ConsolesortTable(header, [update])Sort the table by the clicked header. Dispatches beforeSort / afterSort event...
ConsolesortWithWorker(header, update, columnKey, column, sortMethod, sortOrder, [caseInsensitive])Sort table rows. Extracts row text and determines the sort type, then sorts v...
Consolerefresh()Re-apply current sort without toggling direction. Use after row data changes.
ConsoleaddResizeListener(element)→ void>Adds an input listener to a textarea that dynamically adjusts its height to f...
ConsolesetupToggles(toggleSelector, hiddenSelector, displayStyle, [collapseByDefault], [displaySingle])→ void>Sets up toggle behavior for elements matching the given selectors.
ConsoleinitTransit(config, config.fetchUrl, [config.refreshInterval], [config.retryDelay])→ void>Initializes a transit-style page with auto-refresh and tablesort.
ConsolegetDOM()Caches DOM element references.
ConsolebindRefreshBtn()Binds the refresh link to trigger an immediate refresh.
ConsolesetupTablesort()Initializes Tablesort on the transit table.
Consolerevalidate()Re-caches DOM refs and Tablesort after a whole-div refresh replaced the table.
ConsolestartRefresh()Shows the progress bar.
ConsoleendRefresh()Hides the progress bar.
ConsolerefreshData()Fetches fresh transit data via SharedWorker and replaces matching DOM elements.
Consoleinit()Starts the refresh cycle.
ConsolesetupSort()→ void>Initializes the Tablesort instance on the transit summary table.
ConsoleupdateTunnels()→ void>Triggers an element refresh for transit tunnel and peer data.
ConsolehideComplete(txTables)→ void>Hides completed translation rows and marks tables with no incomplete rows as ...
ConsoleshowComplete(txTables, showCompleteClass)→ void>Shows all translation rows and applies the showAll CSS class to the summary.
ConsoleinitTuningToggles()→ void>Auto-tuning checkbox toggle: when unchecked, replace Min/Max/Step inputs with...
ConsolesaveTuningState()→ void>Persist the list of expanded section headings to localStorage.
ConsolerestoreTuningState()→ void>Restore expanded section headings from localStorage. Matches saved labels aga...
ConsoleinitTuning()→ void>Initialise on DOM ready: start AJAX refresh, wire up checkbox toggles, sectio...
ConsoleupdateTunnels async()→ Promise<void>Refreshes tunnel peer data elements via the refreshElements system.
ConsoleinitRefresh()→ void>Starts the periodic data refresh for tunnel peer counts.
ConsoleinitFilter()→ void>Creates and appends the filter input UI with clear button and localStorage pe...
ConsolecheckForCachedFilter()→ void>Restores the filter value from localStorage and applies it.
ConsoleapplyFilter(filterValue)→ void>Filters tunnel peer rows based on key=value filter syntax. Supports tier, cc/...
ConsoledisplayPeerCount()→ void>Updates the displayed peer count in the navigation tab based on filtered resu...
ConsoleaddFilterListener()→ void>Attaches an input listener to the filter field for real-time filtering and UR...
ConsoleapplyQueryParamsFilter()→ void>Applies filter values from URL query parameters on page load.
ConsoleupdateURLWithFilter(filterValue)→ void>Updates the browser URL with the current filter value using replaceState.
ConsolepersistTunnelTableVisibility()→ void>Restores tunnel table visibility state from localStorage on page load.
ConsolepersistTunnelIdVisibility()→ void>Restores tunnel ID visibility state from localStorage on page load.
ConsoleupdateTunnelCounts()→ void>Recalculates and updates tunnel in/out count displays for each pool.
ConsolegetBaseAttributes(token)→ *Get attributes from a string token and return an object
ConsolegetAttributes(tagStr, config)→ *Get attributes from a string token and return an object. In addition to the b...
ConsoletoLowerCase(str)→ *Converts a string to lowercase.
ConsoletoUpperCase(str)→ *Converts a string to uppercase.
ConsolestartsWith(str, prefix, position)→ *Checks if a string starts with a specified prefix.
ConsoleendsWith(str, suffix, position)→ *Checks if a string ends with a specified suffix.
ConsolefromCharCode(char)→ *Creates a string from a character code.
ConsolecharCodeAt(str, index)→ *Returns the character code at a specific index in a string.
ConsoledefineProperties(obj, props)→ *Defines multiple properties on an object.
ConsoleisObj(node)→ *Checks if a node is an object.
ConsoleisRoot(node)→ *Checks if a node is a root object (RootNode or RootLike).
ConsoleisTag(node)→ *Checks if a node is a tag node (NodeLike or DOMNode).
ConsoleisNode(node)→ *Checks if a node is a root node (RootLike or RootNode), a tag node (NodeLike ...
ConsoleisPrimitive(val)→ *Checks if a value is a primitive (number or string).
Consoletrim(str)→ *Trim a string value.
Consoletokenize(html)→ *Tokenizes an HTML string into an array of HTML tokens. These tokens represent...
ConsoleParser()→ *Parser A tiny yet very fast and powerful parser that takes a string of HTML a...
ConsoledecodeTree(node, inRawText)→ void>Decodes entities in text nodes and attribute values. Text inside and is raw b...
Consoleparse(htmlString)→ Object>Parses an HTML string into a serializable VDOM tree whose shape matches the b...
ConsoleextractTooltip(title)→ Array<string>Extracts tooltip content from bracketed text in a title string.
ConsolecleanValue(value)→ string>Cleans and formats a raw profile value by removing brackets, GMT suffixes, an...
ConsoleconvertEpochToReadableDate(epoch)→ string>Converts an epoch millisecond timestamp to a human-readable date string.
ConsoleconvertBtoKB(bytes)→ string>Converts bytes to kilobytes with two decimal places.
ConsoleaddToggles()→ void>Sets up collapsible section toggles for the profile table, expanding router i...
SusiDNShandleClear()→ void>Updates the clear-search anchor visibility and href based on whether the sear...
SusiDNSperformDelete async(hosts)→ Promise<void>Performs an asynchronous deletion request for the specified hosts from the ro...
SusiDNSextractMessageContent(html)→ string>Extracts the message content from the server response HTML by querying the el...
SusiDNSdisplayMessage(message, className, hosts)→ void>Displays a status message to the user, optionally including a list of affecte...
SusiDNStoggleAll(selectAll)→ void>Toggles every host checkbox to the given state and updates the master &quot;s...
SusiDNScreateSelectAllCheckbox()→ void>Creates and injects a &quot;select all&quot; checkbox into the dead-hosts hea...
SusiDNStoggleVisibility(showContainer, hideContainer)→ void>Shows one panel container and hides the other, adjusting page layout and scro...
SusiDNStoggleBodyClass()→ void>Adds or removes the &quot;displayPanels&quot; class on &lt;body&gt; based on ...
SusiDNSresetAddInputs()→ void>Clears all text input values inside the &quot;Add&quot; panel and hides the c...
SusiMailSanitizeHtml(input, [extraSelector], [callback])→ string>Sanitizes HTML using allowlist approach.
SusiMailinitPopup()→ void>Iterates over all elements with class &quot;beforePopup&quot; and attaches a ...
SusiMailaddClickHandler5(elem)→ void>Attaches a click listener to the given element that sets the global {@link be...
SusiMailhandleModal()→ void>IIFE that manages the lifecycle of the delete-mail modal dialog. Handles posi...
SusiMailtoggleModalStyles async()→ Promise<void>Toggles modal display state by positioning the #nukemail dialog, managing bod...
SusiMailcreateOverlay async()→ Promise<HTMLElement>Creates and appends a fullscreen overlay &lt;div&gt; to the document body.
SusiMailinitButtons()→ void>Initialises all interactive buttons in the folder view by mapping CSS class n...
SusiMailsetupDeleteClickHandler(elem, form)→ void>Attaches a click handler that enables/disables the delete button based on whe...
SusiMailsetupToggleSelectionHandler(selectAll)→ function>Returns a handler factory that checks or unchecks all visible delete-checkbox...
SusiMailaddDirectClickHandler(elem)→ void>Attaches a click handler that navigates to the URL stored in the element's da...
SusiMaildeleteboxclicked(form)→ void>Evaluates the current checkbox state and updates the delete, mark-all, and cl...
SusiMailinitViewToggle()→ void>Sets up the view-toggle and &quot;open in new tab&quot; buttons by copying th...
SusiMailsetupFallbackCss()→ 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.
SusiMailmakeHtml(text)→ string>Main entry point: converts markdown to HTML.
SusiMailinitMarkdown()→ void>Initializes markdown rendering for all mailbody elements with data-markdown a...
SusiMailremoveNotify()→ void>IIFE that sets up DOM-based notification management. Removes empty notices on...
SusiMailpreviewMail()→ void>Sets up the preview-popup system. Wires up mouseenter/mouseleave event delega...
SusiMailfetchPreview 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...
SusiMailcleanText(raw)→ string>Normalises raw extracted text by collapsing whitespace, removing boilerplate ...
SusiMailensurePopup()→ HTMLElement>Lazily creates the preview popup &lt;div&gt; element with theme-aware styling...
SusiMailpositionPopup(targetEl)→ void>Positions the popup element relative to the target anchor, preferring below b...
SusiMailshowPopup async(el, showValue)→ Promise<void>Displays the preview popup anchored to the given element, fetches the preview...
SusiMailhidePopup()→ void>Hides the preview popup if it exists.
SusiMaildoRefresh()→ void>Fetches the current mailbox HTML and diffs/updates the relevant DOM sections ...
SusiMailremoveDupeNotices()→ void>Removes duplicate notification elements, keeping only the first one.
SusiMailsanitizeHTML()→ void>Iterates every element in the document, normalising inline styles, hiding rem...
SusiMailtoggleBlockedImages()→ void>Toggles the visibility of all blocked images and web bugs inside the HTML mai...
SusiMailcreateButton()→ void>Creates a &quot;Toggle Images&quot; button and appends it to the blocked-imag...
SusiMailinitToggleHeaders()→ void>Initialises the expand/collapse toggle buttons for debug headers.
SusiMailtoggleHeaders()→ void>Toggles the display of each debug header row between &quot;table-row&quot; an...