From 75af9b6a02677536c3f5012f6cb95e8d2cb8b5cd Mon Sep 17 00:00:00 2001 From: wanhose Date: Sun, 4 Aug 2024 09:31:23 +0200 Subject: [PATCH] fix(browser-extension): issue #714 --- packages/browser-extension/src/scripts/content.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/browser-extension/src/scripts/content.js b/packages/browser-extension/src/scripts/content.js index 40063b9..ae763be 100644 --- a/packages/browser-extension/src/scripts/content.js +++ b/packages/browser-extension/src/scripts/content.js @@ -235,7 +235,9 @@ function match(element, skipMatch) { return false; } - if (element.hasAttributes()) { + const hasAttributes = !!element.getAttributeNames().filter((x) => x !== 'data-nosnippet').length; + + if (hasAttributes) { // 2023-06-10: fix #113 temporarily if (element.classList.contains('chat-line__message')) { return false;