• Login
  • Register
Thursday, December 15, 2022
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
  • Business
    Top 10 most valuable bootstrapped companies in the world

    Top 10 most valuable bootstrapped companies in the world 2022

    How to drive profitable business growth

    How to drive profitable business growth

    Best employee recognition quotes

    Best employee recognition quotes

    Importance of employee recognition

    Importance of employee recognition

    Top 10 best online business ideas

    Top 10 best online business ideas 2022

    Secrets to strong communication skills in the workplace

    Secrets to strong communication skills in the workplace

    Benefits of CRM systems

    Benefits of CRM systems

    How to grow sales with social media

    How to grow sales with social media

    How small businesses can use apps to generate leads

    How small businesses can use apps to generate leads

    How digital marketing can help grow your business

    How digital marketing can help grow your business

    How to protect your WooCommerce store

    How to protect your WooCommerce store

    Types of branding

    Types of branding

    Importance of visual branding for your business

    Importance of visual branding for your business

    Causes of construction delays

    Causes of construction delays

    How to start a health and wellness business

    How to start a health and wellness business

    How to create a better version of your brand

    How to create a better version of your brand

    Money management tips for freelancers

    Money management tips for freelancers

    How to write a business proposal

    How to write a business proposal

    Influencer marketing strategies for real estate

    Influencer marketing strategies for real estate

    Common influencer marketing mistakes

    Common influencer marketing mistakes

  • Finance
    Top 10 fastest growing economies in Africa

    Top 10 fastest growing economies in Africa 2022

    Top 10 richest real estate billionaires in the world

    Top 10 richest real estate billionaires in the world 2022

    Top 10 richest media billionaires in the world

    Top 10 richest media billionaires in the world 2022

    Sundar Pichai Net Worth

    Sundar Pichai Net Worth 2022

    Top 10 richest retail billionaires in the world

    Top 10 richest retail billionaires in the world 2022

    Rishi Sunak Net Worth

    Rishi Sunak Net Worth 2022

    Gautam Adani Net Worth

    Gautam Adani Net Worth 2022

    Queen Margrethe II Net Worth

    Queen Margrethe II Net Worth 2022

    Mohammed bin Salman Net Worth

    Mohammed bin Salman Net Worth 2022

    Recep Tayyip Erdoğan Net Worth

    Recep Tayyip Erdoğan Net Worth 2022

    Daniel Ek Net Worth

    Daniel Ek Net Worth 2022

    Johnson Sakaja Net Worth

    Johnson Sakaja Net Worth 2022

    How to grow your assets and build up your net worth

    How to grow your assets and build up your net worth

    Volodymyr Zelenskyy Net Worth

    Volodymyr Zelenskyy Net Worth 2022

    Denzel Washington Net Worth

    Denzel Washington Net Worth 2022

    Top 10 countries with the smallest foreign exchange reserves in Africa

    Top 10 countries with the smallest foreign exchange reserves in Africa 2022

    Top 10 countries with the largest foreign exchange reserves in Africa

    Top 10 countries with the largest foreign exchange reserves in Africa 2022

    Top 20 countries with the smallest foreign exchange reserves

    Top 20 countries with the smallest foreign exchange reserves 2022

    Top 20 countries with the largest foreign exchange reserves

    Top 20 countries with the largest foreign exchange reserves 2022

    Shonda Rhimes Net Worth

    Shonda Rhimes Net Worth 2022

  • Education
    How learning leads to healthy living

    How learning leads to healthy living

    Top 10 best data science books

    Top 10 best data science books 2022

    Best quotes from PLO Lumumba

    Best quotes from PLO Lumumba

    Best quotes from Amin Maalouf

    Best quotes from Amin Maalouf

    How to write a good thesis

    How to write a good thesis

    P's to consider when choosing a career

    P’s to consider when choosing a career

    Best quotes from Michael Faraday

    Best quotes from Michael Faraday

    Top 20 greatest minds of all time

    Top 20 greatest minds of all time

    Best quotes from Voltaire

    Best quotes from Voltaire

    Best quotes from Chinua Achebe

    Best quotes from Chinua Achebe

    How to get free textbooks

    How to get free textbooks

    Common mistakes when writing a term paper

    Common mistakes when writing a term paper

    Things to consider when selecting a pharmacy college

    Things to consider when selecting a pharmacy college

    Best quotes from William Congreve

    Best quotes from William Congreve

    Tips for first-year college students

    Tips for first-year college students

    Signs your family is ready for homeschooling

    Signs your family is ready for homeschooling

    Benefits of online classes for kindergarten students

    Benefits of online classes for kindergarten students

    How to become a doctor in Canada

    How to become a doctor in Canada

    Best quotes from Chimamanda Ngozi Adichie

    Best quotes from Chimamanda Ngozi Adichie

    Top 10 universities with the most billionaire alumni in the world

    Top 10 universities with the most billionaire alumni in the world 2022

  • Travel
    How to drive safely in the rain

    How to drive safely in the rain

    How to drive safely during a winter storm

    How to drive safely during a winter storm

    Driving tips for seniors

    Driving tips for seniors

    How to stop diesel engine runaway

    How to stop diesel engine runaway

    Benefits of vehicle tracking systems

    Benefits of vehicle tracking systems

    Things to consider when buying a vehicle tracking system

    Things to consider when buying a vehicle tracking system

    How a car engine works

    How a car engine works

    How to handle a car engine overheating

    How to handle a car engine overheating

    Top 20 largest urban parks in the world

    Top 20 largest urban parks in the world 2022

    Driving habits that damage your car

    Driving habits that damage your car

    Things to consider when choosing a fuel efficient car

    Things to consider when choosing a fuel efficient car

    Top 20 most expensive cars ever sold

    Top 20 most expensive cars ever sold 2022

    Things you need to know before importing a car into Kenya

    Things you need to know before importing a car into Kenya

    How to import a used car into Kenya

    How to import a used car into Kenya

    Common acronyms in cars

    Common acronyms in cars

    Common abbreviations in cars and their meaning

    Common abbreviations in cars and their meaning

    Types of car drivetrains

    Types of car drivetrains

    Types of car transmission systems

    Types of car transmission systems

    Car dashboard warning lights

    Car dashboard warning lights

    What to do if you have a flat car battery

    What to do if you have a flat car battery

  • Technology
    How to build your first NFT collection

    How to build your first NFT collection

    How virtual reality has reinvented the automotive industry

    How virtual reality has reinvented the automotive industry

    Cybersecurity risks in the blockchain industry

    Cybersecurity risks in the blockchain industry

    Data security in AI technology

    Data security in AI technology

    Benefits of learning coding for designers

    Benefits of learning coding for designers

    Top 10 best text animation apps

    Top 10 best text animation apps 2022

    Mobile-friendly vs Responsive design

    Mobile-friendly vs Responsive design

    Benefits of native mobile app development

    Benefits of native mobile app development

    How to whitelist an IP address on WordPress

    How to whitelist an IP address on WordPress

    Risks of using public Wi-Fi

    Risks of using public Wi-Fi

    How to protect yourself on public Wi-Fi

    How to protect yourself on public Wi-Fi

    Things to consider when choosing a digital signage software

    Things to consider when choosing a digital signage software

    How to prevent WordPress comment spam

    How to prevent WordPress comment spam

    How to remove URL field from WordPress comment form

    How to remove URL field from WordPress comment form

    Top 10 Gmail hacks you should know

    Top 10 Gmail hacks you should know

    How to safeguard creativity using blockchain

    How to safeguard creativity using blockchain

    How blockchain can reduce cyberattacks on supply chains

    How blockchain can reduce cyberattacks on supply chains

    Best apps to spice up your Instagram

    Best apps to spice up your Instagram

    YouTube video ideas for beginners

    YouTube video ideas for beginners

    Top 10 best Twitter alternatives

    Top 10 best Twitter alternatives 2022

  • Living
    How to reduce snoring

    How to reduce snoring

    How to find a host after winning the US Green Card

    How to find a host after winning the US Green Card

    Mistakes to avoid when applying for the US Green Card

    Mistakes to avoid when applying for the US Green Card

    Top 20 best countries to retire in

    Top 20 best countries to retire in 2022

    How to communicate effectively while working from home

    How to communicate effectively while working from home

    Top 20 countries with the most skyscrapers in the world

    Top 20 countries with the most skyscrapers in the world 2022

    Top 20 cities with the most skyscrapers in the world

    Top 20 cities with the most skyscrapers in the world 2022

    How to identify a genuine leather jacket

    How to identify a genuine leather jacket

    How to stay focused when working from home

    How to stay focused when working from home

    Benefits of time management

    Benefits of time management

    How to stay focused and avoid distractions

    How to stay focused and avoid distractions

    Best songs to help you stay focused

    Best songs to help you stay focused

    Signs your spouse is cheating

    Signs your spouse is cheating

    How to protect yourself from romance scams

    How to protect yourself from romance scams

    Signs of an online romance scammer

    Signs of an online romance scammer

    How to tell if someone is stalking you

    How to tell if someone is stalking you

    How to prevent an unhappy marriage

    How to prevent an unhappy marriage

    How to maintain a healthy and balanced diet

    How to maintain a healthy and balanced diet

    How to build a healthy and balanced diet

    How to build a healthy and balanced diet

    Financial wellness tips for healthy aging

    Financial wellness tips for healthy aging

  • Entertainment
    Top 20 most complex movies of all time

    Top 20 most complex movies of all time 2022

    Best quotes from Whitney Houston

    Best quotes from Whitney Houston

    Top 10 most rewatchable movies

    Top 10 most rewatchable movies 2022

    Best quotes from Denzel Washington

    Best quotes from Denzel Washington

    Best quotes from Frank Sinatra

    Best quotes from Frank Sinatra

    Top 20 highest paid entertainers in the world

    Top 20 highest paid entertainers in the world 2022

    Best quotes from Shonda Rhimes

    Best quotes from Shonda Rhimes

    Best poker tips for beginners

    Best poker tips for beginners

    Top 10 best budget wireless headphones

    Top 10 best budget wireless headphones 2022

    Best quotes from Betty White

    Best quotes from Betty White

    Top 10 most popular TV shows on Netflix

    Top 10 most popular TV shows on Netflix 2022

    Free internet TV channels you can watch online

    Free internet TV channels you can watch online

    Top 10 most Grammy Awards nominees of all time

    Top 10 most Grammy Awards nominees of all time 2022

    Top 10 most Grammy Awards winners of all time

    Top 10 most Grammy Awards winners of all time 2022

    Benefits of using an online video editor for your vlog

    Benefits of using an online video editor for your vlog

    Best quotes from Adele

    Best quotes from Adele

    Best apps and games on App Store

    Best apps and games on App Store 2022

    Best apps and games on Google Play Store

    Best apps and games on Google Play Store 2022

    Top 20 best-selling singles of all time

    Top 20 best-selling singles of all time 2022

    Top 20 best-selling albums of all time

    Top 20 best-selling albums of all time 2022

  • Governance
    Best quotes from Kwame Nkrumah

    Best quotes from Kwame Nkrumah

    What you need to know about IEBC forms

    What you need to know about IEBC forms

    Top 20 largest empires in history

    Top 20 largest empires in history

    Diplomatic number plates in Kenya

    Diplomatic number plates in Kenya

    Best quotes from Marcus Aurelius

    Best quotes from Marcus Aurelius

    Best quotes from Vladimir Lenin

    Best quotes from Vladimir Lenin

    Best quotes from John Magufuli

    Best quotes from John Magufuli

    Best quotes from Volodymyr Zelenskyy

    Best quotes from Volodymyr Zelenskyy

    Best quotes from Vladimir Putin

    Best quotes from Vladimir Putin

    Best quotes from Angela Merkel

    Best quotes from Angela Merkel

    Top 20 countries with the most debt in the world

    Top 20 countries with the most debt in the world 2022

    Top 10 least indebted countries in Africa

    Top 10 least indebted countries in Africa 2022

    Top 10 most indebted countries in Africa

    Top 10 most indebted countries in Africa 2022

    Top 20 least indebted countries in the world

    Top 20 least indebted countries in the world 2022

    Top 20 most indebted countries in the world

    Top 20 most indebted countries in the world 2022

    Monarchs of Britain

    Monarchs of Britain

    US presidents who served only one term

    US presidents who served only one term 2022

    US presidents who lost their reelection bid

    US presidents who lost their reelection bid 2022

    Speech to the troops at Tilbury by Queen Elizabeth I

    Speech to the troops at Tilbury by Queen Elizabeth I

    Best quotes from Kamala Harris

    Best quotes from Kamala Harris

  • Sports
    How to bet on the NFL

    How to bet on the NFL

    How to bet on the Breeders' Cup

    How to bet on the Breeders’ Cup

    Types of swimming styles and strokes

    Types of swimming styles and strokes

    Benefits of swimming

    Benefits of swimming

    Safety rules every swimmer should follow

    Safety rules every swimmer should follow

    Must-have equipment for softball coaches

    Must-have equipment for softball coaches

    How to take advantage of changing odds

    How to take advantage of changing odds

    Guide to baseball betting

    Guide to baseball betting

    Top 10 most watched sporting events of all time

    Top 10 most watched sporting events of all time 2022

    Top 10 highest paid NFL players

    Top 10 highest paid NFL players 2022

    Top 10 richest sports leagues in the world

    Top 10 richest sports leagues in the world 2022

    Top 10 most popular sports in the world

    Top 10 most popular sports in the world 2022

    Top 10 highest paid NHL players in the world

    Top 10 highest paid NHL players in the world 2022

    Top 10 football players with the most free kick goals

    Top 10 football players with the most free kick goals 2022

    Slam Dunk: How to become an NBA betting pro

    Slam Dunk: How to become an NBA betting pro

    History of badminton in the Olympic Games

    History of badminton in the Olympic Games

    Top 10 most lucrative football shirt sponsorships

    Top 10 most lucrative football shirt sponsorships 2022

    Top 10 countries with the least Olympic medals in Africa

    Top 10 countries with the least Olympic medals in Africa 2022

    Top 20 countries with the least Olympic medals in the world

    Top 20 countries with the least Olympic medals in the world 2022

    Top 10 largest football contracts of all time

    Top 10 largest football contracts of all time 2022

