Merge pull request #35 from bronley/fix/custom-gpt-chat-delete-archieve
fix for delete/archieve of custom gpt chats
This commit is contained in:
@@ -50,7 +50,7 @@ async function archiveConversation(checkbox) {
|
|||||||
|
|
||||||
console.log("1. Hovering over conversation...", conversationElement);
|
console.log("1. Hovering over conversation...", conversationElement);
|
||||||
|
|
||||||
const interactiveElement = conversationElement.querySelector("[draggable=\"true\"]");
|
const interactiveElement = conversationElement.querySelector(Selectors.INTERACTIVE_ELEMENT_SELECTOR);
|
||||||
if (!interactiveElement) {
|
if (!interactiveElement) {
|
||||||
console.log("Skipping conversation - no interactive elements found");
|
console.log("Skipping conversation - no interactive elements found");
|
||||||
// Show notification to user
|
// Show notification to user
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ async function deleteConversation(checkbox) {
|
|||||||
console.log("conversationElement", conversationElement);
|
console.log("conversationElement", conversationElement);
|
||||||
|
|
||||||
// Look for interactive element within the conversation element
|
// Look for interactive element within the conversation element
|
||||||
const interactiveElement = conversationElement.querySelector("[draggable=\"true\"]");
|
const interactiveElement = conversationElement.querySelector(Selectors.INTERACTIVE_ELEMENT_SELECTOR);
|
||||||
if (!interactiveElement) {
|
if (!interactiveElement) {
|
||||||
console.log("Skipping conversation - no interactive elements found");
|
console.log("Skipping conversation - no interactive elements found");
|
||||||
// Show notification to user
|
// Show notification to user
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ if (typeof window.globalsLoaded === "undefined") {
|
|||||||
CONVERSATION_SELECTOR: 'li[data-testid^="history-item-"]',
|
CONVERSATION_SELECTOR: 'li[data-testid^="history-item-"]',
|
||||||
// 更新标题选择器,保持相对路径
|
// 更新标题选择器,保持相对路径
|
||||||
TITLE_SELECTOR: ".relative.grow.overflow-hidden.whitespace-nowrap",
|
TITLE_SELECTOR: ".relative.grow.overflow-hidden.whitespace-nowrap",
|
||||||
|
INTERACTIVE_ELEMENT_SELECTOR: '[draggable]',
|
||||||
};
|
};
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "ChatGPT Bulk Delete",
|
"name": "ChatGPT Bulk Delete",
|
||||||
"version": "5.9",
|
"version": "5.10",
|
||||||
"description": "A Chrome extension to bulk delete ChatGPT conversations",
|
"description": "A Chrome extension to bulk delete ChatGPT conversations",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icon48.png"
|
"48": "icon48.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user