You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
give me some javascript i can execute in the google chrome web console that does the following
for each span node u with class .chat-item-name
if the text of u matches the regex "Chat\s\d+"
click u
wait 1 second
v <-- the node matching the css selector "[title='Suggest a chat name']"
click v
wait 3 seconds
it gave:
(async () => {
const chatItemNames = document.querySelectorAll('span.chat-item-name'); // Select all span nodes with the class .chat-item-name
for (const u of chatItemNames) {
if (/Chat\s\d+/.test(u.textContent)) { // If the text of u matches the regex "Chat\s\d+"
u.click(); // Click u
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait 1 second
const v = document.querySelector("[title='Suggest a chat name']"); // Find the node matching the css selector
if (v) {
v.click(); // Click v
await new Promise(resolve => setTimeout(resolve, 3000)); // Wait 3 seconds
}
}
}
})();
Hi, it would be very handy if we can add an option to enable auto generation of chat title.
It's a good UX instead of clicking the light bulb icon.
Thanks for your work on this tool! Hope this will be implemented.
reference to previously closed ticket: #337
The text was updated successfully, but these errors were encountered: