Skip to content
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

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

Open
COOLak opened this issue Feb 29, 2024 · 15 comments
Labels
general help General Help queries

Comments

@COOLak
Copy link

COOLak commented Feb 29, 2024

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.

@COOLak COOLak changed the title [QUESTION] Combining proxies and their whitelist/blacklsit settings from two FoxyProxy version [QUESTION] Combining proxies and their whitelist/blacklsit settings from two FoxyProxy generations Feb 29, 2024
@erosman
Copy link
Collaborator

erosman commented Feb 29, 2024

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:

  • Do all changes on the v7
  • Export v7 settings
  • Import the setting into v8 via "Import from older versions"

@erosman erosman added the general help General Help queries label Feb 29, 2024
@COOLak
Copy link
Author

COOLak commented Mar 1, 2024

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
Copy link
Collaborator

erosman commented Mar 1, 2024

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
Copy link
Author

COOLak commented Mar 4, 2024

@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
Copy link
Collaborator

erosman commented Mar 4, 2024

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

Try this:

  • Back-up your settings (Export)
  • Uninstal FoxyProxy on one machine
  • Restart Firefox (to make sure Firefox cache is cleared)
  • Re-instal FoxyProxy on that machine
  • Enable sync on that machine (both Firefox sync & FoxyProxy sync)
  • SAVE
  • On the OTHER machine (with data/proxies), make some changes (e.g. disable/enable one proxy)
  • SAVE
  • Wait to see if the data from that machine is passed to the machine with no data

@COOLak
Copy link
Author

COOLak commented Mar 5, 2024

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
Copy link
Collaborator

erosman commented Mar 5, 2024

Therefore, is this the situation?

  • You have 2 different settings
  • You want to combine the 2 sets into one
  • After combining, you want to have identical settings on both machines

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
Copy link
Author

COOLak commented Mar 10, 2024

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
Copy link
Collaborator

erosman commented Mar 10, 2024

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

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

  • Export settings from both versions
  • Open them in a Text Editor
  • The settings will have the following format
{
  "mode": "pattern",
  "sync": true,
  "autoBackup": true,
  "showPatternProxy": false,
  "passthrough": "",
  "container": {  },
  "commands": {  },
  "data": [
    { ... proxy 1 (with its patterns) ... },
    { ... proxy 2 (with its patterns) ... },
    { ... proxy 3 (with its patterns) ... },
    { ... proxy 4 (with its patterns) ... },
    { ... proxy 5 (with its patterns) ... }
  ]
}
  • Copy what is inside data from one
  • Paste inside data in the other
  • Remember that there should be a , after each proxy, except the last one
  • SAVE
  • Import the edited settings

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
Copy link
Author

COOLak commented Mar 13, 2024

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
Copy link
Author

COOLak commented Mar 13, 2024

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
Copy link
Collaborator

erosman commented Mar 13, 2024

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.

  • If FoxyProxy Sync options is enable, every time FoxyPrxoy's Options are edited, it sends all proxies to the browser's special Sync storage area
  • Sending data to other devices is performed by the browser
  • If Browser sync is enabled, browser periodically checks if the Sync storage area has data, and sends that data to the other device that have browser sync enabled
  • Other devices then sends the data to the corresponding extensions
  • The FoxyProxy in other devices gets notified of the new data (if FoxyProxy sync option is enabled)
  • FoxyProxy then, clears proxies from the receiving device and replaces it with the data from the sending device

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

  • Device X with proxies a, b, c
  • Device Y with proxies d, e, f
  • Device X proxies are edited (e.g. one proxy is disabled)
  • Sync is sent to device Y
  • Device Y removes d, e, f and replaces them with a, b, c
  • Now both devices only have proxies a, b, c

@ericjung
Copy link
Contributor

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
Copy link
Author

COOLak commented Mar 14, 2024

  • 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
Copy link
Collaborator

erosman commented Mar 14, 2024

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 #127 (comment)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
general help General Help queries
Projects
None yet
Development

No branches or pull requests

3 participants