This document is also available in English.
از اونجایی که فیسبوک امکانی برای کنسل کردن تمام درخواستهای دوستیای که فرستادهایم به صورت یکجا نداره، مجبوریم تا تمام درخواستهای دوستی رو دونه دونه کنسل کنیم. اسکریپت پیش رو مثل یه یوزر واقعی مرورگر عمل میکنه و به جای شما دونه دونه درخواستهای دوستیای که فرستادهاید رو کنسل میکنه و شما میتونید در همین حین از قهوتون لذت ببرید 😊
مراحل زیر رو دنبال کنید:
- مرورگر گوگل کروم رو دانلود و اجرا کنید
- وارد اکانت فیسبوک خود شود و بعد از لاگین به صفحهی https://www.facebook.com/friends/requests/?fcref=none&outgoing=1 برید (در این صفحه میتونید لیست تمام درخواستهای دوستیای که فرستادهاید رو به صورت یکجا ببینید)
- پنجرهی Developer Tools رو توی مرورگرتون باز کنید (یک راه اینه که در صفحه راستکلیک کنید و بعد Inspect رو بزنید)
- تو صفحهی باز شده وارد تب Console شوید
- محتوای فایل script.js رو کپی و داخل کنسول پیست کنید و سپس Enter بزنید
توجه:
- زمانی که اسکریپت داره اجرا میشه باید به اینترنت وصل باشید
- این اسکریپت روی ورژن ۶۸ مرورگر گوگل کروم تست شده، ولی احتمالا روی ورژنهای بهروز از مرورگرهای معروف نیز بدون مشکل اجرا میشه
- زمانی که اسکریپت در حال اجراس، اشارهگر موس باید یا داخل پنجرهی Developer Tools بمونه و یا خارج از پنجرهی کل مرورگر باشه تا تداخلی با کار اسکریپت ایجاد نکنه
- برای متوقف کردن اسکریپت (قبل از اینکه تمام درخواستهای دوستی رو کنسل کنه) خیلی راحت صفحهی مرورگر رو ببندید
- از اونجایی که احتمال داره ساختار صفحهی فیسبوک عوض بشه و در نتیجه اسکریپت کار نکنه، اگه به مشکلی برخوردید بهم اطلاع بدید تا اسکریپت رو آپدیت کنم
- پیغام هشداری در صفحهی کنسول توسط فیسبوک نمایش دادهمیشود که داره میگه مراقب باشید تا هر اسکریپتی رو از هرکسی نگیرید و اجرا کنید. این هشدار باید جدی گرفته بشه ولی از اونجایی که اسکریپت پیش رو متنبازه، خود شما و یا هرکسی که اطلاعات فنی کافی داشته باشه میتونه اونو بخونه و از بیخطر بودنش مطمئن بشه
از اونجایی که سورس کد اسکریپت کامل کامنتشده هست، خوندن و مرورش خیلی راحته و به گرمی پذیرای contribution های شما هستیم.