GM_script | I & # 39 ; m just here to share the script for fun | Browser Plugin library
kandi X-RAY | GM_script Summary
kandi X-RAY | GM_script Summary
I'm just here to share the script for fun
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of GM_script
GM_script Key Features
GM_script Examples and Code Snippets
Community Discussions
Trending Discussions on GM_script
QUESTION
I've been using a homemade greasemonkey scripts for ages on my laptop Firefox. It includes storing data with GM.setValue.
Now I just bought an Android tablet, and would like to be able to use this script and update the values, whereas I'm using the laptop or the tablet.
Hoped that Firefox Sync would handle that, but not even the scripts are synced.
I thought of synchronizing the script dans db files (Google drive, dropbox, whatever), but I realized that since the v4, the db that used to be in gm_scripts is gone, and I have no idea where Greasemonkey stores either the scripts or their associated database now.
I'm looking for anything that might make it work.
1) Is there a way to handle that with Firefox Sync ?
2) Would an alternative (Tampermonkey, Violentmonkey, ?) handle that better ?
3) Where can I find the scripts/database in the new Greasemonkey system ?
4) Could I synchronize them via Google drive ? (There seem to be some hacks to sync a file between machines)
5) Would there be a simple, free alternative that would allow me to synchronize a very small file between machines ?
=============================================== Update on this:
I tried TamperMonkey instead, it has a sync feature but even if it seems ok on different laptops or my phone, the syncing is random at best on the tablet.
Also realized that only scripts are synced, and not their data. The script almost never changes, but the data is updated several times a day, so not really a solution anyway.
Data doesn't exist anymore in a readable file format, so no luck either on syncing the data file externally.
TamperMonkey has also an import/export feature, this does take the data into account. So the best I can do for now is thinking about exporting then importing every time I switch device. Not ideal so still in search of a better solution.
...ANSWER
Answered 2020-Feb-03 at 05:57Represents the sync storage area. Items in sync storage are synced by the browser, and are available across all instances of that browser that the user is logged into (e.g. via Firefox sync, or a Google account), across different devices.
There are limitations with sync.
- Sync requires login
- Up to 100kb can be synced and more than that fails
- Storage sync usually syncs the entire extension storage and in case of user-script managers, they are often larger than 100kb as they include the user-scripts as well
- Data is stored elsewhere (not on your computer) which can have security/privacy concerns
- Storage read/write requires internet access and longer times due to remote data storage
- Extension must have the sync option
1) Is there a way to handle that with Firefox Sync ?
Yes but depends on aforementioned. While Firefox sync doesn't appear to have the 100kb limit, syncing the entire Firefox takes longer (How do I set up Sync on my computer?).
2) Would an alternative (Tampermonkey, Violentmonkey, ?) handle that better ?
Greasemonkey: No sync feature
Tampermonkey: Sync to Dropbox, Google Drive, or a WebDAV service
Violentmonkey: Sync to Dropbox, OneDrive, Google Drive, or a WebDAV service
Firemonkey: No sync feature
TM/VM 3rd party storage sync allows storage of more than 100KB. However, using 3rd party storage allows 3rd party tracking which is a privacy consideration. The storage read/write operation is also a lot slower.
3) Where can I find the scripts/database in the new Greasemonkey system ?
Since Firefox 57, extensions can not save files to the HD and the only storage area is the extension storage which is not accessible as before.
4) Could I synchronize them via Google drive ? (There seem to be some hacks to sync a file between machines)
Refer to above
5) Would there be a simple, free alternative that would allow me to synchronize a very small file between machines ?
That depends on the set-up and how often data is changed.
For example, if data is not often changed, especially if the data privacy is imperative, there is the backup export/import option (script + data). Therefore, the extension data can be saved to a USB flash drive and loaded anywhere (suitable for shared environment).
QUESTION
With the new update to Firefox 57 and Greasemonkey 4.0 it seems that the gm_scripts
folder is no longer where the user.js scripts are stored.
Where are the scripts stored now?
Any suggestions for keeping these scripts in git?
...ANSWER
Answered 2018-May-02 at 11:47Where are the scripts stored now?
WebExtension API does not allow local file access so add-ons store data in their own storage area as an IndexDB at C:\Users\[Username]\AppData\Roaming\Mozilla\Firefox\Profiles\[Random].default\storage\default\moz-extension+++80728271-a923-4e37-a81d-68452721034c
The negative issues are:
You cant manually edit them with your own editor and you have to use the GM interface to edit them.
If you uninstal GM, all script will be gone and reinstalling GM wont bring them back.
At the moment GM doesn't have an Import (to manually load scripts) or Export (to create backups). Although you can export all scripts by copying the folder above.
You can copy scripts to Git and GM will (there are issues now) be able to get them from Git.
The gm_scripts folder should still be in the Firefox profile folder. GM4 doesn't delete it but it wont be able to use it.
https://superuser.com/questions/38093/where-are-the-greasemonkey-scripts-kept-in-portable-firefox
In XP: C:\Documents and Settings\user\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\gm_scripts
In Vista: c:\users\user\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default\gm_scripts
Select the profile you want to use (if you only have one, it should look something like xxxxxxxx.default). Finally select the gm_scripts folder.
On a MAC: On a Mac, you can find your profile at ~/Library/Application Support/Firefox/Profiles
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GM_script
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page