Skip to content

Commit

Permalink
Added comma, removed double negation
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 10, 2023
1 parent 25f270f commit b1b02e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions greasemonkey/autoclear-chatgpt-history.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
// @description:zu Ziba itshala lokucabanga okuzoshintshwa ngokuzenzakalelayo uma ukubuka chat.openai.com
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2023.11.9.1
// @version 2023.11.10
// @license MIT
// @icon https://raw.githubusercontent.com/adamlui/userscripts/master/chatgpt/media/icons/openai-favicon48.png
// @icon64 https://raw.githubusercontent.com/adamlui/userscripts/master/chatgpt/media/icons/openai-favicon64.png
Expand Down Expand Up @@ -364,7 +364,7 @@
const chatHistoryNav = document.querySelector(chatHistorySelector) || {},
navLinks = chatHistoryNav.querySelectorAll('a'),
firstLink = [...navLinks].find(link => link.textContent.includes(
chatgpt.history.isOff() ? 'ChatGPTClear' : 'ChatGPTChatGPT')) || {}
chatgpt.history.isOff() ? 'ChatGPTClear' : 'ChatGPTChatGPT')) || {},
firstIcon = firstLink.querySelector('div:first-child'),
firstLabel = firstLink.querySelector('div:nth-child(2)')
navToggleDiv.classList.add(...firstLink.classList, ...firstLabel.classList)
Expand Down Expand Up @@ -559,7 +559,7 @@
function chatHistoryIsLoaded() {
return new Promise(resolve => {
(function checkChatHistory() {
if (!!document.querySelector('nav[aria-label="Chat history"]')) resolve()
if (document.querySelector('nav[aria-label="Chat history"]')) resolve()
else setTimeout(checkChatHistory, 100)
})()
})}
Expand Down

0 comments on commit b1b02e5

Please sign in to comment.