Programmatically Proxy Switcher
Overview
Programmatically Proxy Switcher is a Chrome extension developed by hhetao700.
According to the data from Chrome web store, current version of Programmatically Proxy Switcher is 1.0.0, updated on 2021-03-23.
29 users have installed this extension.
1 users have rated this extension with an average rating of .
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 */