Adds scroll bar to the "Segments" table on cycling activities. 27/04/2026
// ==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 });
})();