Links
Comment on page
🧹

LinkedIn üzerindeki bağlantıları temizleme

My Network → Connection alanındaki tüm bağlantıları ilk kişiden itibaren tek tek kaldıran script

🔰 Hızlı Bakış

  • My NetworkConnection alanındaki tüm bağlantıları ilk kişiden itibaren tek tek kaldıran script
  • Tarayıcınızda Console'u açıp, alttaki kaynak kodunu kopyalayın
    • Kopyalamadan önce incelemenizi tavsiye ederim 😅
    • *Console'u nasıl açacağını bilmeyenler Google veya ChatGPT üzerinden aratabilir* 💁‍♂️
Ufak hatalar ve gecikmeler olabiliyor, sayfayı yenileyin ve baştan çalıştırın

👨‍💻 Kaynak Kod

1
collections = document.getElementsByClassName("artdeco-dropdown__trigger artdeco-dropdown__trigger--placement-bottom ember-view mn-connection-card__dropdown-trigger artdeco-button--tertiary artdeco-button--muted artdeco-button--circle p1")
2
3
async function waitForPopupAndClick(class_name, index) {
4
return new Promise(resolve => {
5
let interval = setInterval(() => {
6
let popup = document.getElementsByClassName(class_name)[index];
7
console.log(popup)
8
if (popup) {
9
clearInterval(interval);
10
popup.click()
11
resolve();
12
}
13
}, 100);
14
});
15
}
16
17
async function waitForCollectionSizeToChange(collection, expectedSize) {
18
return new Promise(resolve => {
19
let interval = setInterval(() => {
20
if (collection.length === expectedSize) {
21
clearInterval(interval);
22
resolve();
23
}
24
}, 100);
25
});
26
}
27
28
29
function clickAndWait(expectedSize) {
30
if (expectedSize === 2) {
31
console.log("Done", expectedSize, collections.length)
32
return
33
}
34
console.log("waiting ang clicking...", expectedSize, collections.length)
35
waitForCollectionSizeToChange(collections, expectedSize).then(() => {
36
collections[0].click()
37
waitForPopupAndClick("display-flex align-items-center t-14 t-black--light t-normal", 2).then(() => {
38
waitForPopupAndClick("artdeco-modal__confirm-dialog-btn artdeco-button artdeco-button--2 artdeco-button--primary ember-view", 0).then(() => {
39
console.log(`Removed, col:${collections.length} expected:${expectedSize - 1}`)
40
clickAndWait(expectedSize - 1)
41
})
42
})
43
})
44
}
45
46
// collections.length
47
clickAndWait(collections.length)
2023 © Yunus Emre AK