From d1352221461a6bcac59c21eeefb785e75f78a0f8 Mon Sep 17 00:00:00 2001 From: yoloClin Date: Sun, 2 Aug 2020 13:52:56 +1000 Subject: When no href value exists on a link the user selects to follow, attempt to click() the link to blindly trigger any JS events bound to it --- src/content/usecases/FollowSlaveUseCase.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content/usecases') diff --git a/src/content/usecases/FollowSlaveUseCase.ts b/src/content/usecases/FollowSlaveUseCase.ts index 971ecee..56c8883 100644 --- a/src/content/usecases/FollowSlaveUseCase.ts +++ b/src/content/usecases/FollowSlaveUseCase.ts @@ -69,6 +69,7 @@ export default class FollowSlaveUseCase { } // eslint-disable-next-line no-script-url if (!url || url === "#" || url.toLowerCase().startsWith("javascript:")) { + hint.click(); return; } await this.tabsClient.openUrl(url, openNewTab, background); -- cgit v1.2.3