diff --git a/bulkDeleteConversations.js b/bulkDeleteConversations.js index 0a8801c..d1e2251 100644 --- a/bulkDeleteConversations.js +++ b/bulkDeleteConversations.js @@ -1,9 +1,3 @@ -const Selectors = { - conversationsCheckbox: '.conversation-checkbox:checked', - deleteButton: 'nav div a>div>button:nth-child(2)', - confirmDeleteButton: 'button.btn.btn-danger', -}; - async function bulkDeleteConversations() { const selectedConversations = getSelectedConversations(); diff --git a/globals.js b/globals.js new file mode 100644 index 0000000..130f70d --- /dev/null +++ b/globals.js @@ -0,0 +1,8 @@ +let lastChecked = null; + +const Selectors = { + conversationsCheckbox: '.conversation-checkbox:checked', + deleteButton: 'nav div a>div>button:nth-child(2)', + confirmDeleteButton: 'button.btn.btn-danger', +}; + \ No newline at end of file diff --git a/manifest.json b/manifest.json index c62ac60..22cbc4c 100644 --- a/manifest.json +++ b/manifest.json @@ -21,6 +21,7 @@ "*://chat.openai.com/*" ], "js": [ + "globals.js", "addCheckboxes.js", "bulkDeleteConversations.js" ]