Aniworld.to & S.to Autoplay

AniPlayer
2024-11-21T22:44:57Z

Autoplay for Aniworld.to and S.to with AniSkip API integration for automatic intro detection, plus lots of functions like manual skip fallback, persistent volume, language memory, and more

Join the Discord server!

Tampermonkey & Violentmonkey compatible.

Aniworld.to & S.to Autoplay with AniSkip

Enhanced autoplay script for Aniworld.to and S.to with intelligent intro skipping powered by the AniSkip API.

✨ Key Features

🎯 Smart Intro Detection
- **AniSkip Integration**: Automatically fetches precise intro timestamps from the AniSkip community database
- **Intelligent Fallback**: Uses manual skip settings when AniSkip data isn't available
- **Auto-Skip Intro**: Optional automatic intro skipping when the intro segment starts
- **One-Click Skip**: Skip intro button that appears during intro segments

🚀 Powerful Autoplay
- **Seamless Episode Transitions**: Automatically loads the next episode when the current one ends
- **Smart Outro Detection**: Triggers autoplay at the perfect moment
- **Persistent Muted Autoplay**: Bypass browser autoplay restrictions with smart muting
- **Error Recovery**: Handles playback errors gracefully

💾 Playback Memory
- **Resume Where You Left Off**: Remembers your position in each episode
- **Cross-Session Support**: Works even after closing your browser
- **Smart Expiration**: Automatically cleans up old playback positions

🎨 Customization Options
- **Provider Selection**: Choose your preferred video provider (VOE supported)
- **Hotkey Configuration**: Customize keyboard shortcuts for all functions
- **Volume Persistence**: Maintains volume level across episodes and providers
- **Language Preference**: Remembers your selected audio language

⌨️ Keyboard Shortcuts
- **Intro Skip**: Quick keyboard shortcut to skip intro (default: V)
- **Fast Forward/Rewind**: Jump through the video quickly
- **Fullscreen Toggle**: Instant fullscreen mode

📱 Mobile & Desktop Support
- **Touch-Friendly**: Double-tap to skip, rewind, or enter fullscreen
- **Responsive Design**: Works great on all screen sizes
- **Configurable Gestures**: Adjust tap sensitivity and timing

🎬 AniSkip Features

What is AniSkip?
AniSkip is a community-driven database that provides accurate timestamps for anime intros, outros, and recaps. This script integrates with AniSkip to give you:

- **Precise Timing**: Skip exactly to where the episode content starts
- **Community Verified**: Timestamps are submitted and verified by the anime community
- **Automatic Updates**: No manual configuration needed - it just works
- **Smart Caching**: Downloaded timestamps are cached for instant loading

AniSkip Settings (Advanced Tab)
- **Use AniSkip API**: Enable/disable AniSkip integration
- **Show AniSkip Notifications**: Toggle notification messages
- **Auto-Skip Intro**: Automatically skip when intro starts (enabled by default)

How It Works
1. **Load Episode**: Script detects the anime and episode number
2. **Fetch Data**: Queries AniSkip API for intro/outro timestamps
3. **Display Button**: Skip intro button appears before/during intro
4. **Auto-Skip** (Optional): Automatically jumps past intro when it starts
5. **Manual Skip**: Click button or press hotkey to skip anytime

⚙️ Configuration

Preferences Tab
- Persistent muted autoplay
- Auto-skip at start
- Playback position memory
- **Auto-skip intro** (NEW - on by default)
- Skip seconds on start
- Double-tap behavior override
- Intro skip size
- Outro skip threshold

Advanced Tab
- Default skip sizes and thresholds
- Mark watched after X seconds
- Fast forward/rewind size
- Skip intro button visibility
- **Use AniSkip API** (on by default)
- **Show AniSkip notifications** (on by default)
- Hotkey customization
- CORS proxy settings
- Performance tuning

📋 Requirements

- **Script Manager**: Violentmonkey (recommended) or Tampermonkey
- **Permissions**:
- `api.jikan.moe` (for MyAnimeList lookup)
- `api.aniskip.com` (for intro/outro timestamps)

🔧 Installation

1. Install a userscript manager (Violentmonkey recommended)
2. Click the install button
3. Grant required API permissions
4. Refresh Aniworld.to or S.to
5. Enjoy automatic intro skipping and seamless autoplay!

💡 Tips

- **First Time Setup**: Right-click the autoplay toggle button to access settings
- **Customize Hotkeys**: Find your preferred keyboard shortcuts in Advanced settings
- **Disable Notifications**: Toggle "Show AniSkip notifications" in Advanced settings
- **Manual Skip Fallback**: If AniSkip has no data, the script uses your manual skip size

🐛 Troubleshooting

**Intro skip not working?**
- Check that "Auto-skip intro" is enabled in Preferences
- Verify "Use AniSkip API" is enabled in Advanced settings
- Some episodes may not have AniSkip data yet - manual skip will be used

**Autoplay not working?**
- Enable "Persistent muted autoplay" in Preferences
- Check your browser's autoplay settings
- Ensure the autoplay toggle is enabled (button in top-right)

**Can't see the skip button?**
- Check "Show Skip Intro Button" in Advanced settings
- Button appears based on intro timing when AniSkip data is available
- Button may be hidden by other page elements (try fullscreen)

🙏 Credits

- **Original Autoplay Script**: AniPlayer
- **AniSkip Integration**: Based on AniWorld → MAL ID + AniSkip userscript
- **AniSkip API**: [aniskip.com](https://aniskip.com) - Community-driven skip times database
- **MAL API**: [jikan.moe](https://jikan.moe) - MyAnimeList API

📜 License

GPL-3.0-or-later

---

**Note**: This script only works reliably with Violentmonkey. Other script managers may cause unexpected bugs.