How to Change Proxy in iMacros FF Free Plugin

Hunwarrior

Senior Member
Joined
May 12, 2010
Messages
1,035
Reaction score
876
Finally i got a solution to change proxys in iMacros FireFox free plugin.I wanted this much, therefore i think many of you would find it useful.
Just change the port number and proxy parameters.
You need to set up manually in the FF setting : Use manual proxy settings.

Code:
URL GOTO=about:config
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"xxx.xxx.xx.xxx";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",xxxxx);

'xxxxx= port number
'xxx.xxx.xx.xxx = proxy
 
Finally i got a solution to change proxys in iMacros FireFox free plugin.I wanted this much, therefore i think many of you would find it useful.
Just change the port number and proxy parameters.
You need to set up manually in the FF setting : Use manual proxy settings.

Code:
URL GOTO=about:config
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"xxx.xxx.xx.xxx";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",xxxxx);

'xxxxx= port number
'xxx.xxx.xx.xxx = proxy

how to add lots of proxy and spin them ever post?
 
how to add lots of proxy and spin them ever post?

Look in Imacros manual for DATASOURCE command and read proxies from file.
Personally I'm using local proxy server - 3proxy. It maybe a bit complicated but on their site 3proxy.ru there is nice manual and howto. Also for firefox I'm using Privoxy+3proxy. In privoxy I'm configured filters so jpg,png,css,js,swf would go without proxy to speed up surfing.

Here's example config for 3proxy. It's choosing randomly from 5 proxies. The sum for parent proxies must be 1000. So if you'd have 10 proxies, it will be "parent 100 connect..." and listens on localhost at 5555 port.


service
auth iponly
allow *
parent 200 connect 111.134.11.250 3128
parent 200 connect 68.134.11.252 44931 mylogin mypass
parent 200 connect 68.134.11.251 3128 mylogin mypass
parent 200 socks4 68.134.11.250 3128
parent 200 socks5 68.134.11.249 3128
proxy -a -p5555
 
Just found out that Imacros 6.90 have in built proxy changing support. Here is the description http://wiki.imacros.net/PROXY. This command not working in Firefox.
Example of usage:

SET !LOOP 1
SET !DATASOURCE c:\proxies.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
PROXY ADDRESS={{!COL1}} BYPASS=*localhost* 127.0.0.1
 
Just found out that Imacros 6.90 have in built proxy changing support. Here is the description http://wiki.imacros.net/PROXY. This command not working in Firefox.
Example of usage:

SET !LOOP 1
SET !DATASOURCE c:\proxies.txt
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
PROXY ADDRESS={{!COL1}} BYPASS=*localhost* 127.0.0.1

yea.. in Free FF add on that's command not working in all version.

We have to choose another way for .. which is given here.. :)
 
So if I wanted to go down a csv file and input proxies that way, do I change 'port number' to something like {{!COL2}} and 'proxy' to {{!COL1}}?

Code:
'xxxxx= {{!COL2}}
'xxx.xxx.xx.xxx = {{!COL1}}
 
Code:
SET !ERRORIGNORE YES
SET !DATASOURCE proxies.csv
SET !DATASOURCE_COLUMNS 2
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !TIMEOUT 60
CLEAR

'proxy module
URL GOTO=about:config
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"{{!COL1}}";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",{{!COL2}});

You have to make a proxies.csv into documents/imacros/datasources.

"proxy","port"
"proxy","port"
"proxy","port"
etc
this is how your .csv should look like.

If you using it collabroration with other command, adjust your .csv according.
 
i was also wondering can you add include type script line to imacros like you can in php... if not you will have to add to several imacros...
 
i am not really familiar with php, so pls explain what you need exactly
 
does someone have a code to automatic delete all the cookies using imacros?
 
yep, CLEAR command seems to do almost all coockies clearing to me.
 
I have been using iMacros for a while now... Thanks for the update. Are you using private proxies or public ? I assume the private is the best way to go for this.
 
Hey guys ,
I'm just learning about iMacros (actually using them I should say...)

So I too, would like to use the free version of foxyproxy with my private proxies.

So if i understand this correctly, I just enter the code below on a .csv and drop it into the datasources folders and that pretty much it???

REALLY need help with this. I'd like to get this up and running by today.

Thanks!

Code:
SET !ERRORIGNORE YES
SET !DATASOURCE proxies.csv
SET !DATASOURCE_COLUMNS 2
SET !LOOP 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !TIMEOUT 60
CLEAR

'proxy module
URL GOTO=about:config
URL GOTO=javascript:var<SP>prefb<SP>=<SP>Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);var<SP>str<SP>=<SP>Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);str.data<SP>=<SP>"{{!COL1}}";prefb.setComplexValue("network.proxy.http",<SP>Components.interfaces.nsISupportsString,<SP>str);
URL GOTO=about:config
URL GOTO=javascript:gPrefBranch.setIntPref("network.proxy.http_port",{{!COL2}});
You have to make a proxies.csv into documents/imacros/datasources.

"proxy","port"
"proxy","port"
"proxy","port"
etc
this is how your .csv should look like.

If you using it collabroration with other command, adjust your .csv according.
 
For anyone that uses proxy authentication with the ONLOGIN command and has upgraded to imacros 7, it no longer seems to work. Downgrading back to 6.7 will fix the problem.

Seems like the new version has quite a few bugs, anyone else had any other issues?
 
Back
Top