From a8358ffef95545d87d41d3f97a4ea479e96e4edc Mon Sep 17 00:00:00 2001 From: Yuriy Date: Fri, 21 Jun 2024 17:54:29 -0400 Subject: [PATCH] hide link previews in Locals posts --- Modules/Post-To-Locals.ahk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/Post-To-Locals.ahk b/Modules/Post-To-Locals.ahk index 5ce89bd..b8b5dbf 100644 --- a/Modules/Post-To-Locals.ahk +++ b/Modules/Post-To-Locals.ahk @@ -65,7 +65,12 @@ if(Status){ Return } +; click the "Hide Links Preview" checkbox to hide previews of hyperlinks +if(InStr(PostBody, "https")){ + Xpath = (//div[@class='hide-switcher-container'])[1] + Status := Selenium_LoopToClickXpath(Xpath:=Xpath,NumOfLoops:=1,SleepLength:=100) +} if(ImageAttachmentFilepath != ""){