Please use: https://github.com/RunTheBot/DeezMod/tree/adblock/plugins/adblock
Fully vibecoded - A powerful, cross-platform patcher for Deezer Desktop that integrates Ghostery's adblocker to provide an ad-free music streaming experience.
- 🚫 Ad Blocking: Integrates Ghostery's Electron adblocker for comprehensive ad blocking
- 🔧 Auto-Patcher: Intelligent autopatch system with backup management
- 🖥️ Cross-Platform: Windows support implemented, macOS and Linux ready for implementation
- 📦 Package Manager Detection: Automatically detects and uses npm, yarn, or pnpm
- 🛡️ Safe Patching: Creates automatic backups before patching
- 🔄 Re-patch Support: Safely re-patch using existing backups
- 🧹 Auto Cleanup: Automatic cleanup of temporary files
- ⚡ Process Management: Automatically handles running Deezer processes
- Node.js (v14 or higher)
- Deezer Desktop installed
- Package manager (npm, yarn, or pnpm)
-
Clone the repository:
git clone https://github.com/yourusername/DeDeezer.git cd DeDeezer -
Run the autopatcher:
node autopatch.js
-
Enjoy ad-free Deezer! 🎉
If you prefer manual control, you can use the batch file:
# Windows
patch.batThe patcher performs the following steps:
- Process Check: Automatically detects and closes running Deezer instances
- Backup Creation: Creates a backup of the original
app.asarfile - Extraction: Extracts the Deezer application archive
- Patching:
- Renames original
main.jstomain.original.js - Injects custom main.js with Ghostery integration
- Installs Ghostery adblocker dependencies
- Renames original
- Repackaging: Repacks the modified application
- Installation: Replaces the original with the patched version
- Cleanup: Removes temporary files
# Show help
node autopatch.js --help
# Show macOS setup instructions
node autopatch.js --setup-macos
# Show Linux setup instructions
node autopatch.js --setup-linuxIf Deezer is already patched, the tool will:
- Detect the existing patch
- Offer to re-patch using the backup file
- Safely restore and re-apply the patch
| Platform | Status | Notes |
|---|---|---|
| Windows | ✅ Fully Supported | Tested and working |
| macOS | 🚧 Ready for Implementation | Paths configured, needs testing |
| Linux | 🚧 Ready for Implementation | Paths configured, needs testing |
DeDeezer/
├── autopatch.js # Main autopatcher script
├── patch.bat # Manual patch batch file
├── patch_files/ # Patch components
│ ├── ghostery.js # Ghostery adblocker integration
│ └── loadextention.js # Extension loader
├── decomp/ # Decompiled/modified Deezer files
├── app.asar # Original Deezer archive
├── app.new.asar # Patched archive
└── README.md # This file
The patcher integrates Ghostery's Electron adblocker by:
- Injecting the adblocker before Deezer's main process starts
- Setting up session filters for comprehensive ad blocking
- Maintaining compatibility with Deezer's existing functionality
The patcher automatically sets:
DZ_DEVTOOLS=yes- Enables developer toolsDZ_DISABLE_UPDATE=yes- Disables automatic updates
- Backups are stored as
app.bak.asarin the Deezer resources directory - Original files are preserved for safe restoration
- Re-patching uses the backup to ensure clean patches
- Backup: Always keep your backup files safe
- Updates: Disable Deezer auto-updates to prevent patch removal
- Antivirus: Some antivirus software may flag the patcher - this is a false positive
- Terms of Service: Use responsibly and in accordance with Deezer's terms
-
"Deezer asar file not found"
- Ensure Deezer Desktop is properly installed
- Check if the installation path is correct
-
Permission errors
- Run as administrator on Windows
- Ensure write permissions to Deezer directory
-
Patch detection fails
- Try running the patcher again
- Check if backup files exist
If you encounter issues:
- Check the console output for error messages
- Ensure all prerequisites are installed
- Try running with administrator privileges
- Create an issue with detailed error information
Contributions are welcome! Areas that need help:
- macOS implementation and testing
- Linux implementation and testing
- UI improvements
- Additional adblocker integrations
This project is for educational purposes. Please respect Deezer's terms of service and use responsibly.
This tool modifies the Deezer Desktop application. Use at your own risk. The authors are not responsible for any issues that may arise from using this software.
Fully vibecoded with ❤️ for the music streaming community