Comments (3)
This is a known issue, but is it really necessary?
from violentmonkey.
Yes, otherwise you get data loss.
To give an example from a script I'm maintaining, 4chan X adds a button to hide posts on 4chan, storing the list of hidden posts with GM_setValue. Say you have https://boards.4chan.org/c/thread/2570357 open in one tab and http://boards.4chan.org/c/thread/2539836 in another. (I'm deliberately using http and https in this example because if they're on the same origin, 4chan X will attempt to sync data using localStorage.) If you hide a few posts in the first thread, then hide some more posts in the second thread, then reload the first thread, the posts you hid in the first thread reappear!
from violentmonkey.
I thought GM_getValue
and GM_setValue
are mostly used to share data among tabs with different domains in which case data sync might not be so necessary. I prefer using localStorage
to share data that needs synced since localStorage
is built-in and synchronous.
Anyway, data sync sounds reasonable. This feature will be added soon.
from violentmonkey.
Related Issues (20)
- [Feature] Download BETA HOT 1
- [Feature] Custom Whitelist (Website Domain) for every userscript HOT 7
- [BUG] disable cache of @require HOT 1
- [BUG] GM.xmlHttpRequest arraybuffer bug on Brave beta HOT 13
- [Feature] use target site's cookie storage partition for cross-origin GM.xmlHttpRequest HOT 7
- [BUG] Import from URL not working when ViolentMonkey is installed on Kiwi browser HOT 4
- Script not active on drive.usercontent.google.com HOT 2
- [Feature] Custom Metadata - add support for @icon
- [BUG] UI
- [BUG] Can't create a new userscript HOT 1
- [BUG] GM_download does not ignore CORS in iframe [NSFW]
- [BUG] Impossible to access to ViolentMonkey settings from ViolentMonkey current webpage script list HOT 3
- [BUG] MediaSession API doesn't seem to work HOT 9
- Release 2.19.0 for Edge HOT 1
- [Feature] User profiles HOT 3
- [Feature] Setting to allow XHR responses to set cookies HOT 16
- [BUG] Violentmonkey refuse to execute my script on google on opera browser HOT 15
- [BUG] v2.19.1 BETA reported an error and could not run the script.
- [Feature] Sync with local directory HOT 6
- [BUG] 2.19.2 works fine in FF, refuses to install on Edge Chromium Canary 128.0.2672.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from violentmonkey.