4 ms·
I've been using userscripts for 10+ years for my own use cases: a site has an annoying nag screen (many banks do)? Close it immediately. The CRM we use for some
by rsoto 6y ago
I've been using userscripts for 10+ years for my own use cases: a site has an annoying nag screen (many banks do)? Close it immediately. The CRM we use for some reason won't preserve my session? Fill in the last thing it was entered + autosubmit that form + check the session every 15 minutes in the background. Is there a form I need to fill in with almost the same data every time? Based on a template, I can copy and paste the data in the form, it will be filled with the correct fields.
Userscripts are a nice in between a bookmarklet and a full featured extension, since the latter one can't be autoreloaded, and for every change you must click a button to get applied into your browser (at least that was the last experience I had with them).
Two weeks ago I rebuilt my hacky built system (gulp-based) into webpack. If you are trying to build something, I highly recommend webpack-userscript[1].
1: https://github.com/momocow/webpack-userscript https://github.com/momocow/webpack-userscript
- warent 6y agoHahaha wait a minute your gripe about browser extensions is that you have to click a "reload extension" button?
- lupire 6y agoWhat's funny about that? They are much harder to test while making changes.
- curryst 6y agoBrowser extensions seem at least an order of magnitude more complicated (at least as an outsider, I've never worked with them). It's like if you ask a friend to help you hammer a nail and they're like "Oh, cool, lemme fire up this robot I built to just nail in all the nails for us! Ah wait, I have to plug it in. Screw it, I'll just use my hammer." It's not funny because it's wrong, it's just funny because it feels like one of these things is not like the other.
- ufmace 6y agoThey're really not actually. To turn your userscript into an extension, you just save the code to a single file on disk in a new folder, then create a manifest.json file with like a dozen lines, and load the folder as a development extension.