When switch to "Installed usercripts" tab, TM shows installed userscripts.
The "Please wait..." prompt is there spinning forever, rendering the entire UI inoperable.
AND
I get this behavor after I imported some backup from TM 4.7. The backup includes some customized script.
And I want to know if there is a way to "factory reset" TM so I can investigate which specific userscript(s) caused the problem. I tried to uninstall/reinstall but the data is still there.
And I want to know if there is a way to "factory reset" TM so I can investigate which specific userscript(s) caused the problem.
Good point. I'll add a factory reset button to the host app's window. :)
You can reset the extension settings by executing this at a terminal:
rm -r Library/Containers/net.tampermonkey.*
Not opening another issue, but I have my problem with importing backup triaged.
Might be a slightly different issue.
tl;dr: { "scripts": [ {"file_url": ...}]} breaks import and script list
Steps to reproduce:
~/Library/Containers/net.tampermonkey.SafariApp.Extension-bad and good files with minimal differences-good backup loads, -bad backup hangsscripts-good is good, -bad makes you unable to open scripts tabLogs attached:
Temporary workaround for importing backup:
tampermonkey-backup-....txt file to a readable state"file_url": ... from every script I've found the culprit, in my case at least: https://greasyfork.org/en/scripts/34153-pixiv-plus
Regarless of being imported or installed freshly from greasyfork, it always causes infinite loading on the MAS version.
I tried to reset the extension settings. Installing any script will result in the loading situatio on installed script
Temporary workaround:
- reformat (lint) JSON file to a readable state
- remove
"file_url": ...from every script- save and import
I have this issue but none of scripts I have installed has the "file_url" line
And I want to know if there is a way to "factory reset" TM so I can investigate which specific userscript(s) caused the problem.
Good point. I'll add a factory reset button to the host app's window. :)
You can reset the extension settings by executing this at a terminal:
rm -r Library/Containers/net.tampermonkey.*
Should be
shell
rm -r ~/Library/Containers/net.tampermonkey.*
I tried to reset the extension settings. Installing any script will result in the loading situatio on installed script
Same here. I tried installing a single script (Wanikani Override), which does not have file_url in it, and it will not load the Dashboard.
Same here. Happy to see the App store version and grateful it exists, but it doesn't work, at all. I tried to import my scripts and now it just spins and spins. I've tried the "factory reset" and deleting every folder and file it made in my ~/Library with no luck. Advice appreciated.
Same here. Happy to see the App store version and grateful it exists, but it doesn't work, at all. I tried to import my scripts and now it just spins and spins. I've tried the "factory reset" and deleting every folder and file it made in my ~/Library with no luck. Advice appreciated.
Have you tried to remove file_url from backup file before import? https://github.com/Tampermonkey/tampermonkey/issues/778#issuecomment-542313292
Removing file_url solves the issue for now, while scripts cannot update via the file url. Configuring update url of script after importing will cause the same "please wait" scenario.
hope there will be a fix soon.
I tried to reset the extension settings. Installing any script will result in the loading situatio on installed script
Same to me. I didn't import any previous userscripts but still encounter this problem once I install a new script. Since I didn't install the Pixiv Plus, so I guess other scripts also create this problem.
I tried to reset the extension settings. Installing any script will result in the loading situatio on installed script
Same to me. I didn't import any previous userscripts but still encounter this problem once I install a new script. Since I didn't install the Pixiv Plus, so I guess other scripts also create this problem.
this is because the newly installed script has file_url field. TM uses that for auto-updating scripts.
you may try copying the whole script into the tampermonkey editor and save, to see whether that will work.
Use regex ("file_url".*?(user.js",)) to remove all file_url field.
And hope it will fix soon.
I tried to reset the extension settings. Installing any script will result in the loading situatio on installed script
Same to me. I didn't import any previous userscripts but still encounter this problem once I install a new script. Since I didn't install the Pixiv Plus, so I guess other scripts also create this problem.
this is because the newly installed script has
file_urlfield. TM uses that for auto-updating scripts.
you may try copying the whole script into the tampermonkey editor and save, to see whether that will work.
Thanks, I'll try that and see if it works.
Dumb question, but where does Tampermonkey actually install the scripts on my Mac? They're not in ~/Library/Application Scripts/net.tampermonkey.SafariApp (or the related *.Extension folder). I've looked everywhere and can't find them. The Tampermonkey Options page is also no help.
Here's what I did to fix the Dashboard loading error. I don't know if every step is necessary, but it worked:
1) Do NOT install scripts automatically by clicking an Install button on Greasyfork or wherever. Do NOT import scripts. Copy the raw js code for the script to your clipboard, then go to the Dashboard (it will load if you have zero scripts installed yet). Hit the + sign to add a new script. Paste the code into the editor. Go to File - Save To Disk in the editor window.
2) Then go to Actions column on the Dashboard, and select the Edit icon (paper with pencil) next to the script. This will bring you back to the Editor. Select the Settings tab. UN-check "Check for Updates" and click the Save button directly underneath it (this may not be necessary, but since someone else has mentioned issues with the file_url that points to where Tampermonkey checks for script updates, I thought it may be the issue).
3) Optional: If you have a script that needs to load first before all other scripts, make sure to change it to #1 in the Position drop-down menu at the very top of the script Settings page.
4) You can now close the Dashboard tab. Go to the Tampermonkey icon in your Safari toolbar and click it and select Dashboard. The Dashboard should now load properly.
I'm glad to report that after I upgraded the tampermonkey to 4.9.6041 today from the Mac Appstore, the "installed userscripts" tab started to show normally. Problem solved!
Thanks to the developer and all the others who helped!
I'm glad to report that after I upgraded the tampermonkey to 4.9.6041 today from the Mac Appstore, the "installed userscripts" tab started to show normally. Problem solved!
Thanks to the developer and all the others who helped!
I have not received the update yet. And the App Store has a bug that some applications which has been installed on my Mac show a download logo in the Mac Store
Yes, 6041 was reviewed and published this night. It should definitely fix
I've found the culprit, in my case at least: https://greasyfork.org/en/scripts/34153-pixiv-plus
but I'm not sure about
tl;dr: { "scripts": [ {"file_url": ...}]} breaks import and script list
because this worked here fine all the time.
Can someone with the file_url issue and 6041 confirm whether it's working or not please? Thanks.
Yes, 6041 was reviewed and published this night. It should definitely fix
I've found the culprit, in my case at least: https://greasyfork.org/en/scripts/34153-pixiv-plus
but I'm not sure about
tl;dr: { "scripts": [ {"file_url": ...}]} breaks import and script list
because this worked here fine all the time.
Can someone with the file_url issue and 6041 confirm whether it's working or not please? Thanks.
I already got the 6041 and the installed scripts tab functioned normally after I install some scripts directly from the _greasyfork.org_
I'm glad to report that after I upgraded the tampermonkey to 4.9.6041 today from the Mac Appstore, the "installed userscripts" tab started to show normally. Problem solved!
Thanks to the developer and all the others who helped!I have not received the update yet. And the App Store has a bug that some applications which has been installed on my Mac show a download logo in the Mac Store
Maybe you could search the tampermonkey by name in the store window? Perhaps the update button will show there.
Plus, the Mac Appstore does have some weird problems sometimes, like the one you described. I guess the MAS just doesn't as good as the one on iOS.
I'm glad to report that after I upgraded the tampermonkey to 4.9.6041 today from the Mac Appstore, the "installed userscripts" tab started to show normally. Problem solved!
Thanks to the developer and all the others who helped!I have not received the update yet. And the App Store has a bug that some applications which has been installed on my Mac show a download logo in the Mac Store
Maybe you could search the tampermonkey by name in the store window? Perhaps the update button will show there.
Plus, the Mac Appstore does have some weird problems sometimes, like the one you described. I guess the MAS just doesn't as good as the one on iOS.
Thanks, I find the update button by searching it, but tampermonkey did not upgrade at all after I clicked the update button. I think I have to reboot my Mac now.
Thanks, I find the update button by searching it, but tampermonkey did not upgrade at all after I clicked the update button. I think I have to reboot my Mac now.
Same issue here. It only updates successfully if Safari is closed at the moment of update. So, close Safari, update, launch Safari.
Can someone with the file_url issue and 6041 confirm whether it's working or not please? Thanks.
I've updated, tried importing tampermonkey-backup-bad.txt from my report above โ Successful
Imported my big backup โ Successful
Issue is solved for me, Thank you Jan!
๐
Thanks, I find the update button by searching it, but tampermonkey did not upgrade at all after I clicked the update button. I think I have to reboot my Mac now.
Same issue here. It only updates successfully if Safari is closed at the moment of update. So, close Safari, update, launch Safari.
Can someone with the file_url issue and 6041 confirm whether it's working or not please? Thanks.
I've updated, tried importing
tampermonkey-backup-bad.txtfrom my report above โ SuccessfulImported my big backup โ Successful
Issue is solved for me, Thank you Jan!
Yes, I have updated successfully. I can finally enter the installed page.
Thanks, I find the update button by searching it, but tampermonkey did not upgrade at all after I clicked the update button. I think I have to reboot my Mac now.
Same issue here. It only updates successfully if Safari is closed at the moment of update. So, close Safari, update, launch Safari.
Can someone with the file_url issue and 6041 confirm whether it's working or not please? Thanks.
I've updated, tried importing
tampermonkey-backup-bad.txtfrom my report above โ Successful
Imported my big backup โ Successful
Issue is solved for me, Thank you Jan!Yes, I have updated successfully. I can finally enter the installed page.
Issue is solved here.
I have updated successfully (with Safari closed). Now I can enter the installed page.
Thank you so much, Jan. ๐๐ผ
Most helpful comment
Temporary workaround for importing backup:
tampermonkey-backup-....txtfile to a readable state"file_url": ...from every script