update conversation selector

This commit is contained in:
qcrao
2024-11-13 14:56:56 +08:00
parent 6d891151a8
commit 6e38ae94f2

View File

@@ -3,14 +3,18 @@ if (typeof window.globalsLoaded === "undefined") {
window.globalsLoaded = true; window.globalsLoaded = true;
const Selectors = { const Selectors = {
conversationsCheckbox: ".conversation-checkbox:checked", // 更新对话选择器以匹配新的 data-testid 属性
confirmDeleteButton: "button.btn.btn-danger", conversationsCheckbox: ".conversation-checkbox:checked",
threeDotButton: '[id^="radix-"]', confirmDeleteButton: "button.btn.btn-danger",
CONVERSATION_SELECTOR: "div.relative > ol > li > div > a", threeDotButton: '[id^="radix-"]',
TITLE_SELECTOR: ".relative.grow.overflow-hidden.whitespace-nowrap", // 更新为新的对话选择器格式
}; CONVERSATION_SELECTOR: 'li[data-testid^="history-item-"]',
// 更新标题选择器,保持相对路径
TITLE_SELECTOR: ".relative.grow.overflow-hidden.whitespace-nowrap",
};
// Constants
const CHECKBOX_CLASS = "conversation-checkbox"; const CHECKBOX_CLASS = "conversation-checkbox";
// Expose variables to the global scope // Expose variables to the global scope