private void x2XToolStripMenuItem_Click(object sender, EventArgs e) { this.penBrowserTab.AddTab("https://www.ip.cn", setting: new BroserSetting { CookiesSetting = new PenCookie { Cookies = new List <PenCookieItem> { new PenCookieItem { Domain = "baidu.com", Name = "KEY", Value = "Hello Pen:" + DateTime.Now }, } }, Proxy = ProxyPool.GetRandomProxy(), InjectJS = "var v = document.createElement('script');v.innerText=\"function test(){pen.send('hello pen')}\";document.body.appendChild(v);" }, title: "Proxy"); }
public Test() { InitializeComponent(); ProxyPool.Init(Path.Combine(Environment.CurrentDirectory, "proxys.txt")); }