@@ -144,6 +144,14 @@ def do_recording(file_name, url, overwrite_enabled, use_chrome, window):
144144 )
145145 if not use_chrome :
146146 command += " --edge"
147+ elif "--opera" in command_args :
148+ command += " --opera"
149+ elif "--brave" in command_args :
150+ command += " --brave"
151+ elif "--comet" in command_args :
152+ command += " --comet"
153+ elif "--atlas" in command_args :
154+ command += " --atlas"
147155 if (
148156 "--uc" in command_args
149157 or "--cdp" in command_args
@@ -226,10 +234,37 @@ def create_tkinter_gui():
226234 chk = tk .Checkbutton (window , text = "Overwrite existing files" , variable = cbx )
227235 chk .pack ()
228236 chk .select ()
237+ use_stealth = False
238+ command_args = sys .argv [2 :]
239+ if (
240+ "--uc" in command_args
241+ or "--cdp" in command_args
242+ or "--undetected" in command_args
243+ or "--undetectable" in command_args
244+ ):
245+ use_stealth = True
246+ browser_display = "Use Chrome over Edge"
247+ if "--opera" in command_args :
248+ browser_display = "Use Opera over Edge"
249+ elif "--brave" in command_args :
250+ browser_display = "Use Brave over Edge"
251+ elif "--comet" in command_args :
252+ browser_display = "Use Comet over Edge"
253+ elif "--atlas" in command_args :
254+ browser_display = "Use Atlas over Edge"
229255 cbb = tk .IntVar ()
230- chkb = tk .Checkbutton (window , text = "Use Chrome over Edge" , variable = cbb )
231- chkb .pack ()
232- chkb .select ()
256+ if not use_stealth :
257+ chkb = tk .Checkbutton (window , text = browser_display , variable = cbb )
258+ chkb .pack ()
259+ if "--edge" not in command_args :
260+ chkb .select ()
261+ else :
262+ chkb = tk .Checkbutton (
263+ window , text = "Stealthy Chrome Mode" , variable = cbb
264+ )
265+ chkb .pack ()
266+ chkb .select ()
267+ chkb .config (state = tk .DISABLED )
233268 tk .Label (window , text = "" ).pack ()
234269 url = tk .StringVar ()
235270 tk .Label (window , text = "Enter the URL to start recording on:" ).pack ()
0 commit comments