Nitro Type Startrack Leaderboard Integration

Optimized caching - only fetch on page load, instant tab switching, bot filtering

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
Superjoelzy[NTPD1] Captain.Loveridge
今日安裝
1
安裝總數
20
評價
0 0 0
版本
8.1
建立日期
2025-11-07
更新日期
2025-11-18
尺寸
38.0 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