ChatGPT Model Switcher (Supports GPT-4 Mobile and All Available Models)

Use the GPT-4 Mobile model on the ChatGPT web interface. It also provides the ability to switch to other models for added flexibility. Generally, this script does not conflict with other popular ChatGPT scripts.

< Відгуки до ChatGPT Model Switcher (Supports GPT-4 Mobile and All Available Models)

Question/comment

NWP
§
Опубліковано: 04.07.2024

If the menu doesn't show up for you, like it did for me, then change this code:

    new MutationObserver((mutations) => {
      for (const mutation of mutations) {
        if (mutation.type === "childList") {
          const mountPoint = document.querySelector("main div.sticky");
          if (mountPoint && Array.from(mountPoint.childNodes).some((child) => child.hasChildNodes()) && !document.getElementById("chatgpt-model-switcher")) {
            mountApp(mountPoint);
            break;
          }
        }
      }
    }).observe(document.body, {
      subtree: true,
      childList: true
    });

with this code:

document.addEventListener('DOMContentLoaded', () => {
  new MutationObserver((mutations) => {
    for (const mutation of mutations) {
      if (mutation.type === "childList") {
        const mountPoint = document.querySelector("main div.sticky");
        if (mountPoint && Array.from(mountPoint.childNodes).some((child) => child.hasChildNodes()) && !document.getElementById("chatgpt-model-switcher")) {
          mountApp(mountPoint);
          break;
        }
      }
    }
  }).observe(document.body, {
    subtree: true,
    childList: true
  });
});

Thank you for this script!

§
Опубліковано: 22.09.2024

Doesn't work for me :(
(using firefox)

Опублікувати відповідь

Sign in to post a reply.