feat(global.js): hide buttons starting with "Check"

Added logic to automatically hide any button with text starting with "Check". This enhances the UI by removing unnecessary or redundant button elements that may not be needed for the user experience.
This commit is contained in:
Kumi 2024-11-14 16:14:44 +01:00
parent 0842d40df9
commit ce5b93c5c6
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -70,6 +70,13 @@ document.addEventListener("DOMContentLoaded", function () {
hideContent();
});
// Hide any button that has a text starting with "Check"
$("button").each(function () {
if ($(this).text().startsWith("Check")) {
$(this).hide();
}
});
$("form").each(function () {
const form = $(this);