Programmatically Proxy Switcher in Chrome with OffiDocs
Ad
DESCRIPTION
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 */
Additional Information:
- Offered by hhetao700
- Average rating : 5 stars (loved it)
- Developer This email address is being protected from spambots. You need JavaScript enabled to view it.
Programmatically Proxy Switcher web extension integrated with the OffiDocs Chromium online