you can directly install a AI via https://github.com/Yidadaa/ChatGPT-Next-Web
and use script add a button on the menu to instead of the old button.



(function () {
var urls = window.location.href;
function newNavItem(svgIcon, href, title, id) {
var anchor = document.createElement('a');
anchor.href = href;
anchor.id = id;
anchor.target = "_blank";
anchor.innerHTML = svgIcon;
anchor.className = "false px-4 pr-5 py-2 rounded-lg flex flex-row items-center text-lg text-gray-800 dark:text-gray-300 hover:bg-white hover:shadow dark:hover:bg-zinc-700";
anchor.appendChild(document.createTextNode(title));
var headerResources = document.querySelector("#header-resources");
var headerExplore = document.querySelector("#header-explore");
var headerAskAI = document.querySelector("#header-ask-ai");
var headerAuth = document.querySelector("#header-auth");
var headerNewIcon = document.querySelector("#" + id + "");
if (!headerNewIcon) {
if (headerResources && headerResources.parentNode) {
headerResources.parentNode.insertBefore(anchor, headerExplore);
} else if (headerAuth && headerAuth.parentNode) {
headerAuth.parentNode.insertBefore(anchor, headerAuth);
}
}
if (headerAskAI) {
headerAskAI.style.display = "none";
}
}
setTimeout(function () {
var chatGPTIcon = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="mr-3 w-6 h-auto opacity-70"><rect x="3" y="11" width="18" height="10" rx="2"></rect><circle cx="12" cy="5" r="2"></circle><path d="M12 7v4"></path><line x1="8" y1="16" x2="8" y2="16"></line><line x1="16" y1="16" x2="16" y2="16"></line></svg>';
newNavItem(chatGPTIcon, "https://chatgpt.yourdomain.com", "ChatGPT", "chatGPT");
}, 2000);
})(); GitHub - ChatGPTNextWeb/NextChat: ✨ Light and Fast AI Assistant. Support: Web | iOS | MacOS | Android |  Linux | Windows
 
 
Back to Top