From d5c2424a5814d507111b21ede835e471f22dcbc9 Mon Sep 17 00:00:00 2001 From: Yevhenii Hyzyla Date: Mon, 10 Jan 2022 17:33:00 +0200 Subject: [PATCH] Always open link in new tab --- source/content.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/content.ts b/source/content.ts index 8c6b791..a6aa643 100644 --- a/source/content.ts +++ b/source/content.ts @@ -19,6 +19,8 @@ function createLink(name: string, value: string): Element { const link = document.createElement("a"); const URL = `/app/discover#/?_a=(query:(language:kuery,query:'${name}:"${value}"'))`; link.setAttribute("href", URL); + link.setAttribute("target", "_blank"); + link.setAttribute("rel", "noreferrer noopener"); link.classList.add("kibana-clicker-link"); link.textContent = value; return link;