support all languages && improved code readability and maintainability

This commit is contained in:
qcrao
2024-05-15 12:03:10 +08:00
parent 0267d05e83
commit 6fc1a93ac2
6 changed files with 87 additions and 101 deletions

View File

@@ -1,9 +1,9 @@
(function() {
const removeConversationCheckboxes = document.querySelectorAll('.conversation-checkbox');
removeConversationCheckboxes.forEach(checkbox => {
checkbox.remove();
});
// 在移除所有复选框后刷新页面
location.reload();
})();
function removeCheckboxesAndReload() {
const checkboxes = document.querySelectorAll(`.${CHECKBOX_CLASS}`);
checkboxes.forEach(checkbox => checkbox.remove());
// Refresh the page after removing all checkboxes
location.reload();
}
removeCheckboxesAndReload();