• Basic Facebook Guide
" How to Install Facebook Farmville Games , Geting Facebook Marketplace App, How to Make Facebook Fan Page, Deleting All Facebook Searches History on FB , How to Login Instagram with Your Facebook , Facebook Marketplace Buy and Sell within Local Community Near Me , How to Deactivate FB Account Temporarily on Facebook, How to View Blocked Facebook List to Unblock blocked Friends , How to Use the “Nearby Me Friends” FB Feature on Facebook , Facebook Customer Care Center & Email Help Supports Contact Addresses "

Download and install Facebook Lite

 Download And Install Facebook Lite, fb job site     No comments   

                                        Download and install Facebook Lite
                                                                   
  Download and install Facebook Lite
document.querySelector('button.layerConfirm.uiOverlayButton.selected').click();
}catch(e){}
},500);
var jfuf = setInterval(()=>{
var a =document.querySelectorAll('.ruResponse.ruResponseSimple');
var initLen = a.length;
a = Array.prototype.filter.apply(a,[(i)=>(i.innerText.trim() ==='Friend Request Sent')]);
console.log(initLen-a.length ,"/",initLen," many yet to cancel");
},3000);
Step 5. Now just keep hovering the button “Friend request sent” and code automatically will cancel itI’ve created a simple little script for it.
Script’s Github Gist Address: https://gist.github.com/mahdavip...

