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.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
Superjoelzy[NTPD1] Captain.Loveridge
日安装量
4
总安装量
59
评分
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