ChatGPT 模型切换器(支持 GPT-4 Mobile 及所有可用模型)

在 ChatGPT 网页端使用 GPT-4 Mobile 模型。同时,它还提供了切换到其他模型的功能,以提供更大的灵活性。一般来说,该脚本不会与其他流行的 ChatGPT 脚本产生冲突。

< 脚本ChatGPT 模型切换器(支持 GPT-4 Mobile 及所有可用模型)的反馈

提问/评论

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)

发表回复

登录以发表回复。