I hope this thread is not too old. First result in google with imacros and proxy settings.
Solution for "Automatich proxy configuration URL" was user (ticket) requested.
chivracq wrote:"... and it didn't work." is such a vague statement...! What didn't work? Do you get any Error Msg, what did you try etc...? Be proactive with the Info you provide if you want StevenP or anybody else to help you...
I think wrong firefox and imacros version but it's untested from me.
gimpedfool wrote:stevenp: How would I use this code? Just input it into my macro and it will then function properly in Firefox?
With javascript (filetype *.js) in your imacros 8.9.7 with firefox (max. v55). See this full
example (zip directory "proxycheck", file *_proxy-check.js)
paulKwan wrote:Hello
It's possible to use a list of proxy with a datasource command ?
Yes.
stevenp wrote:Well yes, there's a solution now
Code: Select all
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
// manual proxy configuration
prefs.setIntPref("network.proxy.type", 1);
// use the proxy server for all protocols
prefs.setBoolPref("network.proxy.share_proxy_settings", true);
// HTTP Proxy
prefs.setCharPref("network.proxy.http", ip);
prefs.setIntPref("network.proxy.http_port", port);
// SOCKS Host
prefs.setCharPref("network.proxy.socks", ip);
prefs.setIntPref("network.proxy.socks_port", port);
// SSL Proxy
prefs.setCharPref("network.proxy.ssl", ip);
prefs.setIntPref("network.proxy.ssl_port", port);
Thanks!
Solution for "Automatich proxy configuration URL" in Firefox (max. v55) with iMacros 8.9.7:
Code: Select all
var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
prefs.setCharPref("network.proxy.autoconfig_url", YOURVALUE);
prefs.setIntPref("network.proxy.type", 2);