userscripts icon indicating copy to clipboard operation
userscripts copied to clipboard

Script location resets to default

Open RazorII opened this issue 7 months ago • 1 comments

I regularly run into script location resets. I have mine in a custom location in my iCloud Drive and it reverts to the default local iPhone location regularly. Maybe after app updates... not sure what is the cause but it's annoying that it needs to be reset manually when this happens.

RazorII avatar May 30 '25 10:05 RazorII

Check the issue:

  • https://github.com/quoid/userscripts/issues/424
  • https://github.com/quoid/userscripts/issues/728

If the problem persists, please provide the relevant log for analysis:

  • https://github.com/quoid/userscripts/issues/409

ACTCD avatar May 30 '25 14:05 ACTCD

This is happening to me on iOS just now. I change the location to my iCloud > Userscripts folder but immediately after saving, it resets back to the default. I’ve used my iCloud folder for over a year but today it stopped working.

fuzenco avatar Jun 22 '25 05:06 fuzenco

This is happening to me on iOS just now. I change the location to my iCloud > Userscripts folder but immediately after saving, it resets back to the default. I’ve used my iCloud folder for over a year but today it stopped working.

@fuzenco Please refer to the above quote and try to gather and provide the relevant logs, otherwise it will be difficult for us to find or try to resolve the issue.

Note that only the beta version currently includes a built-in log export tool.

ACTCD avatar Jun 22 '25 05:06 ACTCD

I wanted to report back on this issue. The problem was that iCloud Drive had removed/purged the CSS files that were in my Userscripts folder. Yes, the files were still showing but the download icon next to each file was visible which isn’t the case if they’re on the device. So although the alias to the files were showing, and setting and resetting my Userscripts directory to that location was possible, Userscripts would reject the location once I exited settings (because I guess the files technically weren’t there, so the whole directory was rejected). Once I clicked the download icon and saved them to my device (still within iCloud Drive), everything started working properly and the directory is correctly remembered.

fuzenco avatar Jul 08 '25 00:07 fuzenco

@fuzenco Yes, this is because the content in the iCloud folder is evicted by the system and it is only retained as a identifier. As discussed in the issues I quoted above and mentioned in README.

Have you tried using the "keep downloaded" feature since macOS 15 / iOS 18 ?

ACTCD avatar Jul 08 '25 01:07 ACTCD

@ACTCD oh, did not know that feature existed. Just enabled it on those files. Thanks!

fuzenco avatar Jul 08 '25 02:07 fuzenco