Re:Browser extensions are underrated: the promise of hackabl...
by hiccuphippo on Monday July 29, 2019 @04:25PM
(#20559008)
I make extensive use of the Tampermonkey (for javascript) and stylus (for css) extensions. I probably don't have access to some of the browser's APIs but it is easier to create and edit scripts with them.
[ Parent
| on HN ]
Re:Browser extensions are underrated: the promise of hackabl...
by TeMPOraL on Monday July 29, 2019 @05:05PM
(#20559454)
Seconded. Both of those plugins are excellent for end-user improvements, because they let you simply add code to be run on a given site or set of sites. No nonsense with packaging and building and programming environments; you can just write the code you need in the browser, as you need it.
Re:Browser extensions are underrated: the promise of hackabl...
by nemosaltat on Monday July 29, 2019 @05:21PM
(#20559588)
3rded. I use the @updateurl and @version and save my scripts in Google Drive with a public URL. To update, I can just increment the version in the hosted copy, then reload tamper monkey. Has the bonus of quick and dirty revision history.
Re:Browser extensions are underrated: the promise of hackabl...
by idoubtit on Tuesday July 30, 2019 @02:12AM
(#20562464)
The irony is that I ported two of my old user scripts to web extensions. With old Opera, userJS was native, while TamperMonky is a (big) web extension. I had performance problems with TamperMonkey, so I rewrote my scripts to avoid this layer.
Pros of TamperMonkey/userJS:
- Allows live editing (with syntax highlighting) with immediate refresh, all in the browser. This is handy for minor changes on small files, but slow for big files.
- Direct access to some HTML5 APIs that are restricted in extensions. I don't recall if that was the case with TamperMonkey, but OperaJS allowed plain AJAX and WebStorage usage, just as if the file was included in the web page.
Cons:
- Slower than extensions.
- Less powerful (cannot add a button in a browser bar, etc)
- Painful as code grows. An extension allows simple splitting of code into several files. I found UserJS harder to maintain.
- Cannot load JS _and CSS_ like an extension does. Another extension like Stylus is needed.