Created
October 19, 2025 18:16
-
-
Save muhammetaydinn/6904dd2dd1736493d63b02c24cc654b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // LinkedIn Toplu Takipten Çıkma Scripti | |
| // Kullanım: LinkedIn sayfasında tarayıcı konsoluna yapıştırın (F12 > Console) | |
| (async function unfollowAll() { | |
| console.log('🚀 Takipten çıkma işlemi başlatılıyor...'); | |
| // Toplam buton sayısı | |
| let totalUnfollowed = 0; | |
| // Scroll ve unfollow işlemini tekrarla | |
| async function processPage() { | |
| // Sayfadaki tüm "Following" butonlarını bul | |
| const followButtons = document.querySelectorAll('button[aria-label*="Following"], button[aria-pressed="true"]'); | |
| if (followButtons.length === 0) { | |
| console.log('✅ Tüm takipler kaldırıldı veya buton bulunamadı!'); | |
| console.log(`📊 Toplam ${totalUnfollowed} şirketten takip kaldırıldı.`); | |
| return; | |
| } | |
| console.log(`📍 ${followButtons.length} adet "Following" butonu bulundu.`); | |
| // Her butona tıkla | |
| for (let i = 0; i < followButtons.length; i++) { | |
| const button = followButtons[i]; | |
| try { | |
| // Butona tıkla | |
| button.click(); | |
| totalUnfollowed++; | |
| console.log(`✓ ${totalUnfollowed}. takip kaldırıldı`); | |
| // LinkedIn'in rate limiting'ine takılmamak için bekleme | |
| await new Promise(resolve => setTimeout(resolve, 500)); | |
| } catch (error) { | |
| console.error('❌ Hata:', error); | |
| } | |
| } | |
| // Sayfayı aşağı kaydır (daha fazla içerik yüklemek için) | |
| window.scrollTo(0, document.body.scrollHeight); | |
| await new Promise(resolve => setTimeout(resolve, 2000)); | |
| // Yeni butonlar yüklendiyse tekrar çalıştır | |
| const newButtons = document.querySelectorAll('button[aria-label*="Following"], button[aria-pressed="true"]'); | |
| if (newButtons.length > 0) { | |
| console.log('🔄 Yeni içerik yüklendi, devam ediliyor...'); | |
| await processPage(); | |
| } else { | |
| console.log('✅ İşlem tamamlandı!'); | |
| console.log(`📊 Toplam ${totalUnfollowed} şirketten takip kaldırıldı.`); | |
| } | |
| } | |
| await processPage(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment