File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -183,10 +183,10 @@ def uc_special_open_if_cf(driver, url):
183
183
and has_cf (requests_get (url ).text )
184
184
):
185
185
with driver :
186
- time .sleep (0.25 )
187
186
driver .execute_script ('window.open("%s","_blank");' % url )
188
- driver .close ()
189
- driver .switch_to .window (driver .window_handles [- 1 ])
187
+ driver .reconnect (0.555 )
188
+ driver .close ()
189
+ driver .switch_to .window (driver .window_handles [- 1 ])
190
190
else :
191
191
driver .open (url ) # The original one
192
192
return None
@@ -195,8 +195,8 @@ def uc_special_open_if_cf(driver, url):
195
195
def uc_open (driver , url ):
196
196
if (url .startswith ("http:" ) or url .startswith ("https:" )):
197
197
with driver :
198
- time .sleep (0.25 )
199
198
driver .open (url )
199
+ time .sleep (0.25 )
200
200
else :
201
201
driver .open (url ) # The original one
202
202
return None
@@ -205,10 +205,10 @@ def uc_open(driver, url):
205
205
def uc_open_with_tab (driver , url ):
206
206
if (url .startswith ("http:" ) or url .startswith ("https:" )):
207
207
with driver :
208
- time .sleep (0.25 )
209
208
driver .execute_script ('window.open("%s","_blank");' % url )
210
209
driver .close ()
211
210
driver .switch_to .window (driver .window_handles [- 1 ])
211
+ time .sleep (0.25 )
212
212
else :
213
213
driver .open (url ) # The original one
214
214
return None
Original file line number Diff line number Diff line change @@ -208,11 +208,6 @@ def gen_call_function_js_cache_name(match):
208
208
gen_js_whitespaces ,
209
209
file_bin ,
210
210
)
211
- file_bin = re .sub (
212
- b"window\\ .cdc_[a-zA-Z0-9]{22}_(Array|Promise|Symbol)" ,
213
- b"window\\ .ccd_adoQpoasnaf67pfcZLmcfl_(Array|Promise|Symbol)" ,
214
- file_bin ,
215
- )
216
211
file_bin = re .sub (
217
212
b"'\\ $cdc_[a-zA-Z0-9]{22}_';" ,
218
213
gen_call_function_js_cache_name ,
You can’t perform that action at this time.
0 commit comments