# Tumblr Unfollow Hack: Clean Dashboard with Javascript

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/
- Published: 2023-03-02T16:55:41+02:00
- Author: eJohnny

Hello and welcome to my blog! This is my first entry, and I wanted to share with
you a small Javascript script that might be of use if you follow too many old accounts
on Tumblr.

The script works by checking each entry in your Tumblr blog, and clicking the “Unfollow”
button for entries that were last updated 2 to 10 years ago. This can be helpful
if you follow a lot of old accounts that are no longer active or no longer post 
content that interests you. Unfollowing these accounts can help declutter your dashboard
and make it easier to find new content that you enjoy.

Here’s a small video demo with the script running

[/wp-content/uploads/2023/03/tumblr-automatic-unfollow-script.webm?_=1](https://dev.ejohnny.ro/wp-content/uploads/2023/03/tumblr-automatic-unfollow-script.webm?_=1)

It’s worth noting that Tumblr has a limit of 5000 accounts that you can follow, 
and a limit of 200 follows or unfollows per day. This can be frustrating if you 
follow a lot of accounts and want to clean up your dashboard quickly. However, using
a script like the one I’ve provided can help you unfollow old accounts more efficiently,
without having to spend hours manually clicking the “Unfollow” button.

It’s important to keep in mind that these limits exist to prevent spam and abuse
on the platform. While it can be frustrating to have to follow or unfollow accounts
slowly, it helps to ensure that Tumblr remains a safe and enjoyable platform for
everyone. So while the script can be a useful tool, it’s important to use it responsibly
and within the limits set by Tumblr.

To use the script, simply open your browser’s console and paste in the code. The
script will then run automatically when you hit enter, clicking the “Unfollow” button
for each old entry with a delay of 500ms between each click to avoid overloading
Tumblr’s servers. I don’t advice on using a lower value to this limit.

Note that this script only works on Tumblr and should only be used if you are sure
that you want to unfollow old accounts. It is always a good idea to review your 
followed accounts periodically to ensure that you are still interested in their 
content.

Overall, this script can be a useful tool for decluttering your Tumblr dashboard
and streamlining your content consumption. Give it a try and see how it works for
you!

The code:


    ```javascript
    // Find all entries with class "Ut4iZ eXQ6G veU9u"
    let entries = document.querySelectorAll(".Ut4iZ.eXQ6G.veU9u");

    // Loop through all entries
    for (let i = 0; i < entries.length; i++) {
      let entry = entries[i];

      // Find the div element with class "fTJAC" inside this entry
      let updatedText = entry.querySelector(".fTJAC");

      // Check if the updated text contains "Updated x years ago" where x is between 2 and 10
      if (updatedText && updatedText.innerText.match(/Updated ([2-9]|10) years ago/)) {
        // Find the unfollow button inside this entry
        let unfollowButton = entry.querySelector(".EvhBA.f68ED");

        // Click the unfollow button with a delay of 200ms
        if (unfollowButton) {
          setTimeout(() => {
            unfollowButton.click();
          }, 500* i);
        }
      }
    }
    ```

PS: I forgot to mention. You Tumblr interface / language needs to be in English 
otherwise innerText.match function will not work. It looks for plain text.

**Keep in mind that while the code provided here should work for most Tumblr users,
it’s possible that the class names or other elements of the site’s HTML may change
over time, which could cause the code to stop working. Additionally, depending on
your specific Tumblr setup and configuration, the code may not work for everyone.
However, the principles behind the code should still be applicable, and you can 
use them to create your own custom scripts or modify the existing code to suit your
needs.**

### Share this:

 * [  X ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=twitter)
 * [  Facebook ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=facebook)
 * [More](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#)

 * [  LinkedIn ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=linkedin)
 * [  Reddit ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=reddit)
 * [  Tumblr ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=tumblr)
 * [  Pinterest ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=pinterest)
 * [  Telegram ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=telegram)
 * [  WhatsApp ](https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/?share=jetpack-whatsapp)

## Comments

### By: Fred0815

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-2
- Published: 2023-03-05T21:18:50+02:00

Hi, when I try the sript in the console it simply says “\<- undefined"… any idea?

### By: eJohnny

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-3
- Published: 2023-03-05T21:37:04+02:00

Actually that’s ok. You just need to be sure you’re using the script with a console
open on the following page. [https://www.tumblr.com/following](https://www.tumblr.com/following)

From my experience the script works better in reverse. Instead using it from page
1, go to the last page in your followers list and then execute it. Hit previous 
page then run again.
 You should see the script automatically clicking unfollow

### By: Fred0815

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-4
- Published: 2023-03-05T22:48:47+02:00

Thank you. It’s working.
 Needed to adjust the search pattern.

You said “last page”.. do you have a hint hot to get to the last page? Currently,
I am scrolling down and down and down.. taking ages.. 🙂

### By: eJohnny

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-5
- Published: 2023-03-05T23:17:13+02:00

Oh in following page you got infinite scroll? In my case the following list it’s
split in multiple pages. I am going to upload a short video on YouTube with some
explorations for the scripts.

### By: eJohnny

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-6
- Published: 2023-03-05T23:28:25+02:00

Here’s a little more info about the way the script works. A little demo actually
[https://youtu.be/4q5APoUgN7g](https://youtu.be/4q5APoUgN7g)

### By: Anubis

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-13
- Published: 2024-03-31T20:26:34+03:00

Hello! I’m looking for something similar, but in my followers list (not the following
one) for see inactive followers or bot followers. Does it work anyway?

### By: LK

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-18
- Published: 2025-03-06T18:07:03+02:00

Hello! Do you have an update for this? I’m not sure if this works with the infinite
scrolling now

### By: eJohnny

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-19
- Published: 2025-03-07T14:08:25+02:00

No update for the moment

### By: Michel

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-29
- Published: 2025-08-19T15:09:38+03:00

It worked perfectly. I took your code and made several modifications with Gemini
to unfollow people who weren’t following me back and had also been offline for months.
Thank you so much!

### By: eJohnny

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-30
- Published: 2025-08-19T15:51:22+03:00

That’s excellent. It should be easy to improve and change.

### By: mtn

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-31
- Published: 2025-10-11T10:45:32+03:00

this doesn’t work on firefox or chrome, it throws up a bunch of warnings and failures
😩😩

### By: eJohnny

- Link: https://dev.ejohnny.ro/tumblr-unfollow-hack-clean-dashboard/#comment-42
- Published: 2026-01-24T09:48:51+02:00

Yeah i think tumblr definitely changed something in the html structure. They do 
it quite often when they push updates. Sadly i did not find a way to work with their
API for unfollowing. Same thing for Instagram. I find it very upsetting that they
do this.
