userscripts icon indicating copy to clipboard operation
userscripts copied to clipboard

Automatic script updates

Open rakleed opened this issue 3 years ago • 6 comments

It would be nice if there was an option to automatically update scripts. Since now, without opening the extension, I will not find out that an update has been released for the script. And if the script was automatically updated in the background, it would make it easier to use the extension.

System Information:

macOS version: 12.1 Userscripts version: 4.0.9 Safari version: 15.2 Is this issue related to script injection? No Did the test script (pasted above) successfully run on your machine? N/A

rakleed avatar Dec 15 '21 17:12 rakleed

@rakleed

I think this something that can be considered for a future update. There's some considerations:

  1. We'd want the automatic update check to happen on a regular interval, not constantly. Ideally it would not be part of the injection processes since that could slow down injection and I think we want to keep those processes as lean as possible.

  2. Personally, I am not a fan of automatic updating when it comes to scripts which could potentially be keylogging or exploiting my privacy/security in a variety of ways. This is why automatic updates have not been implemented sooner, I personally would likely not use it.

  3. Considering, #2, I think it must be an option which would require new ui elements on the iOS side. This is a significant task.

Those are my feeling right now.

quoid avatar Dec 15 '21 22:12 quoid

I'd also like to request this auto update feature. Having to manually update is a truely horrible user experience. Having an auto update would allow me to not save the scripts in the cloud as my phone tends to randomly uninstall them on the device every now and then, requiring me to reopen the Files app and click on them to download again.

An auto update feature would be best if it checked at least every 12 hours. You could insert a warning if the changes to the script is requesting new permissions, but ultimately the user is responsible for what they install on their device and should have the option for automatic update even if the feature is disabled by default.

BlackAsLight avatar Mar 08 '22 13:03 BlackAsLight

OA

في الثلاثاء، ٨ مارس، ٢٠٢٢ ١٦:٥٣ Doctor @.***> كتب:

I'd also like to request this auto update feature. Having to manually update is a truely horrible user experience. Having an auto update would allow me to not save the scripts in the cloud as my phone tends to randomly uninstall them on the device every now and then, requiring me to reopen the Files app and click on them to download again.

An auto update feature would be best if it checked at least every 12 hours. You could insert a warning if the changes to the script is requesting new permissions, but ultimately the user is responsible for what they install on their device and should have the option for automatic update even if the feature is disabled by default.

— Reply to this email directly, view it on GitHub https://github.com/quoid/userscripts/issues/181#issuecomment-1061802595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXL7ODDEJNAKCG27MC3ZL53U65LW7ANCNFSM5KEGXWCA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

sas65-wed avatar Mar 08 '22 14:03 sas65-wed

@BlackAsLight Automatic updates will be an option in a future update. Probably after 4.2, which is a much needed performance/refactor update.

very now and then, requiring me to reopen the Files app and click on them to download again.

Just note that I believe automatic updating is a separate issue than this specific aspect you are describing. I've noticed when I update something on my desktop, I have to manually open Files.app on my phone, sometimes, and click that "cloud with arrow" icon to have the update I made on my desktop, get applied to my phone. From what I can tell, this is not something I believe we can control and is just the nature of how file updates propagate across iCloud devices. It's not pleasant, and if we can improve that I will. Ideally there'd be a way to programmatically force an iCloud sync event at certain intervals when using the iPhone counterpart.

This issue is about script updating from remote sources - ie. scripts with @version and @updateURL key/vals.

quoid avatar Mar 08 '22 15:03 quoid

Leaving a comment to hopefully push this long waited and desired request up the todo list.

BlackAsLight avatar Aug 24 '22 05:08 BlackAsLight

Commented out of interest. I make my own userscripts and would love to have them auto-update.

xadamxk avatar Oct 07 '22 17:10 xadamxk