Code: Select all
PROXY ADDRESS=xxx.xxx.xxx:8080
but I want to change the Sock5 proxy so is there any trick to do this?
Firefox 55.0.2
Imacros Firefox 9.0.3
Windows 10 Home
Code: Select all
PROXY ADDRESS=xxx.xxx.xxx:8080
See using proxy list or plugin on firefox? and Imacros To Extract Firefox Profiles Proxy IP & PortPucca wrote:Does anyone know a way to change the sock5 proxy? I only found a method to change HTTP proxy
Code: Select all
PROXY ADDRESS=xxx.xxx.xxx:8080
but I want to change the Sock5 proxy so is there any trick to do this?
Code: Select all
var macro = "CODE:";
macro+="SET !DATASOURCE C:\\Users\\Administrator\\Documents\\iMacros\\Downloads\\socks.txt" + "\n";
macro+="SET !DATASOURCE_LINE 1" + "\n;";
macro+="SET !EXTRACT {{!COL1}}";
iimPlayCode(macro);
var ip=iimGetExtract().split(':');
var port = "0"
var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService);
var a = pref.getBranch("network.proxy.");
a.setCharPref("socks", ip[0]);
a.setIntPref("socks_port", port[1]);
a.setIntPref("type", 1);
Yep, normal... You construct your on-the-fly Macro to be played with 'iimPlay()' but you play it with 'iimPlayCode()'... which doesn't need your String to start with "CODE:", and is apparently not "clever"/tolerant enough to ignore it automatically...Pucca wrote:Ok I found some codes and edited to fit my needs but it doesn't seem to work
I get the error:Code: Select all
var macro = "CODE:"; macro+="SET !DATASOURCE C:\\Users\\Administrator\\Documents\\iMacros\\Downloads\\socks.txt" + "\n"; macro+="SET !DATASOURCE_LINE 1" + "\n;"; macro+="SET !EXTRACT {{!COL1}}"; iimPlayCode(macro); var ip=iimGetExtract().split(':'); var port = "0" var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService); var a = pref.getBranch("network.proxy."); a.setCharPref("socks", ip[0]); a.setIntPref("socks_port", port[1]); a.setIntPref("type", 1);
I checked that it's the correct path and the file does exist so I don't know why it can't parse that lineCode: Select all
can not parse macro line: CODE:SET !DATASOURCE C:\Users\Administrator\Documents\iMacros\Downloads\socks.txt (Error code: -910)