diff --git a/SeleniumProxyAuthentication/ProxyAuthentication.cs b/SeleniumProxyAuthentication/ProxyAuthentication.cs
index b1ae946..5b23388 100644
--- a/SeleniumProxyAuthentication/ProxyAuthentication.cs
+++ b/SeleniumProxyAuthentication/ProxyAuthentication.cs
@@ -16,7 +16,7 @@ public static class ProxyAuthentication
/// You Can Use Edge or Chrome for now
/// Your Proxy With This Format host:port or host:port:user:pass as string
/// Edit Chrome Extension Manifest File (Leave it Empty If You Don't Want To Change It)
- public static void AddProxyAuthenticationExtension(this T browserOption, Proxy proxy, [Optional] CrxManifest crxManifest)
+ public static void AddProxyAuthenticationExtension(this T browserOption, Proxy proxy, [Optional] CrxManifest crxManifest, bool pack = true)
{
//easy set if there is no auth proxy
//if (!proxy.HasCredential)
@@ -38,7 +38,14 @@ public static void AddProxyAuthenticationExtension(this T browserOption, Prox
if (browserOption is ChromeOptions chromeOptions)
{
- chromeOptions.AddExtension(Utilities.CreateExtension(tempFolder, crxDetailsFolder));
+ if (pack)
+ {
+ chromeOptions.AddExtension(Utilities.CreateExtension(tempFolder, crxDetailsFolder));
+ }
+ else
+ {
+ chromeOptions.AddArgument($"--load-extension={crxDetailsFolder}");
+ }
}
}
///