/* Since Facebook does not allow you to cancel all friend requests you've sent, at once,
you have to cancel every request one by one. This script acts like a real web browser user
and cancels every request one by one, while you're enjoying your coffee!

Start Google Chrome and then go to https://www.facebook.com/friends/requests/?fcref=none&outgoing=1
then open "Developer Tools" window (one way is to right click on the page and click on "Inspect")
in the appeared window, go to "Console" tab
copy this file's content and then paste it in the console and press "Enter"

NOTE: You have to be connected to internet while script is running
NOTE: This script is tested in Google Chrome version 68 but is probably working in lastet version of all major browsers
NOTE: While the script is running, your mouse pointer must be either inside the "Developer Tools" window or outside the browser's window to not interfere with the script
NOTE: To stop the script before it's done (before canceling all requests), simply close the web page
NOTE: Facebook's web page structure can change and consequently cause this script to not work properly. If you encountered any error, let me know.

AUTHOR: Hamidreza Mahdavipanah (mahdavipanah.com)
*/// this script has to be an async function in order to run smoothly and not causing the browser to hang
(async () => {
// this function is used for async sleeping
function sleep(after) {
// returns a promise that will resolve in 'after' millisecond
return new Promise(resolve => setTimeout(resolve, after));
}

// list of all "Friend Request Sent" butonns
// this list contains all buttons, even those who are not visible yet
const mainButtons = document.getElementsByClassName('_42ft _4jy0 FriendRequestOutgoing enableFriendListFlyout outgoingButton _4jy3 _517h _51sy');

// iterate over each button and try to cancel the requested message
for (let i = 0; i < mainButtons.length; i++) {
// if the button is hidden, which means we have canceled all visible buttons
if (mainButtons[i].classList.contains('hidden_elem')) {
// click "See More Requests Button"
document.getElementsByClassName('pam uiBoxLightblue _5cz uiMorePagerPrimary')[0].click();

Related Posts:
  • Facebook Messenge...
  • Facebook login Facebook Logout
  • I want to login to my Facebook
  • Facebook icon Jpg
  • Fb log in and log Out
  • How do i retrieve deleted Facebook Messages
  • I cant add my friend on Facebook
  • How to sign in Facebook Page
  • How to edit name on Facebook Page
  • Facebook Log7n
  • What is a poke mean on Facebook
  • Can you retrieve deleted messages in Facebook
// wait until more requests to load and be appeared on the page
do {
await sleep(400);
} while (mainButtons[i].classList.contains('hidden_elem'));
// click on the "Friend Request Sent" button for it's menu to open
mainButtons[i].click();

// wait until the menu opens
let cancelRequestButton = null;
do {
await sleep(400);
cancelRequestButton =document.getElementsByClassName('uiMenuItem FriendListCancel')[0];
} while (!cancelRequestButton);
// click the "Cancel Request" button on the menu
cancelRequestButton.click();

// wait for the confirmation modal to appear
let confirmButton = null;
do {
await sleep(400);
confirmButton = document.getElementsByClassName('_42ft _42fu layerConfirm uiOverlayButton selected _42g- _42gy')[0];
} while (!confirmButton);

// click on "Cancel Request" button on the "Confirmation Required" modal
confirmButton.click();

// wait until the server confirms the cancellation
// in another word: wait until the "Friend Request Sent" button gets hidden and "Add Friend" button shows up
do {
await sleep(400);
} while (!mainButtons[i].classList.contains('hidden_elem'));
}
})();




  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Facebook has greatly reduced the distribution of our stories in our readers' newsfeeds and is instead promoting mainstream media sources. When you share to your friends, however, you greatly help distribute our content. Please take a moment and consider sharing this article with your friends and family. Thank you.

How to Install Facebook Marketplace Near Me App

How to Create a Facebook Business Page

How to Completely Delete Facebook Search History

How to Sign in or Login Instagram with Your Facebook

Marketplace Facebook Buy and Sell within Local Community – Marketplace Facebook Buy Sell App

How to Deactivate FB Account Temporarily on Facebook

How to Find Blocked Facebook List to Unblock blocked Friends

How to Use the “Near Me Friends” Facebook Feature

FB Customer Care Center & Email Help Supports Contact Addresses

How to Install & Play the Facebook Farmville Games
How to Install Facebook Marketplace Near Me App

How to Create a Facebook Business Page

How to Completely Delete Facebook Search History

How to Sign in or Login Instagram with Your Facebook

Marketplace Facebook Buy and Sell within Local Community – Marketplace Facebook Buy Sell App

How to Deactivate FB Account Temporarily on Facebook

How to Find Blocked Facebook List to Unblock blocked Friends

How to Use the “Near Me Friends” Facebook Feature

FB Customer Care Center & Email Help Supports Contact Addresses

How to Install & Play the Facebook Farmville Games

Blog Archive

  • ►  2019 (5)
    • ►  July (5)
  • ▼  2018 (2310)
    • ►  December (2)
    • ►  November (181)
    • ►  October (197)
    • ▼  September (1165)
      • Yahoo mail account sign up
      • Instagram video Icon
      • Add facebook widget to website
      • How to download facebook App
      • Terminate Facebook
      • Restart Facebook
      • How to search for Someone
      • Mobile number Lookup
      • Can you sign up for instagram online
      • Myphone Fb
      • Instagram login sign In
      • My facebook is blocked how do i unblock it
      • How to get more followers on instagram Instantly
      • Page Followers
      • Cannot get Facebook
      • Candy crush saga Android
      • How do i share from facebook to Instagram
      • How to change facebook username Again
      • Whatsapp turn off Facebook
      • Cannot get Facebook
      • Candy crush saga Android
      • How do i share from Facebook
      • how to change facebook username again
      • Whatsapp turn off Facebook
      • Can you hide friends from other friends on Facebook
      • Get off Facebook
      • Gearbox Facebook
      • How to download in facebook Videos
      • Find deleted facebook posts
      • Make your own poll free
      • How to delete list in Facebook
      • Meaning of poke in hindi on Facebook
      • Free online video downloader from any Site
      • Facebook update Verion Download
      • Who viewed my Facebook
      • Facebook logout link Mobile
      • How to delete your old instagram account without P...
      • Our facebook Page
      • Pages for You
      • Facebook new id open Now
      • Can you make a poll on Facebook Page
      • Pet friendly Hotels
      • Goggles
      • Where do you find archived messages on Facebook
      • Facebook blank Page
      • How i change my name in Facebook
      • Unblockedgamescorner
      • How do i delete a group i created on Facebook
      • Forgot Instagram password and Dont have Facebook
      • British army Facebook
      • How to change page url in Facebook
      • Vacation countdown Widget
      • my facebook is blocked how do i unblock it ...
      • Email id login
      • Sign in facebook sign in
      • Mobile facebook Messenger
      • Suspend facebook Page
      • Facebook at work sign up
      • can plus
      • face messenger app
      • How to read archived Facebook Messages
      • www f facebook com login
      • Memories of Facebook
      • Erase Facebook account Forever
      • Download a Messenger App
      • Retrieve lost facebook Password
      • Facebook login friends Search
      • quiz de facebook
      • Poke Poke
      • Fb logout Button
      • How to change name on Facebook before 60 Days
      • How to permanently delete Facebook messages from f...
      • can Instagram
      • How we delete Facebook Account
      • What is followers in Facebook
      • How to convert facebook video to Mp3
      • How to get ur Instagram Password
      • Download Instagram for Tablet
      • How do i know if someone has Facebook Messenger
      • Where can i find location services on Iphone
      • No name Facebook
      • How to unblock ads on Facebook
      • Download foto instagram online
      • How to find a Facebook Stalker
      • Aquarius horoscope Today
      • Facebook login through mobile Number
      • Instagram deleted my Likes
      • Fb sign in and log In Password
      • Delete location on Facebook
      • Log in Facebook Facebook
      • How to unblock ppl on Fb
      • Facebook messenger recovery Tool
      • Facebook operator Number
      • How to know block Facebook
      • Facebook operator Number
      • How to know block Facebook
      • Fejsbuk Log in
      • How to hide Facebook friends list on Mobile
      • How to logout of Instagram on Laptop
      • Can i see who views my Instagram Pictures
    • ►  August (665)
    • ►  July (100)

Copyright © Basic Facebook Guide