Greasy Fork is available in English.

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)

Въпрос/коментар

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)

Публикувайте отговор

Влезте, за да публикувате отговор.