ChatGPT-4 working even in a larger window. Related to #38
This commit is contained in:
parent
e19a9f7430
commit
23717c0985
1 changed files with 4 additions and 1 deletions
|
|
@ -208,8 +208,10 @@ function checkGPT4Model() {
|
|||
// Set up an interval that checks the value every 100 milliseconds
|
||||
const intervalId = setInterval(() => {
|
||||
// Get the '.text-token-text-secondary' element
|
||||
const element = document.querySelector('.text-token-text-secondary');
|
||||
// const element = document.querySelector('div#radix-\\\\:ri2\\\\: > div > span.text-token-text-secondary');
|
||||
const elements = document.querySelectorAll('[id*=radix] span')
|
||||
|
||||
for(element of elements){
|
||||
// Check if the element exists and its content is '4'
|
||||
if ((element && element.textContent === '4')||(force_go)) {
|
||||
console.log("The GPT Model is now '4'");
|
||||
|
|
@ -223,6 +225,7 @@ function checkGPT4Model() {
|
|||
clearInterval(intervalId);
|
||||
reject("Element not found.");
|
||||
}
|
||||
}
|
||||
}, 200);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue