The Greasemonkey Firefox addon that allows you to run site specific JS has been around for two decades [1].
Chrome also used to natively support userscripts back in 2010 [2] but they mostly killed it off
[1] https://en.wikipedia.org/wiki/Userscript
[2] https://lifehacker.com/chrome-4-supports-greasemonkey-usersc...
Tampermonkey has analytics enabled, and is closed source.
Here's a comprehensive summary on all three. [3]
[1] https://addons.mozilla.org/en-US/firefox/addon/violentmonkey