From 46552a75f65c1f719dcce5013838203c68c8692d Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 13 Feb 2025 14:48:22 +0100 Subject: [PATCH] clean URL query --- options.php | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/options.php b/options.php index 26ca91c..fd413a9 100755 --- a/options.php +++ b/options.php @@ -385,12 +385,12 @@ Exemples: /24 10.
@@ -813,6 +813,11 @@ Exemples: /24 10. closeIcon: true, position: 'bottom right', }) + for (input of document.querySelectorAll("input[name]")) { + if (!input.value || (input.type == "checkbox" && !input.checked)) { + input.name = "" + } + } return true } else { event.preventDefault()