Skip to content
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

Save folder and sync possibility? #99

Closed
GoogleCodeExporter opened this issue Mar 16, 2015 · 20 comments
Closed

Save folder and sync possibility? #99

GoogleCodeExporter opened this issue Mar 16, 2015 · 20 comments

Comments

@GoogleCodeExporter
Copy link

Is there anyway to get scripts to save with Google Sync? I recently created a 
new profile and when I signed back in, all of my scripts were gone. 

Luckily I backed the Chrome folder up, but how can I make sure this doesn't 
happen again?

Original issue reported on code.google.com by baes...@gmail.com on 14 Sep 2012 at 4:51

@GoogleCodeExporter
Copy link
Author

Google Sync is not supported at the moment. I need to understand how this works 
first.

What do you mean with "all of my scripts were gone"? The scripts that were 
installed locally?

At the moment it is not possible that local scripts are deleted by the remove 
storage. The Import Mode at the settings page can either be "Create only" or 
"Off".

Original comment by derj...@googlemail.com on 18 Sep 2012 at 1:57

@GoogleCodeExporter
Copy link
Author

What I meant is that when I reinstalled Chrome, all of my scripts were gone and 
I was just hoping they would stay with Google Sync, but I know how difficult 
that may be to do. Where are the scripts located in the Google Chrome folder 
and I can go grab them again.

Original comment by baes...@gmail.com on 18 Sep 2012 at 3:21

@GoogleCodeExporter
Copy link
Author

You can copy the database files from the old to the new profile.

See this thread for more info: 
http://forum.tampermonkey.net/viewtopic.php?f=17&t=326

Ok, so this is not really an issue right? It is more a enhancement request. :)

Original comment by derj...@googlemail.com on 20 Sep 2012 at 12:37

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

That didn't work for me. There's just a file with the number 2 in there. I 
tried replacing it and got nothing.

Original comment by baes...@gmail.com on 20 Sep 2012 at 4:18

@GoogleCodeExporter
Copy link
Author

I haven't tested this yet, but I think it should work when you replace the file 
of the new profile folder with the old one. 

The file you have seen is numbered by Chrome. It increases this number for 
every extension that creates a database to store some data. That's why the 
number of the TM config db might be different in your two profiles.

You can take a look into the database with sqlite.

For your problem the probably most easy solution is to backup and remove the 
new profile folder and copy the old one back. If there are other extensions or 
settings you don't want or need, you can start Chrome and export you scripts 
from TM at the options page. After this you can restore the backup and 
re-import the scripts. 

Original comment by derj...@googlemail.com on 21 Sep 2012 at 7:56

@GoogleCodeExporter
Copy link
Author

This did work for me, I just had to restart Chrome! Does this keep the settings 
as well? Also, can you place it in a different location? Say Dropbox, to keep 
scripts in Sync (similar to Chrome Sync).

Original comment by baes...@gmail.com on 23 Sep 2012 at 11:12

@GoogleCodeExporter
Copy link
Author

Sync server now is bumped to version 2. You can select the server at the TM 
options page. Version 1 seems to have issues, when the user's DB size reaches 
5-6 MB.

Original comment by derj...@googlemail.com on 4 Oct 2012 at 11:59

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

I'm on 2.6.2767 and I don't see it. Where is it again?

Original comment by baes...@gmail.com on 10 Oct 2012 at 5:42

@GoogleCodeExporter
Copy link
Author

You don't see what? Do you mean your scripts are gone or are you searching for 
the sync server setting?

Did you already set the sync server to version 2?
As I wrote sync server version 1 may forget the stored scripts in case the 
amount of data reaches 5-6 MB.

Original comment by derj...@googlemail.com on 11 Oct 2012 at 5:59

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

I don't see the sync server setting at all. There's no option for it in the 
menu anywhere.

Original comment by baes...@gmail.com on 12 Oct 2012 at 5:10

Attachments:

@GoogleCodeExporter
Copy link
Author

Sorry for my late reply. Please set the "Config Mode" to "Advanced".

Original comment by derj...@googlemail.com on 17 Oct 2012 at 10:53

@GoogleCodeExporter
Copy link
Author

Thanks, I got it working! Question, how often does it sync? Also, how do you 
get a newly installed script to enable sync by default? Lastly, does it sync 
changes, like if I were to modify a script?

Original comment by baes...@gmail.com on 17 Oct 2012 at 2:20

@GoogleCodeExporter
Copy link
Author

Now all you need is the ability to sync your installed Tapermonkey scripts with 
Userscripts.org favorite scripts!

Original comment by baes...@gmail.com on 17 Oct 2012 at 2:22

@GoogleCodeExporter
Copy link
Author

Oh and does it sync tapermonkey settings as well or just what scripts are 
installed?

Original comment by baes...@gmail.com on 17 Oct 2012 at 2:23

@GoogleCodeExporter
Copy link
Author

* How often does it sync?
TM syncs:
1) before every TM update check
2) whan a script is changed locally
3) when TM starts
4) every 5h (will become configurable)

* Also, how do you get a newly installed script to enable sync by default?
not possible atm

* Lastly, does it sync changes, like if I were to modify a script?
Of course.

* Oh and does it sync tapermonkey settings as well or just what scripts are 
installed?
Only the scripts and their install URL.

* Now all you need is the ability to sync your installed Tapermonkey scripts 
with Userscripts.org favorite scripts!

I'll check how this could work, but not all scripts are necessarily from 
userscripts.org.

Original comment by derj...@googlemail.com on 18 Oct 2012 at 12:28

@GoogleCodeExporter
Copy link
Author

Awesome, thanks for the info! It's working great! You've helped out a bunch!

Original comment by baes...@gmail.com on 30 Oct 2012 at 4:57

@GoogleCodeExporter
Copy link
Author

Google Sync now is supported: 
http://tampermonkey.net/changelog.php?version=2.9.2964&ext=dhdg

Original comment by derj...@googlemail.com on 20 Dec 2012 at 9:57

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Would love to be able to sync the data my userscripts store as well, that'd be 
epic!

Original comment by phala...@gmail.com on 28 May 2013 at 5:06

@GoogleCodeExporter
Copy link
Author

This is not easy to implement, but maybe I can use Google Drive for this. I 
have seen other scripts that do it this way, i.e. the sync plugin of 
http://iitc.jonatkins.com/?page=desktop
Could you please create a new issue in order to track this and to keep you up 
to date on this? Thanks. :)

Original comment by derj...@googlemail.com on 30 May 2013 at 6:34

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant