From 879eb2103ca30e04857c6337f5ac59b491a42eea Mon Sep 17 00:00:00 2001 From: HDS Date: Fri, 15 Sep 2023 14:16:23 +0800 Subject: [PATCH 1/4] Update addCheckboxes.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat: 改用css层级选择器,而不是具体的class列表 --- addCheckboxes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addCheckboxes.js b/addCheckboxes.js index 4b9b4e6..c470717 100644 --- a/addCheckboxes.js +++ b/addCheckboxes.js @@ -17,7 +17,7 @@ function preventEventPropagation(event) { } function addCheckboxes() { - const conversationSelectors = '.flex.py-3.px-3.items-center.gap-3.relative.rounded-md'; + const conversationSelectors = 'div div span div ol li>a.flex'; const titleSelectors = '.flex-1.text-ellipsis.max-h-5.overflow-hidden.break-all.relative'; const conversations = document.querySelectorAll(conversationSelectors); From ea33bda197b07443fdcc25e3d16a74bde36f202f Mon Sep 17 00:00:00 2001 From: HDS Date: Fri, 15 Sep 2023 14:17:11 +0800 Subject: [PATCH 2/4] Update manifest.json Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 4690a90..39bdda5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "ChatGPT Bulk Delete", - "version": "2.2", + "version": "2.3", "description": "A Chrome extension to bulk delete ChatGPT conversations", "icons": { "48": "icon48.png" From 71eb8e4817862b48f88d8e008f698815fcacc47e Mon Sep 17 00:00:00 2001 From: HDS Date: Fri, 15 Sep 2023 14:18:17 +0800 Subject: [PATCH 3/4] Update bulkDeleteConversations.js --- bulkDeleteConversations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bulkDeleteConversations.js b/bulkDeleteConversations.js index 501943e..bf22e6e 100644 --- a/bulkDeleteConversations.js +++ b/bulkDeleteConversations.js @@ -33,7 +33,7 @@ async function deleteConversation(checkbox) { // debugger - const deleteButton = await waitForElement('.absolute.flex.right-1.z-10.text-gray-300.visible button:nth-child(2)'); + const deleteButton = await waitForElement('nav div a>div>button:nth-child(2)'); if (deleteButton) { console.log("2. 点击删除按钮"); From 58613a58733e64ef4b9c6377a665d2dac542c455 Mon Sep 17 00:00:00 2001 From: hds Date: Fri, 15 Sep 2023 14:25:08 +0800 Subject: [PATCH 4/4] feat: v2.4 --- manifest.json | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/manifest.json b/manifest.json index 39bdda5..3d660ba 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "ChatGPT Bulk Delete", - "version": "2.3", + "version": "2.4", "description": "A Chrome extension to bulk delete ChatGPT conversations", "icons": { "48": "icon48.png" @@ -17,8 +17,13 @@ ], "content_scripts": [ { - "matches": ["*://chat.openai.com/*"], - "js": ["addCheckboxes.js", "bulkDeleteConversations.js"] + "matches": [ + "*://chat.openai.com/*" + ], + "js": [ + "addCheckboxes.js", + "bulkDeleteConversations.js" + ] } ] }