en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
Home Technology

How to mass follow or unfollow people on Twitter 2022

Victor Mochere by Victor Mochere
in Technology
Reading Time: 5 mins read
A A
3
How to mass follow or unfollow people on Twitter

Ever wanted to follow or unfollow people on Twitter aggressively without the hassle of clicking individual follow/unfollow buttons? Below are the codes you can use to mass follow or mass unfollow people on Twitter. But remember to use these Twitter follow/unfollow scripts for your own personal use/testing and respect Twitter rights.

In the article

  • Twitter mass follow script
  • Twitter mass unfollow script

Twitter mass follow script

To run Twitter mass follow script you have to use Chrome browser.

  1. Open Twitter and login to your account
  2. Open someone’s profile
  3. Click on Followers and you’ll see the list of people who are following your chosen profile
  4. Scroll down few times to load more profiles to the list
  5. Press SHIFT + CTRL + I (Windows) or CMD + OPT + I (Mac) on your keyboard or right click anywhere on the browser and select ‘Inspect Element’ or click on Chrome menu icon at the top-right corner of your browser window and then go to More tools > Developer Tools
  6. Select second tab ‘Console’
  7. Copy and paste this code and press ‘Enter’
				
					let btns = document.querySelectorAll("[data-testid]")
let followBtns = Array.from(btns).filter(btn => {
    return btn.getAttribute('data-testid').includes('follow')
})

