MP3 Player Pro

A lightweight browser-based audio controller that lets you drag-and-drop music files into any tab for instant playback, featuring synchronized lyrics with real-time multi-language translations.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
aliashori78
일일 설치 수
0
총 설치 수
2
평점
1 0 0
버전
1.0.0
생성일
2026-01-31
갱신일
2026-01-31
크기
174KB
라이선스
GNU AGPLv3
적용 사이트

MP3 Player Pro - Icon

# 🎵 MP3 Player Pro

[![License: AGPL v3](https://img.shields.io/badge/License-GNU%20AGPLv3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
[![Version](https://img.shields.io/badge/version-1.0.0-green.svg)](https://i-ali.ir/)
[![Author](https://img.shields.io/badge/author-AliAshori78-orange.svg)](https://github.com/AliAshori78)

**MP3 Player Pro** is a lightweight, high-performance browser-based audio controller. Designed as a UserScript, it injects a professional-grade music player into any website, allowing you to manage your local music library directly within your browser tabs. It transforms any tab into a music workstation with advanced features like AI-powered lyric translation and drag-and-drop playlist management.


MP3 Player Pro - Lyrics-Screenshot-1

---

## ✨ Key Features

### 📂 Instant Drag-and-Drop
Forget complex file explorers. Simply grab your audio files from your computer and drop them anywhere on your browser tab to start an instant playback session.

### 🎧 Seamless Playback
- **Drag-and-Drop:** Just drop your `.mp3` or `.wav` files anywhere on the page to start your session.
- **Floating UI:** A sleek, modern player that stays on top. Position it anywhere with smooth dragging.
- **Playlist Management:** Automatically build and manage a temporary playlist of dropped files.

![MP3 Player Pro - Demo](https://raw.githubusercontent.com/aliashori78/MP3-Player-Pro/refs/heads/main/Assets/Demo.gif)

### 🤖 Synchronized Lyrics & AI Translation
Experience your music like never before and never miss a word. MP3 Player Pro isn't just a player; it's a translator!
- **Real-time Sync:** Lyrics follow the music in real-time. Automatically detects and scrolls lyrics based on audio timestamps.
- **AI Translation:** Toggle between the original language and real-time translations. Perfect for learning new languages through music.
- **Multi-Language Support:** Instant translation of lyrics into multiple languages, making it perfect for foreign language music lovers. Choose your preferred AI backend for lyric translations:
- **Google (Public):** Reliable and fast global translations.
- **HuggingFace / Router:** Great for open-source model enthusiasts.
- **OpenRouter:** Access premium LLMs for high-quality contextual translations.
- **Translation Management:** Select your target language for AI-driven translations.
- **Support for .LRC:** Optimized for standard lyric formats.

MP3 Player Pro - Waveform-ScreenshotMP3 Player Pro - Lyrics-Screenshot-2

### 🎚️ Advanced Visualizer (Equalizer) (Web Audio API)
Take control of your sound. The player utilizes the browser's native AudioContext to provide:
- **Multiple Styles:** Switch between **Bars**, **Waveform**, or **Radial** views.
- **Granular Control:** Adjust visualizer **Height**, **Sensitivity**, and the number of **Bars**.
- **Frequency Shaping:** Balance your bass, mids, and treble for the perfect acoustic experience.
- **Custom Aesthetics:** Define your own colors to match your browser theme.
- **Optimized Output:** High-fidelity playback with minimal latency.

### 🎶 Smart Playlist Management
- **Bulk Import:** Drag and drop entire music folders directly into the tab.
- **Dynamic Re-ordering:** Tracks are automatically indexed and displayed in an interactive playlist.
- **Queue Control:** View your entire list in the visual playlist drawer.
- **Auto-Play:** Seamlessly skips to the next track once the current one ends.
- Seamlessly transition between tracks.
- Visual playlist rendering for easy navigation.
- Lightweight memory footprint, ensuring your browser remains fast.

MP3 Player Pro - Playlist-Screenshot-1MP3 Player Pro - Playlist-Screenshot-2

---

## 🚀 Installation

1. **Install a UserScript Manager:**
- [Tampermonkey](https://www.tampermonkey.net/) (Recommended)
- [Greasemonkey](https://www.greasespot.net/)
2. **Add the Script:**
- Copy the content of `MP3 Player Pro.js`.
- Open your UserScript manager dashboard and create a "New Script".
- Paste the code and save.
3. **Enjoy:** Refresh any tab, and the player container will be ready for your music!

---

## 🛠️ Technical Overview

The script is built using modern JavaScript patterns to ensure compatibility and performance:
- **Engine:** Built using JavaScript ES6+ and jQuery.
- **Rendering:** Optimized CSS3 transforms for the draggable container.
- **Audio API:** Utilizes standard browser audio hooks for wide-range format support (MP3, WAV, OGG).
- **Smoothness:** Implements `DOMMatrix` for precise UI positioning and `requestAnimationFrame` for high-refresh-rate dragging animations.
- **Hardware Accelerated:** Uses `requestAnimationFrame` and `DOMMatrix` for high-performance UI transitions and zero-lag dragging.
- **Universal Compatibility:** Works on almost any website via Tampermonkey, Greasemonkey, or Violentmonkey.
- **File Support:** `.mp3`, `.wav`, `.ogg`, `.m4a`
- **UI Framework:** Draggable floating container system
- **Metadata Handling:** Automatically parses metadata for synchronized lyric display.
- **Smooth Dragging:** Powered by `requestAnimationFrame` for a 60FPS floating experience.
- **Custom Fonts:** Select your preferred **App Font** directly from the UI settings.
- **Sensitivity** Slider/Input Control: how the visualizer reacts to bass and treble.

MP3 Player Pro - Settings-Screenshot-1MP3 Player Pro - Settings-Screenshot-2

---

## 📝 Configuration & Usage

- **Opening the Player:** The player appears as a container (ID: `#mp3ViewerContainer`).
- **Adding Tracks:** Drag `.mp3` or compatible files onto the page.
- **Moving the Player:** Click and hold the header or the container background to drag.
- **Lyrics:** If the audio file contains metadata or a synced `.lrc` file is available, lyrics will display automatically.

---

## 📜 License

This project is licensed under the **GNU AGPLv3** - see the script header for details.

## 👤 Author

**Ali Ashori** 🌐 [Website](https://i-ali.ir/)
📧 Feel free to reach out for suggestions or bug reports!

---
*Note: This script is intended for personal use and to enhance the browsing experience. Always ensure you have the rights to the music you play.*