DEV Community

Göktürk Çetin
Göktürk Çetin

Posted on

I Built a "Smart" Bulk Cleaner for YouTube Music (Open Source & Multi-Language) 🚀

Hello devs and music lovers! 👋

Like many of you, I've been using YouTube Music for years. Over time, my "Liked Songs" playlist became a massive graveyard of tracks I no longer listen to.
I looked for a "Remove All" button, but Google still hasn't added one. 🚫

So, I decided to solve this problem myself. Initially, I wrote a simple script, but I realized we needed something better. So I turned it into a full-featured Chrome Extension! 🚀

🛠️ The Solution: YTM Cleaner (v1.2 Update)

This isn't just a script anymore. It's a proper extension with a user interface, smart safety features, and now global support.

🔥 Key Features:

  • 🌍 Multi-Language Support (NEW): The extension automatically detects your browser language and switches between English 🇺🇸 and Turkish 🇹🇷.
  • 🧠 Smart Page Detection: The "Start Cleaning" button intelligently appears only on your Liked Songs or Library pages, so it doesn't clutter your interface.
  • 🛡️ Whitelist System: You can add your favorite artists (e.g., "The Weeknd, Daft Punk") to a safe list. The extension will skip their songs and only delete the rest!
  • 🧹 Sniper Mode: Unlikes songs one by one with a human-like delay to bypass YouTube's spam protection.
  • 📊 Live Stats: Shows how many songs you have deleted and estimates the remaining time.

📸 How it looks

(You can add the screenshot here from your GitHub repo)

💻 How to Install? (Developer Mode)

Since I haven't published it on the Chrome Web Store yet (saving that $5 registration fee for now 😅), you can install it manually in 1 minute:

  1. Download the YTM-Cleaner-v1.2.zip file from the GitHub Releases page.
  2. Unzip it to a folder.
  3. Open Chrome and go to chrome://extensions.
  4. Enable "Developer mode" (top right toggle).
  5. Click "Load unpacked" and select the folder you extracted.
  6. That's it! Go to your Liked Songs playlist and you'll see the 🧹 button.

🔗 Get the Code

The project is 100% Open Source under MIT License. You can check the code, contribute, or give it a star! ⭐

👉 GitHub Repo: [https://github.com/gktrk363/youtube-music-cleaner]


Final Note

This tool saved me hours of manual clicking. If you have a messy library, give it a try.
Comments and Pull Requests are welcome!

Happy coding! ❤️

Top comments (0)