for (let i = 1; i <= followBtns.length; i++) {
    setTimeout(() => {
        followBtns[i - 1].click()
    }, 1000 * i);
}
				
			

Twitter mass unfollow script

To run Twitter mass unfollow script you have to use Chrome browser.

  1. Open Twitter and login to your account
  2. Click on Following and you’ll see the list of people who you’re following
  3. Scroll down few times to load more profiles to the list
  4. Press SHIFT + CTRL + I (Windows) or CMD + OPT + I (Mac) on your keyboard or right click anywhere on the browser and select ‘Inspect Element’ or click on Chrome menu icon at the top-right corner of your browser window and then go to More tools > Developer Tools
  5. Select second tab ‘Console’

a. Unfollow those not following back

To unfollow all those people who are not following you back, then copy and paste this code to console and press ‘Enter’

				
					var LANGUAGE = "EN"; //NOTE: change it to use your language!
var WORDS =
{
	//English language:
	EN:
	{
		followsYouText: "Follows you", //Text that informs that follows you.
		followingButtonText: "Following", //Text of the "Following" button.
		confirmationButtonText: "Unfollow" //Text of the confirmation button. I am not totally sure.
	},
	//Spanish language:
	ES:
	{
		followsYouText: "Te sigue", //Text that informs that follows you.
		followingButtonText: "Siguiendo", //Text of the "Following" button.
		confirmationButtonText: "Dejar de seguir" //Text of the confirmation button. I am not totally sure.
	}
	//NOTE: if needed, add your language here...
}
var UNFOLLOW_FOLLOWERS = false; //If set to true, it will also remove followers (unless they are skipped).
var MS_PER_CYCLE = 10; //Milliseconds per cycle (each call to 'performUnfollow').
var MAXIMUM_UNFOLLOW_ACTIONS_PER_CYCLE = null; //Maximum of unfollow actions to perform, per cycle (each call to 'performUnfollow'). Set to 'null' to have no limit.
var MAXIMUM_UNFOLLOW_ACTIONS_TOTAL = null; //Maximum of unfollow actions to perform, in total (among all calls to 'performUnfollow'). Set to 'null' to have no limit.
var SKIP_USERS = //Users that we do not want to unfollow (even if they are not following you back):
[
	//Place the user names that you want to skip here (they will not be unfollowed):
	"user_name_to_skip_example_1",
	"user_name_to_skip_example_2",
	"user_name_to_skip_example_3"
];
SKIP_USERS.forEach(function(value, index) { SKIP_USERS[index] = value.toLowerCase(); }); //Transforms all the user names to lower case as it will be case insensitive.

