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.

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

سوئال / ئىنكاس

NWP
§
يوللانغان ۋاقتى: 2024-07-04

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!

§
يوللانغان ۋاقتى: 2024-09-22

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

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.