From a36c2aa398ac3b16995919f7989758113b0b0ae7 Mon Sep 17 00:00:00 2001 From: GrzegorzZajac000 Date: Wed, 14 Feb 2024 12:45:21 +0100 Subject: [PATCH] #1501 getInputs - FIX digiBTW --- src/content/observer/observerConstants/notObservedNodes.js | 4 +++- src/partials/inputsSelectors.js | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/content/observer/observerConstants/notObservedNodes.js b/src/content/observer/observerConstants/notObservedNodes.js index 91acbc6..a12722a 100644 --- a/src/content/observer/observerConstants/notObservedNodes.js +++ b/src/content/observer/observerConstants/notObservedNodes.js @@ -68,7 +68,9 @@ const notObservedNodes = [ 'track', 'u', 'var', - 'video' + 'video', + // custom + 'tool-tip' ]; module.exports = notObservedNodes; diff --git a/src/partials/inputsSelectors.js b/src/partials/inputsSelectors.js index 85ea759..fce314a 100644 --- a/src/partials/inputsSelectors.js +++ b/src/partials/inputsSelectors.js @@ -26,7 +26,9 @@ const inputsSelectors = () => { ':not(list)', ':not(-moz-read-only)', ':not(disabled)', - ':not([disabled])' + ':not([disabled])', + ':not([role="button"])', + ':not([role="submit"])' ].join(''); const textAreaSelectors = [ @@ -40,7 +42,7 @@ const inputsSelectors = () => { ':not([disabled])' ].join(''); - return `input[type="text"]${inputSelectors},input[type="number"]${inputSelectors},input[type="tel"]${inputSelectors},textarea${textAreaSelectors}`; + return `input[type="text"]${inputSelectors},input[type="number"]${inputSelectors},input[type="tel"]${inputSelectors},input:not([type])${inputSelectors},textarea${textAreaSelectors}`; }; module.exports = inputsSelectors;