var _UNFOLLOWED_TOTAL = 0; //Keeps the number of total unfollow actions performed. Read-only (do not modify).

//Function that unfollows non-followers on Twitter:
var performUnfollow = function(followsYouText, followingButtonText, confirmationButtonText, unfollowFollowers, maximumUnfollowActionsPerCycle, maximumUnfollowActionsTotal)
{
	var unfollowed = 0;
	followsYouText = followsYouText || WORDS.EN.followsYouText; //Text that informs that follows you.
	followingButtonText = followingButtonText || WORDS.EN.followingButtonText; //Text of the "Following" button.
	confirmationButtonText = confirmationButtonText || WORDS.EN.confirmationButtonText; //Text of the confirmation button.
	unfollowFollowers = typeof(unfollowFollowers) === "undefined" || unfollowFollowers === null ? UNFOLLOW_FOLLOWERS : unfollowFollowers;
	maximumUnfollowActionsTotal = maximumUnfollowActionsTotal === null || !isNaN(parseInt(maximumUnfollowActionsTotal)) ? maximumUnfollowActionsTotal : MAXIMUM_UNFOLLOW_ACTIONS_TOTAL || null;
	maximumUnfollowActionsTotal = !isNaN(parseInt(maximumUnfollowActionsTotal)) ? parseInt(maximumUnfollowActionsTotal) : null;
	maximumUnfollowActionsPerCycle = maximumUnfollowActionsPerCycle === null || !isNaN(parseInt(maximumUnfollowActionsPerCycle)) ? maximumUnfollowActionsPerCycle : MAXIMUM_UNFOLLOW_ACTIONS_PER_CYCLE || null;
	maximumUnfollowActionsPerCycle = !isNaN(parseInt(maximumUnfollowActionsPerCycle)) ? parseInt(maximumUnfollowActionsPerCycle) : null;
	
	//Looks through all the containers of each user:
	var totalLimitReached = false;
	var localLimitReached = false;
	var userContainers = document.querySelectorAll('[data-testid=UserCell]');
	Array.prototype.filter.call
	(
		userContainers,
		function(userContainer)
		{
			//If we have reached a limit previously, exits silently:
			if (totalLimitReached || localLimitReached) { return; }
			//If we have reached the maximum desired number of total unfollow actions, exits:
			else if (maximumUnfollowActionsTotal !== null && _UNFOLLOWED_TOTAL >= maximumUnfollowActionsTotal) { console.log("Exiting! Limit of unfollow actions in total reached: " + maximumUnfollowActionsTotal); totalLimitReached = true; return;  }
			//...otherwise, if we have reached the maximum desired number of local unfollow actions, exits:
			else if (maximumUnfollowActionsPerCycle !== null && unfollowed >= maximumUnfollowActionsPerCycle) { console.log("Exiting! Limit of unfollow actions per cycle reached: " + maximumUnfollowActionsPerCycle); localLimitReached = true; return;  }
			
			//Checks whether the user is following you:
			if (!unfollowFollowers)
			{
				var followsYou = false;
				Array.from(userContainer.querySelectorAll("*")).find
				(
					function(element)
					{
						if (element.textContent === followsYouText) { followsYou = true; }
					}
				);
			}
			else { followsYou = false; } //If we want to also unfollow followers, we consider it is not a follower.

			//If the user is not following you (or we also want to unfollow followers):
			if (!followsYou)
			{
				//Finds the user name and checks whether we want to skip this user or not:
				var skipUser = false;
				var userName = "";
				Array.from(userContainer.querySelectorAll("[href^='/']")).find
				(
					function (element)
					{
						if (skipUser) { return; }
						if (element.href.indexOf("search?q=") !== -1 || element.href.indexOf("/") === -1) { return; }
						userName = element.href.substring(element.href.lastIndexOf("/") + 1).toLowerCase();
						Array.from(element.querySelectorAll("*")).find
						(
							function (subElement)
							{
								if (subElement.textContent.toLowerCase() === "@" + userName)
								{
									if (SKIP_USERS.indexOf(userName) !== -1)
									{
										console.log("We want to skip: " + userName);
										skipUser = true;
									}
								}
							}
						);
					}
				);
				
				//If we do not want to skip the user:
				if (!skipUser)
				{
					//Finds the unfollow button:
					Array.from(userContainer.querySelectorAll('[role=button]')).find
					(
						function(element)
						{
							//If the unfollow button is found, clicks it:
							if (element.textContent === followingButtonText)
							{
								console.log("* Unfollowing: " + userName);
								element.click();
								unfollowed++;
								_UNFOLLOWED_TOTAL++;
							}
						}
					);
				}
			}
		}
	);
	
	//If there is a confirmation dialog, press it automatically:
	Array.from(document.querySelectorAll('[role=button]')).find //Finds the confirmation button.
	(
		function(element)
		{
			//If the confirmation button is found, clicks it:
			if (element.textContent === confirmationButtonText)
			{
				element.click();
			}
		}
	);
	
	return totalLimitReached ? null : unfollowed; //If the total limit has been reached, returns null. Otherwise, returns the number of unfollowed people.
}


