Re:For your next side project, make a browser extension
by ge96 on Sunday January 15, 2023 @09:31PM
(#34396102)
A friend of mine uses this extension that tracks emails. It injects a pixel it made remotely into the email body. That sketches me out so much ha.
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.
Re:For your next side project, make a browser extension
by kshay on Sunday January 15, 2023 @10:25PM
(#34396448)
Right, for the average user the barrier to entry for userscripts is significantly higher than for extensions. I recently released one (a small enhancement to the Netflix UI) in both forms for this reason: https://greasyfork.org/en/scripts/446689-netflix-recommendat..., https://chrome.google.com/webstore/detail/netflix-recommenda...
Re:For your next side project, make a browser extension
by AgrMohit on Monday January 16, 2023 @09:46AM
(#34401132)
As for keyboard shortcuts, userscripts can do that by observing individual key presses. I personally use a tiny library [0] by the Violentmonkey team to do it which is easy to use and smooths out differences between platforms and browser implementations.
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...
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.
1. https://developer.chrome.com/docs/extensions/reference/