Nitro Type Startrack Leaderboard Integration

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.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Superjoelzy[NTPD1] Captain.Loveridge
今日安裝
2
安裝總數
50
評價
0 0 0
版本
9.5
建立日期
2025-11-07
更新日期
2026-01-05
尺寸
50.6 KB
授權條款
MIT
腳本執行於

Nitro Type Startrack Leaderboard Integration

Made by [NHS] ✨superjoelzy✨ & [NTPD1]Captain.Loveridge

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.

Features:

  • Dual Leaderboard Views: Top Racers (with cars, team tags, NT Gold icons) and Top Teams with full statistics.
  • Multiple Timeframes: Season, Last 24 Hours, 60 Minutes, Last 7 Days, Daily, Weekly, Monthly, and Custom date ranges (added back soon).
  • Central Time Sync: All data synchronized to CT to match NT server time for accurate results.
  • Smart Caching: 1-hour cache duration with instant tab switching and background pre-caching for common timeframes.
  • Bot Filtering: Automatically removes bot accounts from individual leaderboards for accurate rankings.
  • Rich Visuals: Car images, car hue, racer titles, gold member icons, team colors, team names and medal icons for top 3 positions.
  • Interactive Rows: Click anywhere on a row to visit racer/team profiles. Team tags remain clickable for team pages.

How to Use:

Install the script with your userscript manager. A new "Leaderboards" tab will appear in Nitro Type's navigation bar. Click it to view leaderboards with various timeframes and filters.

Known Issues:

  • Initial load may be slow while getting data from NTstartrack and building the cache.
  • Cache updates every hour automatically, with a manual refresh button 🔄

🔮 Future Updates:

  • Top Racer Badges: Display special badges for the top racers support to be added through the badges script.
  • League Indicators: Show which league each racer belongs to.
  • Full Custom Search Tab Fix the Custom Search tab to have a UI that can easily search a cutom time period and get reliable data from startrack
  • Performance improvements and mobile optimization.

Change Log:

  • 9.5:
    • Added Painted car support
    • Fixed issue with loading certain cars
    • Added Racer Titles
    • Added Team Names correctly
    • Removed Custom search tab (to be fixed and added back soon)
  • 8.1:
    • Added Central Time (CT) synchronization for all timeframes and API calls.
    • Implemented bot filtering for individual leaderboards.
    • Added car images with NTBOOTSTRAP integration and localStorage caching.
    • Added NT Gold icons and proper gold member styling.
    • Implemented clickable rows for profiles/teams (same-tab navigation).
    • Improved team view with separate Tag and Team columns.
    • Enhanced display name styling with type-ellip classes.
    • Future-ready for painted cars (carHueAngle support).
  • 8.0: Initial release with optimized caching, instant tab switching, and multiple timeframe support.

Technical Details:

  • API Source: NT StarTrack (ntstartrack.org)
  • Cache Duration: 60 minutes (1 hour) for leaderboard data, permanent for car database
  • Time Zone: Central Time (America/Chicago) for all calculations
  • Car Images: Loaded from NTBOOTSTRAP with format https://www.nitrotype.com/cars/{smallSrc}
  • Grant Permissions: GM_xmlhttpRequest for API calls