Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How can I set a different proxy server for different networks in user.js

  • 1 trả lời
  • 2 gặp vấn đề này
  • 6 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

I need to automatically set the proxy configuration depending on the network I am connected to. Can this be done through the user.js?

Simple logic would be:-

if IP=10.20.30.0 use proxy A if IP=172.18.19.0 use proxy B else DIRECT

Thanks

Leon

I need to automatically set the proxy configuration depending on the network I am connected to. Can this be done through the user.js? Simple logic would be:- if IP=10.20.30.0 use proxy A if IP=172.18.19.0 use proxy B else DIRECT Thanks Leon

Được chỉnh sửa bởi leonc vào

Tất cả các câu trả lời (1)

more options

No, you can't do it that way.

You could create a set of files user.js and use a bat or cmd file to copy the file with the proxy setting that you want to use to user.js and then start Firefox.

cd <path to profile folder>
delete user.js
copy user-proxy1.js user.js
start "" "C:\Program Files\Mozilla Firefox\firefox.exe"


You can also use an extension.