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.

< Rückmeldungen auf ChatGPT Model Switcher (Supports GPT-4 Mobile and All Available Models)

Frage/Kommentar

NWP
§
Veröffentlicht: 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!

§
Veröffentlicht: 22.09.2024

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

Antwort schreiben

Anmelden um eine Antwort zu senden.