remove min-height, add history selector, change chat selector to link node
This commit is contained in:
@@ -73,7 +73,9 @@ function addShiftKeyEventListeners() {
|
|||||||
// 添加复选框到每个对话
|
// 添加复选框到每个对话
|
||||||
function addCheckboxes() {
|
function addCheckboxes() {
|
||||||
console.log("Adding checkboxes to conversations...", Selectors);
|
console.log("Adding checkboxes to conversations...", Selectors);
|
||||||
const conversations = document.querySelectorAll(
|
//Select history div which contains all regular chats
|
||||||
|
const history = document.querySelector(Selectors.HISTORY);
|
||||||
|
const conversations = history.querySelectorAll(
|
||||||
Selectors.CONVERSATION_SELECTOR
|
Selectors.CONVERSATION_SELECTOR
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -93,7 +95,6 @@ function addCheckboxes() {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
min-height: inherit;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// 创建新的复选框并添加到 flexContainer
|
// 创建新的复选框并添加到 flexContainer
|
||||||
|
|||||||
@@ -8,8 +8,11 @@ if (typeof window.globalsLoaded === "undefined") {
|
|||||||
conversationsCheckbox: ".conversation-checkbox:checked",
|
conversationsCheckbox: ".conversation-checkbox:checked",
|
||||||
confirmDeleteButton: "button.btn.btn-danger",
|
confirmDeleteButton: "button.btn.btn-danger",
|
||||||
threeDotButton: '[id^="radix-"]',
|
threeDotButton: '[id^="radix-"]',
|
||||||
|
//Select history div that contains all chats
|
||||||
|
HISTORY: '[id^="history"]',
|
||||||
// 更新为新的对话选择器格式
|
// 更新为新的对话选择器格式
|
||||||
CONVERSATION_SELECTOR: '[href^="/c/"]',
|
// Updated Converstation selector changed to link nodes
|
||||||
|
CONVERSATION_SELECTOR: "a",
|
||||||
// 更新标题选择器,保持相对路径
|
// 更新标题选择器,保持相对路径
|
||||||
TITLE_SELECTOR: ".relative.grow.overflow-hidden.whitespace-nowrap",
|
TITLE_SELECTOR: ".relative.grow.overflow-hidden.whitespace-nowrap",
|
||||||
INTERACTIVE_ELEMENT_SELECTOR: "button",
|
INTERACTIVE_ELEMENT_SELECTOR: "button",
|
||||||
|
|||||||
Reference in New Issue
Block a user