by mmahemoff · 3y ago · 0 comments
It's true that many extensions could "just be" Tampermonkey scripts. I'd guess they ship as standalone extensions due to a combination of: less friction to install, more discoverable, can extend with fancier features later on, and probably just inertia/ignorance from developers unaware of Tampermonkey.
While userscripts can't add items to toolbar or context menus, you can register menu commands [1] which have the added benefit of being able to be added dynamically after examining page contents. This is done using the `GM_registerMenuCommand` api [2].
[0]: https://violentmonkey.github.io/guide/keyboard-shortcuts
[1]: https://imgur.com/a/SWpOoRS
[2]: https://violentmonkey.github.io/api/gm/#gm_registermenucomma...
But yeah I have made a few extensions myself since I spend a lot of time in Chrome. If they go ahead with the anti-adblock I will have to learn Firefox's extension.