Nitro Type - Leaderboards

This script adds a custom Startrack Leaderboards tab to Nitro Type, providing advanced leaderboard functionality with multiple timeframes, intelligent caching, and a polished UI that closely matches the original Nitro Type leaderboard design.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
Superjoelzy and [NTPD1] Captain.Loveridge
Daily installs
2
Total installs
190
Ratings
0 0 0
Version
11.0.1
Created
2025-11-07
Updated
2026-03-25
Size
115 KB
License
MIT
Applies to

Nitro Type - Leaderboards

Custom Startrack-powered leaderboards for Nitro Type, with multiple timeframes, background cache warming, and a polished interface that fits Nitro Type’s native leaderboard style.

Features

  • Dual Leaderboard Views — Browse both Top Racers and Top Teams with rich row data and native-style presentation
  • Multiple Timeframes — Season, Last 24 Hours, 60 Minutes, Last 7 Days, Daily, Weekly, and Monthly
  • Position Change Arrows — Native-style rank movement indicators show how positions have shifted
  • Central Time Sync — Time-based views are calculated in Central Time to match Nitro Type’s server timing
  • Smart Caching — Configurable cache duration with fast tab switching and automatic reuse of warm data
  • Background Sync — Keeps key leaderboard caches up to date in the background so users usually do not have to wait on visible refreshes
  • Manual Refresh Button — Optional refresh button to force a fresh fetch and rebuild the background cache queue
  • Server-Side Bot Filtering — Bot accounts are excluded from supported individual leaderboard responses at the API level
  • Rich Visuals — Car images with painted hue support, racer titles, gold member icons, team colors, team names, and medal styling for top placements
  • Interactive Rows — Click rows to visit racer or team pages; team tags link directly to team profiles
  • Nitro Type - Mod Menu Integration — Configure default view, default timeframe, cache duration, nav visibility, refresh button visibility, and more through the mod menu

How to Use

Install the script with your userscript manager, then open /leaderboards on Nitro Type.

By default, the script adds a Leaderboards entry to Nitro Type’s top navigation bar. It can also add a Leaderboards link to the account dropdown if enabled in settings.

Known Notes

  • The first uncached load may take a moment while data is fetched and caches are populated
  • After that, switching views and revisiting the page is usually much faster thanks to shared cache reuse and background warming

Technical Details

  • API Source: NT StarTrack (ntstartrack.org)
  • Default Cache Duration: 60 minutes for rolling timeframes (configurable)
  • Time Zone: Central Time (America/Chicago) for date-based calculations
  • Car Images: Loaded from Nitro Type bootstrap data, including painted car hue support
  • Grant Permissions: GM_xmlhttpRequest for API requests, plus userscript storage for persistent settings