Merhaba arkadaşlar,
Kendi ihtiyacım için yapmıştım sizlerde kullanabilirsiniz.
F12 > Console > Copy Paste > Enterrrr

content.js:291 Attribute Finder content script yüklendi
(async function autoUnfollowNonFollowers() {
  console.log("🚀 Başlatıldı: Takip etmeyenleri tespit edip bırakıyor...");
  const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
  async function tryClickConfirm() {
    for (let i = 0; i < 10; i++) {
      const confirmBtn = document.querySelector('button[data-testid="confirmationSheetConfirm"]');
      if (confirmBtn) {
        confirmBtn.click();
        console.log("👉 Takibi bırak butonuna basıldı!");
        await sleep(800);
        return true;
      }
      await sleep(200);
    }
    return false;
  }
  while (true) {
    const userCards = document.querySelectorAll('div[data-testid="cellInnerDiv"] button[data-testid="UserCell"]');
    for (const card of userCards) {
      try {
        // "Seni takip ediyor" yazısı var mı?
        const followIndicator = card.querySelector('[data-testid="userFollowIndicator"]');
        const followsYou = followIndicator && followIndicator.textContent.includes("Seni takip ediyor");
        // Eğer SENİ takip ETMİYORSA:
        if (!followsYou) {
          const unfollowBtn = card.querySelector('button[data-testid$="-unfollow"]');
          if (unfollowBtn) {
            const username = card.innerText.split("\n")[0] || "Bilinmeyen kullanıcı";
            console.log(`❌ ${username} → Takip etmiyor, bırakılıyor...`);
            
            unfollowBtn.click();
            await sleep(600);
            // Onay popup'ı çıkarsa "Takibi bırak" tıkla
            const confirmed = await tryClickConfirm();
            if (confirmed) {
              console.log(`✅ ${username} takibi bırakıldı.`);
            } else {
              console.warn(`⚠️ ${username} için onay popup'ı bulunamadı.`);
            }
            await sleep(1000); // Rate limit koruması
          }
        }
      } catch (e) {
        console.warn("⚠️ Kart işlenirken hata:", e);
      }
    }
    // Yeni kartları yüklemek için aşağı kaydır
    window.scrollBy(0, window.innerHeight);
    console.log("🔄 Sayfa kaydırıldı, yeni kullanıcılar yükleniyor...");
    await sleep(3000);
  }
})();