Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

AoDude

AoDude

Posts: 1,694 Mithril Posts by user Forum Profile RuneMetrics Profile
Indecent Act said :
Sadly I cant do the sync and I've tried. It's just too small. Sync belongs to the chrome.storage api (I currently use for linkify) so yes accessing sync is possible but very limiting.

https://developer.chrome.com/extensions/storage#property-sync

It can only handle 0.1 of a Mb of data and a max of 512 items. Friends list alone for many people would come close to exceeding the limit. Even without friend/clan lists it still can't take all Linkify settings. I'd love to be able to do it.

I used to have an export/import to/from file option for settings, and I will bring that back at some stage.


I might have a possible solution, you might be able to export the settings data to a google sheets spreadsheet. Then you could have a script that checks for that sheet, and imports that data on the new computer.

http://stackoverflow.com/questions/20450438/chrome-extension-writing-to-google-spreadsheet

This should allow us to circumvent any data requirements/limitations, and keep it secure to your own google account.

I should also familiarize myself with the manifest permissions, so I can keep myself from constantly suggesting new things that require more and more permissions ;)

­coffee

Edit: Just realized you also support Opera... Not sure if that will throw a wrench in this idea or not...
AO
Deputy-Owner :
The Nexus CC

04-Nov-2015 19:27:00 - Last edited on 04-Nov-2015 19:38:32 by AoDude

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Zamorak83432 said :
Ignore that.

Seeker helped me out.

I might have to give Seeker a linkify badge!

That update went out 5 days ago. Generally chrome checks for updates every 5 hours, so that's quite odd you did't ever get it.

--------------------------------------------------------------------------------------------

@AoDude, sorry for my late reply.

Keep in mind there are some issues with the spreadsheet approach.

I don't like the idea of everyone having read and write privileges on the same file.

Oauth can authenticate you as far as google goes to allow access to the file, but it cant authenticate you and know you are the player you say you are. What happens if you change display name?

Unless you mean everyone has their own individual file, then people would have to create and set up their own drive and host the file. That's getting get a bit messy.

Tbh it's all reinventing the wheel and I see it as far from perfect solution. Unless I'm missing something.

I checked out the link, it's nice for that guy's needs. But it's not something I'd use for this.

If were going to do syncing I'd just use chrome's api as it handles everything. The only thing is I'd have to omit syncing friends and clan lists. But that's no biggie since reimporting those is a click of button.

The other thing I definitely will do is bring back import/export settings to file. That way you save it as a backup, you can even email it to yourself and re-import whenever from where ever.

I guess to summarise, if I do any syncing I wont be re-inventing the wheel. I'll use the small data allowance chrome gives and make do with that. Anything else is can of worms imo.

06-Nov-2015 01:39:13 - Last edited on 06-Nov-2015 03:45:35 by Indecent Act

AoDude

AoDude

Posts: 1,694 Mithril Posts by user Forum Profile RuneMetrics Profile
Indecent Act said :
sorry for my late reply.


No worries

Indecent Act said :
Unless you mean everyone has their own individual file, then people would have to create and set up their own drive and host the file. That's getting get a bit messy.


Yeah, I was basically suggesting exporting and importing the settings directly to and from an individuals own google drive. The data would be stored in that users google account, and so their data/settings would be secured by google with their own authentication means. But since it is stored in the cloud, it would be very user friendly to be able to get that info imported to any computer they wanted. (rather than saving a file to the desktop, attaching it to an email/uploading to dropbox/ect, then downloading the file on the new computer, and then uploading it back into the extension)

Indecent Act said :
I guess to summarise, if I do any syncing I wont be re-inventing the wheel.


You are probably right. You should know that you have been coding longer than I have been alive. I only know enough to be dangerous and do stupid things :)
AO
Deputy-Owner :
The Nexus CC

06-Nov-2015 06:46:05

Quick find code: 261-262-33-65181208 Back to Top