Nitro Type Startrack Leaderboard Integration

OPTIMIZED - Bug fixes: race condition guard, error handling, curtain removal

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

作者
Superjoelzy[NTPD1] Captain.Loveridge
日安装量
2
总安装量
26
评分
0 0 0
版本
8.9
创建于
2025-11-07
更新于
2025-11-19
大小
40.1 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.
  • 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, gold member icons, team colors, 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.
  • Date Navigation: Previous/Next/Today buttons and custom date picker for flexible browsing.

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 building car database from NTBOOTSTRAP.
  • Cache updates every hour automatically; no manual refresh option yet.

🔮 Future Updates:

  • Top Racer Badges: Display special badges for elite performers.
  • League Indicators: Show which league each racer belongs to.
  • Racer Titles/Mottos: Display when API provides this data (currently shows "titles coming soon").
  • Painted Car Support: Automatic painted car rendering when carHueAngle is added to API.
  • Performance improvements and mobile optimization.

Change Log:

  • 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