From 38a579c486235b1bd2968eac21f9817d71ad8529 Mon Sep 17 00:00:00 2001 From: yuriy Date: Fri, 21 Jun 2024 17:58:01 -0400 Subject: [PATCH] Locals hide link preview --- Modules/Locals-Upload.ahk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Modules/Locals-Upload.ahk b/Modules/Locals-Upload.ahk index 56eebff..5b33c6d 100644 --- a/Modules/Locals-Upload.ahk +++ b/Modules/Locals-Upload.ahk @@ -100,6 +100,14 @@ Loop, 5 { sleep, 2000 } +; click the "Hide Links Preview" checkbox to hide previews of hyperlinks +if(InStr(VideoDescription, "https")){ + Xpath = (//div[@class='hide-switcher-container'])[1] + Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=100) + +} + + ; SaveOrPostProgress(Message:="Waiting Video to finish uploading",PostType:="Tooltip,ErrorLoggingTextFile") Message = Uploading Video File SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile")