Safari had plugins from day one. As far as I know. Here is an early plug in from 2010 (
https://www.cultofmac.com/47232/macheist-tweaks-gruber-with-...)
But speaking of “closed”, where is the ad blocking extension for Chrome on Android and embedded web views?