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

Automatically refreshes the current tab after switching proxies #109

Open Hill-98 opened 6 months ago

Hill-98 commented 6 months ago

Adding an option to control whether or not the current tab is automatically refreshed after switching proxies is a very useful feature.

if some website is inaccessible and I switch proxies to access it, an automatic refresh would free my hands.

erosman commented 6 months ago

There are practical considerations:

Hill-98 commented 6 months ago

Regarding the third point, I may not have made it clear that there is no need to let FoxyProxy know if the site is accessible or not, just refresh the tab when switching proxies.

FoxyProxy is not directly connected to the tab, so is it possible to notify the browser of a refresh operation?

erosman commented 6 months ago

It is not certain that everyone would want to have their current tab refreshed when a proxy is changed. The proxy may or may not be related to that tab (e.g. through patterns). Imagine being in the middle of a game, or filling a firm, or watching a clip and suddenly a tab which was not proxied gets refreshed, resulting in loss of data. How would anyone know if the user wants the tab refreshed or not?

What about other tabs? Should all tabs be refreshed? Why not?

Finally, it involves a lot of additional processing to avoid an F5 to refresh the tab.

Hill-98 commented 6 months ago

So I want to make it an option and the default behavior remains the same as it is now.

erosman commented 6 months ago

OK, let's see if there is a popular demand for implementing the feature.

songliansheng commented 4 months ago

From my understanding ,proxy by patterns should meet your requirements , the first time a site can't be opened ,you can include it in a proxy , then you don't have to worry about it anymore

If you switch proxy manually every time ,isn't this troublesome?

Hill-98 commented 4 months ago

@songliansheng Because I have many proxies, sometimes I may need to temporarily switch to another one.