File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -3598,6 +3598,7 @@ def __process_recorded_actions(self):
3598
3598
or srt_actions[n - 1][0] == "js_ca"
3599
3599
)
3600
3600
):
3601
+ sel1 = srt_actions[n - 1][1]
3601
3602
url1 = srt_actions[n - 1][2]
3602
3603
if (
3603
3604
srt_actions[n - 1][0] == "js_cl"
@@ -3616,6 +3617,8 @@ def __process_recorded_actions(self):
3616
3617
if (
3617
3618
url1 == url2
3618
3619
or url1 == url2.replace("www.", "")
3620
+ or url1 == url2.replace("https://", "http://")
3621
+ or sel1.split(" ")[-1].startswith("a[href=")
3619
3622
or (len(url1) > 0
3620
3623
and (url2.startswith(url1) or "?search" in url1)
3621
3624
and (int(srt_actions[n][3]) - int(
@@ -3643,6 +3646,8 @@ def __process_recorded_actions(self):
3643
3646
url2 = url2[:-1]
3644
3647
if url1.replace("www.", "") == url2.replace("www.", ""):
3645
3648
srt_actions[n - 1][0] = "_skip"
3649
+ elif url1.replace("http://", "https://") == url2:
3650
+ srt_actions[n - 1][0] = "_skip"
3646
3651
elif url2.startswith(url1):
3647
3652
srt_actions[n][0] = "f_url"
3648
3653
for n in range(len(srt_actions)):
You can’t perform that action at this time.
0 commit comments