browser extension

 browser extension  (aka add-on ) is a third-party addition to a browser enabling new features for users such as new ways to interact with websites.

You may be looking for WebExtensions for the cross-browser framework for building browser extensions, or Safari Extensions for the history of extension support in Safari.