Safari does have extensions. The problem is that they’re nowhere near Chrome’s in quantity, but userscripts and shortcuts are also available without limits.
See https://developer.apple.com/safari/extensions/#:~:text=about....