9.7 KiB
KefinTweaks for Jellyfin
KefinTweaks is a comprehensive collection of enhancements and customizations for Jellyfin, focused on, but not limited to, filling gaps in functionality based on the community's most desired Feature Requests. While working on these scripts to meet my personal needs, I noticed that there was a lot of overlap between the functionality I desire and many of the requested features by the community so I thought it would be a good idea to share this for anyone who may be interested. There is no configuration required, but if you wish to customize some of the features, there are options to do so.
Features Overview
KefinTweaks provides a modular system of enhancements that can be individually enabled or disabled based on your needs. Each script is designed to work independently while sharing common utilities and dependencies.
📋 Core Features
Watchlist Page
-
Watchlist: Add movies, series, seasons, and episodes to your watchlist with intelligent caching

-
Series Progress: An overview of every series you've ever started watching with functionality to filter, sort and mark items as watched.

-
Movie History: An overview of every movie you've ever watched with functionality to filter, sort and mark items as favorites.

-
Statistics: A summary of your watched items by the numbers. See how many movies, shows or episodes you have watched.

-
Auto-Remove: Automatically removes watched items from your watchlist when playback completes.
-
Real-time Updates: Cached watchlist updates when toggling watchlist status from card overlays
Enhanced Home Screen
- Custom Sections: Add playlist or collection-based sections to your home screen
- New & Trending: Creates sections for movies and episodes released in the last 7 days (trending sections incomplete)
- Infinite Discovery Sections: Load discovery sections based on items you've watched and favorited, as well as from genres or top people in your library
- Seasonal Content: Seasonally-themed sections (Halloween, Christmas, etc.)
- Watchlist Integration: Dedicated watchlist section on home screen

Enhanced Search
- Performance Improvements: Defaults to searching in Movies/TV/People as most searches are for these items. Options to search specific categories or all categories like the default Jellyfin search functionality.
- Jellyseerr Support: Zero-config support for Jellyseerr results if JellyfinEnhanced is installed
- Meilisearch Support: Zero-config support for searching with the Meilisearch plugin

🎨 UI Enhancements
Watchlist Support
Navigation Improvements
-
Header Tab Enhancements: Improved tab navigation and functionality, supports linking to specific tabs
-
Breadcrumb Navigation: Clear navigation paths for Movies, Series, Seasons, Episodes, Music Artists, and Albums

-
Custom Menu Integration: Add custom menu links to the side navigation drawer menu

-
Subtitle Search: Search and download subtitles directly from the video OSD

-
Remove Continue Watching: Adds a card overlay button to remove items from Continue Watching for all resumable items

-
Playlist Screen Improvement: Updates the default playlist functionality to include a play button to start playback and make clicking an item go to the item detail page
🔧 System Improvements
Performance & Stability
- Background Leak Fix: Resolves an issue that causes backgrounds to be added to the DOM endlesslly when a tab is not focused and Backdrop images are enabled
- Infinite Scroll: Adds infinite scrolling to the Movies and TV library pages. Loads batches of 100 items at a time and supports filtering and sorting.
- LocalStorage Caching: Local caching for data related to Watchlist, Series Progress, Movie History and Top People
- Dashboard Button Fix: Fix to handle navigating back from the dashboard page to the homescreen instead of the "new tab" page of a browser
Branding & Customization
- Exclusive Elsewhere: Custom branding for items which aren't available on any external streaming providers. Requires JellyfinEnhanced.
- Ratings and Comments: Coming soon...requires the Updoot backend script
📦 Installation
Prerequisites
- Jellyfin 10.10.7 or later
- JS Injector plugin installed and configured
- Custom Tabs plugin for watchlist functionality
- JellyfinEnhanced plugin for Jellyseerr search functionality and ExclusiveElsewhere
Setup Instructions
- Install Prerequisites listed above
- Add a new script to your JS Injector Plugin
- Copy this entire contents of kefinTweaks.js into the new script
Optionally update the "scriptRoot" in the KefinTweaks script if you wish to customize and host these scripts yourself.
- Ensure the script is enabled
- Save your changes
- Required for Watchlist: Add a new tab to your Custom Tabs plugin with the following content
<div class="sections watchlist"></div>
🛠️ Script Details
Core Scripts
| Script | Description |
|---|---|
utils.js |
Page view management and common utilities |
cardBuilder.js |
Enhanced card building functionality |
localStorageCache.js |
Caching layer with TTL management |
modal.js |
Generic modal system for dialogs |
Feature Scripts
| Script | Description |
|---|---|
watchlist.js |
Complete watchlist management system |
homeScreen.js |
Custom home screen sections |
search.js |
Enhanced search functionality |
headerTabs.js |
Header tab improvements |
customMenu.js |
Custom menu link handling |
exclusiveElsewhere.js |
Custom branding for unavailable content |
updoot.js |
Upvote functionality integration |
backdropLeakFix.js |
Memory leak fixes |
dashboardButtonFix.js |
Dashboard button behavior fix |
infiniteScroll.js |
Infinite scroll functionality |
removeContinue.js |
Remove continue watching functionality |
subtitleSearch.js |
Subtitle search in video OSD |
breadcrumbs.js |
Breadcrumb navigation |
playlist.js |
Playlist view enhancements |
Auto-Inject Dependencies
KefinTweaks automatically enables required dependencies when you enable a script that needs them. For example:
- Enabling
watchlistautomatically enablescardBuilder,localStorageCache, andmodal
This ensures all scripts have their required dependencies without manual configuration.
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Jellyfin Team: For the amazing media server platform
- n00bcodr: For JellyfinEnhanced, the JS Injector Plugin and moral support
- IAmParadox27: For the Custom Tabs Plugin
- BobHasNoSoul: For the jellyfin-updoot functionality
- The Jellyfin Community: For sharing knowledge and providing a welcoming enviornment to ask questions and learn
📞 Support
- Issues: You can report bugs and request features on GitHub Issues, or visit the Jellyfin Community Discord to DM me (username: HighImKevin)
- Documentation: This README and the inline comments in kefinTweaks.js and the other scripts is the only real documentation available at this time
🔮 Roadmap
Planned Features
- Jellyfin 10.11 Support: Full compatibility with upcoming Jellyfin versions
- UI Configuration: Allow admins to customize the configuration through the UI instead of the JS script
Version History
- v1.0.0: Initial release for Jellyfin 10.10.7


