Greasy Fork is available in English.

Strava Segments Scroll Fix

Adds scroll bar to the "Segments" table on cycling activities. 27/04/2026

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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!)

// ==UserScript==
// @name         Strava Segments Scroll Fix
// @namespace    http://tampermonkey.net/
// @version      3.0
// @author       Strava!!!
// @license      MIT
// @description	 Adds scroll bar to the "Segments" table on cycling activities. 27/04/2026
// @match        https://www.strava.com/activities/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function applyScrollFix() {
        const table = document.querySelector('table.segments');
        if (!table || table.dataset.scrollFixApplied) return;

        table.dataset.scrollFixApplied = "true";

        const wrapper = document.createElement('div');

        // Slightly less than full viewport to match map area
        wrapper.style.maxHeight = '65vh';
        wrapper.style.overflowY = 'auto';

        table.parentNode.insertBefore(wrapper, table);
        wrapper.appendChild(table);
    }

    applyScrollFix();

    const observer = new MutationObserver(applyScrollFix);
    observer.observe(document.body, { childList: true, subtree: true });
})();