From 367dec48e1669ccea605f41699d6b2b245392d14 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Mon, 15 May 2023 10:43:33 +0200 Subject: [PATCH] BrowserSteps - Dont highlight elements that are the full page width (body, wrappers etc) --- changedetectionio/static/js/browser-steps.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changedetectionio/static/js/browser-steps.js b/changedetectionio/static/js/browser-steps.js index 0039d12a..f2214e4a 100644 --- a/changedetectionio/static/js/browser-steps.js +++ b/changedetectionio/static/js/browser-steps.js @@ -162,7 +162,9 @@ $(document).ready(function () { ) { // There could be many elements here, record them all and then we'll find out which is the most 'useful' // (input, textarea, button, A etc) - possible_elements.push(item); + if (item.width < xpath_data['browser_width']) { + possible_elements.push(item); + } } });