//Scrolls and unfollows non-followers, constantly:
var scrollAndUnfollow = function()
{
	window.scrollTo(0, document.body.scrollHeight);
	var unfollowed = performUnfollow(WORDS[LANGUAGE].followsYouText, WORDS[LANGUAGE].followingButtonText, WORDS[LANGUAGE].confirmationButtonText, UNFOLLOW_FOLLOWERS, MAXIMUM_UNFOLLOW_ACTIONS_PER_CYCLE, MAXIMUM_UNFOLLOW_ACTIONS_TOTAL); //For English, you can try to call it without parameters.
	if (unfollowed !== null) { setTimeout(scrollAndUnfollow, MS_PER_CYCLE); }
	else { console.log("Total desired of unfollow actions performed!"); }
};
scrollAndUnfollow();
				
			

b. Unfollow all

To unfollow all those people you’re following, then copy and paste this code to console and press ‘Enter’

				
					(() => {
  const $followButtons = '[data-testid$="-unfollow"]';
  const $confirmButton = '[data-testid="confirmationSheetConfirm"]';

  const retry = {
    count: 0,
    limit: 3,
  };

  const scrollToTheBottom = () => window.scrollTo(0, document.body.scrollHeight);
  const retryLimitReached = () => retry.count === retry.limit;
  const addNewRetry = () => retry.count++;

  const sleep = ({ seconds }) =>
    new Promise((proceed) => {
      console.log(`WAITING FOR ${seconds} SECONDS...`);
      setTimeout(proceed, seconds * 1000);
    });

  const unfollowAll = async (followButtons) => {
    console.log(`UNFOLLOWING ${followButtons.length} USERS...`);
    await Promise.all(
      followButtons.map(async (followButton) => {
        followButton && followButton.click();
        await sleep({ seconds: 1 });
        const confirmButton = document.querySelector($confirmButton);
        confirmButton && confirmButton.click();
      })
    );
  };

  const nextBatch = async () => {
    scrollToTheBottom();
    await sleep({ seconds: 1 });

    const followButtons = Array.from(document.querySelectorAll($followButtons));
    const followButtonsWereFound = followButtons.length > 0;

    if (followButtonsWereFound) {
      await unfollowAll(followButtons);
      await sleep({ seconds: 2 });
      return nextBatch();
    } else {
      addNewRetry();
    }

    if (retryLimitReached()) {
      console.log(`NO ACCOUNTS FOUND, SO I THINK WE'RE DONE`);
      console.log(`RELOAD PAGE AND RE-RUN SCRIPT IF ANY WERE MISSED`);
    } else {
      await sleep({ seconds: 2 });
      return nextBatch();
    }
  };

  nextBatch();
})();
				
			
Tags: Twitter
Previous Post

