From 636860223c76e37b55cfa47f22ac8fee7b275ed3 Mon Sep 17 00:00:00 2001 From: Luigi D'Acunto Date: Wed, 17 Jun 2026 15:17:31 +0200 Subject: [PATCH] feat: estendi badge match alle ricerche per tag su edit_ruleset Le pagine edit_ruleset aperte da una ricerca per hosttag usano title="Matches" invece di title^="This rule matches". Esteso il selettore CSS per coprire entrambi i casi. bump version to 2.7.1 --- user_script/checkmk_swissknife.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_script/checkmk_swissknife.user.js b/user_script/checkmk_swissknife.user.js index 3fa9857..4377823 100644 --- a/user_script/checkmk_swissknife.user.js +++ b/user_script/checkmk_swissknife.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Checkmk SwissKnife // @namespace https://luigidacunto.com/ -// @version 2.7.0 +// @version 2.7.1 // @description Raccolta di miglioramenti all'interfaccia di Checkmk WATO. Ogni fix o enhancement viene aggiunto qui come feature indipendente. // @author Luigi D'Acunto // @homepageURL https://git.luigidacunto.com/tools/checkmk-swissknife @@ -638,7 +638,7 @@ function highlightRuleMatchStatus(doc) { if (doc.body.dataset.cmkMatchHighlight === '1') return; - const matchImgs = doc.querySelectorAll('img.icon[title^="This rule matches"]'); + const matchImgs = doc.querySelectorAll('img.icon[title^="This rule matches"], img.icon[title="Matches"]'); const noMatchImgs = doc.querySelectorAll('img.icon[title^="This rule does not match"]'); if (!matchImgs.length && !noMatchImgs.length) return;