Live data from Hacker News

Userscripts Are Fun and Are Still Very Much Relevant

dutzi.party

21–30 of 145 posts

Re: Userscripts Are Fun and Are Still Very Much Relevant

#21
post #2

Tampermonkey, ViolentMonkey and GreaseMonkey are all available in Firefox. Can anyone provide a comparison? Edit for the early commenters: as I stated, all of the above are available on current Firefox. Greasemonkey also has been ported to webextensions. Hence my question. Edit 2: TamperMonkey is closed source source and apparently embeds Google Analytics. Either of those immediately kill it for me, considering the k…

> "does not collect user data at the moment"

There are limited record of edit history of ViolendMonkey's privacy policy [0] that I can locate, so don't know if it's true in the past, but I don't see this statement in ViolentMonkey privacy policy now [1].

[0] https://github.com/violentmonkey/violentmonkey.github.io/com... [1] https://violentmonkey.github.io/privacy/

Re: Userscripts Are Fun and Are Still Very Much Relevant

#22
post #2

Tampermonkey, ViolentMonkey and GreaseMonkey are all available in Firefox. Can anyone provide a comparison? Edit for the early commenters: as I stated, all of the above are available on current Firefox. Greasemonkey also has been ported to webextensions. Hence my question. Edit 2: TamperMonkey is closed source source and apparently embeds Google Analytics. Either of those immediately kill it for me, considering the k…

As you noted, TM is closed-source. However, GM is very sparsely developed after the switch to webextensions—still no script management interface, as far as I can see. TM whips it in terms of features. VM appeared recently in the FF land, and my guess is, it's for those who hope for faster development—however dunno if those hopes are realized, feature-wise.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#23
I recently wrote a tiny alternative to the mentioned webpack plugin https://github.com/nfour/TinyWebpackUserscriptPlugin

Using it in this project with some userscripts (see webpack.config.ts): https://github.com/nfour/userscripts

Tampermonkey seems like the best script manager for developer experience (as far as I could tell from trying the others) when configured as recommended (removing cache checks etc.), though it still requires 2 page refreshes to show changes.

If anyone knows of an improved workflow I'm all ears. I'd like to see something closer to webpack hot reloading, though I suspect we either need a new script manager, or a userscript framework that can be configured to hotswap code.

Perhaps browser managed content scripts will be viable? https://github.com/violentmonkey/violentmonkey/issues/604

Re: Userscripts Are Fun and Are Still Very Much Relevant

#25
post #23

I recently wrote a tiny alternative to the mentioned webpack plugin https://github.com/nfour/TinyWebpackUserscriptPlugin Using it in this project with some userscripts (see webpack.config.ts): https://github.com/nfour/userscripts Tampermonkey seems like the best script manager for developer experience (as far as I could tell from trying the others) when configured as recommended (removing cache checks etc.), though i…

web-ext does hot swap, see the sibling comment from insin to get a minimal manifest for a userscript.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#26
post #15
post #2

Tampermonkey, ViolentMonkey and GreaseMonkey are all available in Firefox. Can anyone provide a comparison? Edit for the early commenters: as I stated, all of the above are available on current Firefox. Greasemonkey also has been ported to webextensions. Hence my question. Edit 2: TamperMonkey is closed source source and apparently embeds Google Analytics. Either of those immediately kill it for me, considering the k…

Even an MIT licensed extension can be changed on a whim and pushed through update - and browsers make it deliberately inconvenient to run a local extension checkout long-term. I have a chip on my shoulder here, because i was the victim of when the de-facto analogous extension for CSS, Stylish, silently changed ownership and violated my privacy without ever prompting me to accept any new ToS. No userscript or extensio…

This is why my extensions are limited to highly trusted and highly essential ones like ublock. I just can't trust extensions to be good now and good forever after. Its way to tempting for an extension developer to sell it on to an ad corp.

Re: Userscripts Are Fun and Are Still Very Much Relevant

#28
post #2

Tampermonkey, ViolentMonkey and GreaseMonkey are all available in Firefox. Can anyone provide a comparison? Edit for the early commenters: as I stated, all of the above are available on current Firefox. Greasemonkey also has been ported to webextensions. Hence my question. Edit 2: TamperMonkey is closed source source and apparently embeds Google Analytics. Either of those immediately kill it for me, considering the k…

GreaseMonkey is the "legacy" option. ViolentMonkey runs on Chrome. TamperMonkey runs on Firefox.

Both you and the article recommend not to run ViolentMonkey on Firefox. Why?

Re: Userscripts Are Fun and Are Still Very Much Relevant

#29
post #11

I’ve been really into using scripts to enhance my browsing experience, so much so that I’ve spent the last 6+ months developing these extensions to curate my experience on the Web: - Intention ( https://getintention.com ) - Pauses distractions so I can scroll less and do more - Hide Feed ( https://hidefeed.com ) - Replaces feeds with my daily focus - Hide Likes ( https://hidelikes.com ) - Hides vanity metrics for a m…

I’m using one to speed up YouTube videos by 2 by default [1], which saves me quite some time.

1. https://webapps.stackexchange.com/a/136744

Re: Userscripts Are Fun and Are Still Very Much Relevant

#30
I’ve written extensive user scripts to improve inferior web interfaces of tools that we use for work. My two biggest ones are for a work tracker and a support system. The support system one especially is considered indispensable by the support staff and almost everyone else that ever interacts with it. (Why not just change support system?—you may ask. There were certain features that provided the concrete reason for staying with that one. And in bigger businesses you often don’t have the flexibility to choose different things anyway.)

A fair fraction of the user scripting is actually just stylesheets, and indeed I started out with just user stylesheets. It’s amazing what you can do with such stylesheets. You can reduce borders, margin and spacing, reorder sections with flexbox and/or grid layout, hide irrelevant functionality or data fields that you never use but the tool doesn’t let you hide, emphasise details that are important to you, reduce the need for scrolling (more efficient layout is routinely able to make things 30–50% shorter without feeling in any way cramped, because many layouts are simply unnecessarily wasteful of space), make sidebars sticky to save scrolling, increase the size of elements and popups that are inexplicably small with forced scrolling, and loads more.

And that’s just the styles part. Add scripting and you can do things like set the document title because the system just sets “AppName” or “Manage Request”; automatically click on “load more” links; restructure content for better consumption; in history streams collapse automated things with a single line summary, or bulky tables of the fields that changed with more compact representation; highlight things differently based on the result of some function on the element (e.g. who wrote it), change how times are presented (e.g. replace an absolute timestamp with absolute and relative, plus showing other timezones that could be relevant in a tooltip); add a button to copy the ID or link for an item; and much more that I haven’t even thought of yet.

My user scripts are readily configurable: each feature can be turned on or off independently, since a few of the features some people like and others don’t.

I’ve thought and said before that this should be a plausible business: forced to use a web app that’s slowing you down? Hire me and I’ll make it easier and faster for you to use. I guarantee improved happiness and at least some productivity boost, and enormous productivity boosts are possible, like orders of magnitude in some cases, by better information presentation and automating arduous human-driven tasks.

There’s always the danger that the app will change underneath you, but this isn’t often a problem.

If you’re interested in this idea and have any web apps that you might like help with making a user script to improve, email me at userscripts@chrismorgan.info.

Post reply on HN