Essential supplements for women

Next Post

How to disable PHP error logs

Victor Mochere

Victor Mochere

Victor Mochere is a blogger, social media influencer, and netpreneur creating and marketing digital content.

Related Posts

How to build your first NFT collection
Technology

How to build your first NFT collection

How virtual reality has reinvented the automotive industry
Technology

How virtual reality has reinvented the automotive industry

Cybersecurity risks in the blockchain industry
Technology

Cybersecurity risks in the blockchain industry

Data security in AI technology
Technology

Data security in AI technology

Benefits of learning coding for designers
Technology

Benefits of learning coding for designers

Top 10 best text animation apps
Technology

Top 10 best text animation apps 2022

Next Post
How to disable PHP error logs

How to disable PHP error logs

Comments 3

  1. Anonymous says:
    February 6, 2022 at 12:21 pm

    Thanks exactly what I was looking for.

    Reply
  2. I trump virus says:
    March 1, 2022 at 12:24 am

    This is great information. What is the daily unfollow number before you violate unfollow rules.

    Reply
  3. patweek says:
    March 8, 2022 at 12:36 pm

    woW!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

I agree to the Privacy Policy.

Trending posts

  • Top 10 fastest football players in the world

    Top 10 fastest football players in the world 2022

    1 shares
    Share 0 Tweet 0
  • How to activate Microsoft Office on Mac for free

    1 shares
    Share 0 Tweet 0
  • Top 10 most expensive football players in the world 2022

    1 shares
    Share 0 Tweet 0
  • Top 10 highest paid comedians in the world 2022

    0 shares
    Share 0 Tweet 0
  • Top 10 best gay dating apps 2022

    1 shares
    Share 0 Tweet 0

