-
Notifications
You must be signed in to change notification settings - Fork 47
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
Find a way other than chrome.storage.sync to store user data #32
Comments
Hi. Why? I was about to ask "Can you expose chrome.storage.sync in the scripts so that they can store data?", but I guess you'll refuse, given this issue. So, out of curiosity, why do you want to get rid of it? (and how could we store the scripts' data?) Thanks :) |
First of all. when I said The reason to look this direction is that the And there are already several users directly report this limitation is really annoying. That's the motivation to look for other options can store and sync user's scripts without such small limitation. For your question:
It's definitely NO because above reason. In addition, the user may corrupt their own scripts by misuse the API because there is no separation in I'm looking for several solutions:
All of above have a free plan and the free trial quota is quite large compares to
|
But
|
Thank you for your quick and detailed answer! FYI, to store user data (ie, not the scripts, but the data they may want to store and sync), I considered https://keyvalue.xyz/ which could be used by a 5yo. Though, given CORS and stuff (I'm not super familiar with JS), I might not be able to use it until it's in the manifest. Btw, how would you load an external library without being killed by the policy enforcement? I'd really love to use html2canvas, but didn't find a way to load the script. |
Why just not using GitHub actually? |
Couple reasons:
But GitHub does have some pros:
And I do know some projects using GitHub as storage mean. So I'll evaluate GitHub definitely. Thank you! |
J'ai trouvé la solution : |
@lulu5239 could you please use English? |
TRANSLATION OF GOOGLE TRANSLATION: |
@lulu5239 Thanks. The
https://developer.chrome.com/extensions/declare_permissions Our limitations is Google chrome sync. |
Alors la dernière solution est de dupliquer l'extension puis de la modifier. So the last solution is to duplicate the extension and then modify it. |
@lulu5239 Sorry I don't understand what you said. |
It would be nice if the editing box alerted you to when the limit is hit so you can reduce the size of things to fit in the limit (rather than finding out when you try to save) |
Thanks for suggestion @RobKohr I was considering the same thing. But alerts are annoying. How about change the color and put some warning in the bottom of the size indicator? |
Might consider adding a JS minification function. Won't solve the problem of additional storage, but it would help shrink the bytes needed to be stored. I also like the GitHub storage option. |
Thanks, @askrenes Beside GitHub, I also consider the Dropbox as file storage solution. |
GitHub is so much better :) You might even consider automatically adding a header with some keywords so that a search on github will reveal extensions written for CJS2 :) |
Hey this limit is pretty... well.. limiting.. while I try to build a fairly large script. Any work arounds for the time being or is this still an active consideration to use GitHub repos to store scripts? |
@adamtaylor13 you can use this workaround for now: #24 (comment) |
@xcv58 Wouldn't that get stopped by CSRF stuff? |
@adamtaylor13 the host website has to support CORS request. |
Following up here: Have you considered using IndexedDB for this? I've used it for a recent extension I was developing and it's very fast + easy to use. Would also remove any kind of size limitation. |
Thanks @adamtaylor13 . There are two issues with IndexedDB. It's unique to an origin:
It has no way to sync the scripts across machines. |
@xcv58 What about some sort of AWS solution that allowed larger scripts to be uploaded to some sort of S3 bucket? Then folks who need/want bigger scripts could just pay a small fee for "Pro" version which would cover costs for the S3 and possibly make you a bit of money on the side. ¯_(ツ)_/¯ Just an idea. |
Yup, S3 is a good solution for immutable scripts. It may not works well for frequently updating scripts. |
Possible candidates:
Something we missed from the native chrome sync:
|
What about using a javascript based text/object compess/decompress? This won't solve the issue but it will give you much more available space |
It can save some space but still limited by the chrome.sync limitation. |
It should save up to 90% space, I wouldn't call "some". Plain text is very compressible. I did a test with lzwCompress.js and I was around 90% compressed. So though it doesn't solve the issue, it does give way more space than before, and something is always better than nothing. Should be fairly easy to implement, basically, you just compress on save and decompress when you retrieve it. |
I use the extension on Quora to override their signin prompt using the javascript |
So as this will never be solved in this extension it seems, i came up with using Page-Manipulator extension instead: https://github.com/Ruud14/Page-Manipulator |
No description provided.
The text was updated successfully, but these errors were encountered: