Programmatically Proxy Switcher

#4 / 2 rate

Programmatically Proxy Switcher

402 users

2021-03-23

hhetao700

amiri.artanwebcreator@...

Extension Information

5 star
0%
4 star
0%
3 star
100%
2 star
0%
1 star
0%

Supported Languages

Permissions

Description

This extension helps developers to change their proxy in Chrome using a simple JavaScript programming code. To using this…

This extension helps developers to change their proxy in Chrome using a simple JavaScript programming code.

To using this extension you can use the popup window directly or use a JavaScript code to change the Proxy.

Using with JavaScript:
Note: This extension always adds a hidden button to the document.body with id = 'btn-set-proxy-address__extension'. You can get this button with code document.getElementById('btn-set-proxy-address__extension')

This extension uses some data attributes to get the proxy settings. you have to set 'data-proxy-address', 'data-proxy-username' and 'data-proxy-password' attributes to the 'btn-set-proxy-address__extension' button to set your proxy settings.

Consider the following example:
var btnProxy = document.getElementById('btn-set-proxy-address__extension');
btnProxy.setAttribute('data-proxy-address', '152.52.15.55:3125');
btnProxy.setAttribute('data-proxy-username', 'user1'); /* proxy username and password are optional */
btnProxy.setAttribute('data-proxy-password', 'xK25j99'); /* proxy username and password are optional */

btnProxy.click(); /* this line will change your proxy */