Download our app

Google-play Shopping-bag Amazon

Newsletter

Subscribe to our newsletter and get the latest posts delivered to your inbox.

*We hate spam as you do.

Recent posts

Top 10 most valuable bootstrapped companies in the world

Top 10 most valuable bootstrapped companies in the world 2022

Victor Mochere - Banner

Why you should consider forex trading in 2023

Top 10 fastest growing economies in Africa

Top 10 fastest growing economies in Africa 2022

How to drive profitable business growth

How to drive profitable business growth

How to build your first NFT collection

How to build your first NFT collection

Victor Mochere

Victor Mochere is one of the biggest informational blogs on the web. We publish well curated up-to-date facts and important updates from around the world.

Follow us

Facebook-f Twitter Instagram Pinterest Linkedin Youtube Tiktok Snapchat-ghost Telegram Rss

Recent posts

  • Top 10 most valuable bootstrapped companies in the world 2022
  • Why you should consider forex trading in 2023
  • Top 10 fastest growing economies in Africa 2022
  • How to drive profitable business growth
  • How to build your first NFT collection

Topics

  • Business
  • Education
  • Entertainment
  • Finance
  • Flacked
  • Governance
  • Living
  • Sports
  • Technology
  • Travel
  • Uncategorized

Download our app

Google-play Shopping-bag Amazon

Find us on

Newspaper Flipboard
  • Advertise
  • Disclaimer
  • Copyright
  • Cookies
  • Privacy Policy
  • Write For Us
  • Send us a topic
  • Contact

© 2022 Victor Mochere. All rights reserved.

  • Login
  • Sign Up
  • Topics
    • Business
    • Finance
    • Education
    • Travel
    • Technology
    • Living
    • Entertainment
    • Governance
    • Sports
  • About
    • Editor-in-Chief
  • Comment Policy
  • Corrections Policy
  • Social Media Policy

© 2022 Victor Mochere. All rights reserved.

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms below to register

*By registering onto our website, you agree to the Privacy Policy.
All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Cookie Policy.