-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User scripts deleted after upgrade #213
Comments
Dang, I am very sorry that happened to you. I am assuming you used the default directory for saving your userscripts? You can look in In those directories, navigate to The default save location doesn't change between versions, so your userscripts shouldn't have been deleted. However if the container itself changed, it could appear as if your userscripts are deleted. If that is the case, hopefully the old container is still on your file system.
You don't need to symlink, you can simply select that as you save location from the containing app. I use my iCloud drive as well, that way I can sync the changes I make on macOS to iOS.
The v4.x update changed from Safari App Extensions API to Safari Web Extensions API. There's seems to be a lot of idiosyncrasies with the new api, like simply disappearing after updating. |
@jpillora just checking in, were you were able to located your userscripts? |
I’ll check soon and let you know
…On Sat, 22 Jan 2022 at 12:58 am Justin Wasack ***@***.***> wrote:
@jpillora <https://github.com/jpillora> just checking in, were you were
able to located your userscripts?
—
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE2X43GZHHNJJAHLHZ42CTUXFRBTANCNFSM5MG7A3EQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
both sounds promising 🤞 |
No luck
|
Dang, I am sorry that happened. I am assuming you updated through the App Store, is that correct? What was the previous version? It's my understanding that macOS should not be destroying app containers on update. I just went through the process on my test MBA and updated from v4.0.9 to v4.0.11 and the containers and script remained. On that machine I am on latest Big Sur, not Monterey. I did a screen recording, if you want to check it out feel free to email (address on profile page). There's nothing in the code that deletes anything on update, so I am a bit lost here and unsure if this was just an unfortunate edge case or something more widespread. I wish I could have been of more help. |
No worries Justin, the most complex script is backed up, and the others are
open source user scripts and custom page cleanups that are easy to rewrite
…On Sat, 22 Jan 2022 at 10:37 am Justin Wasack ***@***.***> wrote:
@jpillora <https://github.com/jpillora>
Dang, I am sorry that happened.
I am assuming you updated through the App Store, is that correct? What was
the previous version?
It's my understanding that macOS should *not* be destroying app
containers on update. I just went through the process on my test MBA and
updated from v4.0.9 to v4.0.11 and the containers and script remained. On
that machine I am on latest Big Sur, not Monterey. I did a screen
recording, if you want to check it out feel free to email (address on
profile page).
There's nothing in the code that deletes anything on update, so I am a bit
lost here and unsure if this was just an unfortunate edge case or something
more widespread.
I wish I could have been of more help.
—
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE2X47AJYPRPKMU2YJF3HTUXHU25ANCNFSM5MG7A3EQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This just happened to me. My scripts were located in a folder in my iCloud drive and I have 3 devices sharing those scripts (macbook, iphone and ipad). I was in Several hours later I went on my macbook and noticed no files were loading and the directory was missing from the iCloud drive. I checked the iCloud trash directory by viewing hidden files ( I am not sure if this is an issue with Userscripts or the Files app, but I am reopening this so I know to dedicate time into seeing what's up. The only "trash methods" used in the codebase, off of the top of my head, on the swift side are here:
Note: This happened outside of an update, just normal usage. |
I’m not an apple developer though I’ve heard about whacky bugs with apple
sdks on the Under the radar podcast - maybe apple’s fault?
…On Sun, 27 Feb 2022 at 7:51 am Justin Wasack ***@***.***> wrote:
Another note, when this happened, I was having issues with iCloud in
general. It was affecting Mail.app. I am not sure if this is related or not.
[image: Screen Shot 2022-02-23 at 9 40 15 PM]
<https://user-images.githubusercontent.com/7660254/155858697-9568aa69-574d-4a12-ba29-beca378c56c7.png>
—
Reply to this email directly, view it on GitHub
<#213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAE2X4522L3VSA4MTC263XDU5E4MXANCNFSM5MG7A3EQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am thinking that could be the cause. It certainly seemed strange to me that it was only that one folder, which happened to be the one I had selected for Userscripts though. However, coincidences do happen and it could be an upstream bug. I wish I had known this when you reported the issue at first, but you can recover trashed files on iCloud for up to 30 days. You can view hidden files like I did or use iCloud.com. It's been over 30 days for you so I don't think anything would be recoverable, but if it ever happens again, you could try to recover anything lost. |
Since it cannot be fixed in this project. |
System Information:
The extension had no scripts/styles after upgrading. Very sad since I didn't save them. I'll now symlink them into my iCloud drive though would be nice to recover them. Any tips? Note, I had to open Safari prefs and re-enable the extension - not sure if this had something to do with it.
The text was updated successfully, but these errors were encountered: