Unfollowing Script X.

Originally Posted:Publish0x



I am one of those people, I have to admit, who consider social networks just a means to an end, contradictorily the few times I use them I end up following everyone. It seems to me that there are a lot of interesting and creative people who post original and/or funny content. Every time I see a profile that catches my eye, I can't help but hit the follow button. Thus, I have ended up following hundreds or thousands of people, without realizing the consequences.


What happens is that following so many people has its drawbacks. For example my X (Twitter) feed has become a mess, full of posts that don't interest me, are irrelevant or just spam. Also, I have realized that many of the users I follow are bots, that the posts are promotions or that they have nothing to do with my interests or preferences. I would like to unfollow all those users, but doing it one by one is very tiring and boring.


Clearing the following list of the social network X can have several benefits, depending on your goals and preferences. Some of them are:


📌 Improve the quality of your feed: By unfollowing users you don't care about, who post irrelevant content or who are bots, you can improve the quality of your feed and only see what you like or add value to. Thus, you can enjoy your X experience more and avoid distractions or annoyances.


📌 Optimize your follower/following ratio: By reducing the number of people you follow, you can optimize your follower/following ratio, which is a measure of how influential or popular you are on X. A high ratio means you have more followers than followed, which can give an image of authority or credibility in your niche or topic. A low ratio means the opposite, which can give an image of spam or lack of interest. Therefore, cleaning up your following list can help you improve your online reputation and attract more potential followers.


📌 Save time and resources: by eliminating users who don't contribute anything to you, you can save time and resources that you could invest in other more productive or fun activities. For example, you can spend more time interacting with your followers, creating quality content, learning something new, or enjoying your leisure.


For this reason, determined to find a faster and easier solution to clean my list, I remembered that I had a script that someone gave me some time ago (I don't remember who) and that for those things that: "...right now I do it . .." although later we forget, I never got to try. It is true that there are thousands, millions of applications that solve these problems, but I am too "afraid" of the "hidden" functions they may have. I have tested the script several times and the method has surprised me by its simplicity and efficiency. Its execution automatically deletes the users that I follow in a massive way with just a few simple steps (about 30-50 for each execution). Of course, the ideal would be to improve it, perhaps adding some filters to optimize its performance. If someone is excited to improve it, I would appreciate it if you could send me the updates, if they have developed something more efficient, well, even better. I just hope you find it useful.



- Copy the text of the Script

✂ ✂ ✂ ✂ ✂ ✂ BEGIN ✂ ✂ ✂ ✂ ✂ ✂

(() => {

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 () => {


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 {



if (retryLimitReached()) {



} else {

await sleep({ seconds: 2 });

return nextBatch();





✂ ✂ ✂ ✂ ✂ ✂ END ✂ ✂ ✂ ✂ ✂ ✂


- In X Go to "Profile".



- Click on "Following" and another window opens where you can see "Followers" and "Following".



- On "Following" execute right click, a secondary window opens, click on the item "Inspect" and a window opens on the right with several tabs.



- Search and click on the "Console" tab.



- Go to the end of the "Console" tab, paste the script and execute: Enter. The script will automatically start deleting the "Following". To re-run the script just follow the steps above.



⚠ Important: Do not abuse the use of the script so that X does not block it.



Earn active and passive earnings (using referral programs). However, I recommend that you do your own research.


💲 QuantFury (JRRU2593) - Trading - Join using my invite code: JRRU2593 and we will both receive a free share like AAPL or UBER, or crypto like BTC or ETH (up to $250). Trade and invest with no commissions or borrowing fees at real-time spot prices from the NYSE, Nasdaq, CME, Bats, Binance and Coinbase exchanges. With a good marketing management you have the possibility of obtaining passive profits without operating in the market. (Not available in the US). See Article:Quantfury: The Honest Trading Revolution.


💲 StormGain - Trading - They can start without investment, capital is acquired with the Bitcoin Cloud Miner


💲 BulbPublish0x - Earn daily Crypto, NTFs or Money for reading or writing articles and interacting with publications.


💲 AddmeFast - Tools to promote and increase the sources of traffic, visibility, reach and reputation of your social networks. Also earn money and/or cryptocurrencies.


💲 Bitrefill - Living with crypto, a philosophy of financial freedom. Travel, play, eat and live with BTC.


🎁  Dating, Sweepstakes, Health, Games, Horoscope, Video, Download, Others, Special +18 Ramdom - mVAS (+18).


🎁  Dating, Sweepstakes, Health, Education, Games, News, Music, Video, Horoscope, Download, Recipes, Others, Mainstream Ramdom - mVAS (Mainstream).


"You will ask yourself: And if I take a risk and lose...? I will ask you: AND IF YOU RISK AND WIN? Success begins with thought, because sooner or later the man who wins is the one who believes he can do it. Do not be afraid of mistakes or failure, winners are not afraid of losing, losers are, in most cases the risk comes from not knowing what you are doing, so trust yourself, learn, be patient, manage your emotions and above all, enjoy the journey, what the wise man does at the beginning, the fool does at the end" - Anonymous.

Author's Note: The opinion expressed here is not investment advice, is provided for informational purposes only, and reflects the opinion of the author only. I do not promote, endorse or recommend any particular investment. Investments may not be right for everyone. Every investment in the market and every trade you make involves risk, so you should always do your own research before making any decision. I do not recommend investing money that you cannot afford to chair, as you could lose the entire amount invested.

💖☕ Buy Me a Coffee ☕💖

Enjoyed this article? Stay informed by joining our newsletter!


You must be logged in to post a comment.

About Author