foxyproxy / browser-extension

Version 8 and above. Browser extension source code for Firefox, Chrome, and other Chromium-based browsers
GNU General Public License v2.0
198 stars 29 forks source link

[QUESTION] Combining proxies and their whitelist/blacklsit settings from two FoxyProxy generations #127

Open COOLak opened 4 months ago

COOLak commented 4 months ago

After the infamous update that led to seemingly destroying all people's settings (but then turned out to be recoverable), I decided to keep the old version of FoxyProxy on my Windows PC (7.5.2), but use the new one on my Mac (Firefox in both cases).

Everything is fine with both versions, except a lot of times I have to duplicate my whitelists for some proxies on both devices, because sync doesn't work between these two generations.

Is there a method I could use to at least manually combine all into one without duplicates? I would just do it from time to time, at least.

erosman commented 4 months ago

seemingly destroying all people's settings

Not all. The bug only affected those who had sync enabled, and some who had null value for their log setting.

Is there a method I could use to at least manually combine all into one without duplicates?

Do both version have the same settings? If that is the case, you can:

COOLak commented 4 months ago

Do both version have the same settings?

That's exactly my point, no, they don't. I occasionally add or remove some proxies as well as rules on V7 and on V8 independently. I was wondering if I could combine them into one from time to time.

erosman commented 4 months ago

In that case, it wont matter even if they were both the same version since sync would make them both identical, but you want to have different settings on different machines.

COOLak commented 4 months ago

@erosman

In that case, it wont matter even if they were both the same version since sync would make them both identical, but you want to have different settings on different machines.

No! I want exactly the same settings on both machines. In fact, I've already upgraded to the latest version even on the Windows PC (I see it has improved). But even then, I keep having different, individual sets of settings on PC and Mac. Both are using Firefox, and sync in enabled in both Firefox and FoxyProxy. And for some reason I still have different settings on two machines. I want them to get combined. How do I achive this? Maybe I could provide you some logs to explore?

erosman commented 4 months ago

I see. in that case, they should sync properly. Please note that the mode is not synced.

Try this:

COOLak commented 4 months ago

I think you're still missing the point. I have two different sets of settings on two machines. Even if I export them both, I can then import only one of them, I would have to do all the other changes (from one of the machines) manually. Which I want to avoid and just combine these two sets into one. The addons sync is enabled in Firefox settings, and I just manually synced everything on both machines. Still, I have two different sets of settings in FoxyProxy.

erosman commented 3 months ago

Therefore, is this the situation?

If that is the case, you have to manually combine them, which is easy with just copy & paste. Export settings from both, copy proxies under one data to the other one.

Sync is not designed to combine data.

COOLak commented 3 months ago

Ah, well, not only proxies, a lot of different rules for each proxy too. But if there's no other way that doing it manually, so be it (or I'll just keep everything as is).

erosman commented 3 months ago

Ah, well, not only proxies, a lot of different rules for each proxy too.

They are all in the same place, within the proxies.

But if there's no other way that doing it manually, so be it

If there is a popular demand, we can add a feature to do that.

COOLak commented 3 months ago

If there is a popular demand, we can add a feature to do that.

That would be cool. The method you described via text editor is even more mundane than just plain comparing the sets of settings and adding everything that's missing on one of the devices from the other device and vice versa.

COOLak commented 3 months ago

Hmmm, however, I have an obvious question. How exactly does your sync option work. I have sync enabled on both devices but they both have different sets of proxies as well as settings within those proxies (even within the same ones). If I were to sync this extension to some third device, from which of my devices will the settings get imported? I'm curious of how it is decided.

erosman commented 3 months ago

That would be cool. The method you described via text editor is even more mundane than just plain comparing the sets of settings and adding everything that's missing on one of the devices from the other device and vice versa.

Even if a feature is added, it would only add one sets to the other. It is not feasible to compare the proxies, and check their patterns and the order of the patterns and remove duplicates.

however, I have an obvious question. How exactly does your sync option work.

For example: (each proxy data is complete with its patterns)

ericjung commented 3 months ago

If there is a popular demand, we can add a feature to do that.

That would be cool. The method you described via text editor is even more mundane than just plain comparing the sets of settings and adding everything that's missing on one of the devices from the other device and vice versa.

The free version of ChatGPT can probably merge this for you and remove duplicates. Of course, it is not automated so you need to do it again and again if the installations continue to diverge.

Also, do you know you can export just patterns for each proxy? It is the red arrow icons above the pattern list.

COOLak commented 3 months ago
  • FoxyProxy then, clears proxies from the receiving device and replaces it with the data from the sending device

Well, it does NOT happen in my case. Can I help you troubleshoot it please? What should I send?

erosman commented 3 months ago

Well, it does NOT happen in my case. Can I help you troubleshoot it please? What should I send?

Did you try the process in the https://github.com/foxyproxy/browser-extension/issues/127#issuecomment-1976697218?