From 7b9ac395e3f7e1046dc9a10c46e57134caa0682d Mon Sep 17 00:00:00 2001 From: GrzegorzZajac000 Date: Mon, 26 Feb 2024 17:56:49 +0100 Subject: [PATCH] #1501 addedNode - fix (deel.com, gate.io) --- src/content/observer/observerFunctions/addedNodes.js | 3 +++ src/content/styles/content_script.scss | 1 + 2 files changed, 4 insertions(+) diff --git a/src/content/observer/observerFunctions/addedNodes.js b/src/content/observer/observerFunctions/addedNodes.js index 600c666..3a13d76 100644 --- a/src/content/observer/observerFunctions/addedNodes.js +++ b/src/content/observer/observerFunctions/addedNodes.js @@ -21,6 +21,7 @@ const browser = require('webextension-polyfill'); const findSignificantChanges = require('./findSignificantChanges'); const { getInputs, addInputListener, clearFormElementsNumber, addFormElementsNumber, getFormElements } = require('../../functions'); +const getChildNodes = require('./getChildNodes'); const storeLog = require('../../../partials/storeLog'); const notObservedNodes = require('../observerConstants/notObservedNodes'); @@ -74,7 +75,9 @@ const addedNodes = (mutation, tabInfo) => { const newNodes = Array.from(mutation?.addedNodes) + .concat(...(Array.from(mutation?.addedNodes).map(node => getChildNodes(node)))) .concat(mutation?.target) + .concat(...getChildNodes(mutation.target)) .filter(node => !notObservedNodes.includes(node.nodeName.toLowerCase())); if (!newNodes || newNodes.length <= 0) { diff --git a/src/content/styles/content_script.scss b/src/content/styles/content_script.scss index bcbd4e3..59f75ea 100644 --- a/src/content/styles/content_script.scss +++ b/src/content/styles/content_script.scss @@ -77,6 +77,7 @@ flex-direction: row !important; height: 15px !important; justify-content: space-between !important; + line-height: 1 !important; margin-top: 10px !important; overflow: hidden !important; width: 100% !important;