Fk chai limits

Bu script direkt olarak kurulamaz. Başka scriptler için bir kütüphanedir ve meta yönergeleri içerir // @require https://update.greatest.deepsurf.us/scripts/571951/1787236/Fk%20chai%20limits.js

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name        Fk chai limits
// @namespace   Violentmonkey Scripts
// @match       *://*.chai-research.com/chat/*
// @icon        https://web.chai-research.com/favicon.ico
// @grant       none
// @version     1.2
// @author      SkipUsernameRE
// ==/UserScript==

(function() {
  'use strict';

  setInterval(() => {
    localStorage.setItem("conversation_turns", "0");
  }, 1000);

  const observer = new MutationObserver(() => {
    const divs = document.querySelectorAll(
      'div.self-start.mr-10.flex.flex-row.gap-4.my-2.sm\\:my-4.items-start.relative'
    );

    divs.forEach(div => {
      Array.from(div.querySelectorAll('button'))
        .filter(btn => btn.textContent.trim() === "Click to see the message...")
        .forEach(btn => btn.remove()); // <--- removes the "Click to see the message..." button/text from the message container

      div.querySelectorAll('div.blur-sm')
        .forEach(childDiv => childDiv.classList.remove('blur-sm')); // <--- removes the blur from the messsage container
    });

    const shareButton = document.querySelector('button[aria-label="CHAI WEB | Share Button"]'); // <--- removes share button (some find it distracting, remove the line below to disable)
    if (shareButton) shareButton.remove();

    const flexContainers = document.querySelectorAll('div.flex.flex-col.h-\\[90svh\\].lg\\:h-\\[100vh\\]');
    flexContainers.forEach(container => {
      const targetChild = container.querySelector('div.relative.px-4.md\\:py-2');
      if (targetChild) targetChild.remove();
    });

    const elems = document.querySelectorAll('[class*="bg-black/50"]');
    elems.forEach(el => el.remove()); // <--- removes the annoying "Chat with {x} on CHAI App" popup
  });

  observer.observe(document.body, { childList: true, subtree: true }); // <--- observes the DOM for added or removed elements
})();