# target directory for the modified files destination_directory: './web' # copy rules copy_rules: - sources: # add/replace new logos, icons and favicons - source: './img/icon-transparent.png' # replace existing logo with icon-transparent.png and rename to match existing hashed filename target: './icon-transparent*.png' # the * is a wildcard to match any hash in the filename - source: './img/banner-light.png' target: './banner-light*.png' - source: './img/banner-dark.png' target: './banner-dark*.png' - source: './img/favicon_32x32.ico' target: './favicon*.ico' - source: './img/favicon.ico' target: './favicon*.ico' - source: './img/touchicon_180x180.png' target: './touchicon*.png' - source: './img/notificationicon.png' target: './notificationicon*.png' - source: './img/favicons_dir' # copy whole favicons directory, replace existing files target: './favicons' mode: 'replace' # replace existing files (and files in directories) - sources: #- './seasonals' # add seasonals files from https://github.com/CodeDevMLH/Jellyfin-Seasonals/tree/main/seasonals --> now available as plugin! - './featured' # add featured iframe files (only spotlight.html, script.js and styles.css are needed) from https://github.com/CodeDevMLH/Jellyfin-Featured-Content-Bar - './pictures' # add pictures for eg. background on login page for futher use with 'custom css' function in jellyfin - source: './img/background.png' target: './assets/img/background.png' - source: './img/logo.png' target: './assets/img/logo.png' mode: 'copy' # copy directories and files # modification rules modification_rules: # modify login page --> insert own logo (you may need to adjust width in px in line 46...) - file_pattern: 'session-login-index-html\.[0-9a-z]+\.chunk\.js$' insert_rules: - after_text: '
'
# Jellyseer Tab Button
- file_pattern: 'index.html'
insert_rules:
# IMPORTANT: replace 'Request' with your own request tab name (the name how the Jellyseer tab shuold be named, line 55)
# requests tab
- before_text: 're:' # using regex to match the hash
insert_text: >
# Set default values for 'Next Up' days and user page size
- file_pattern: '^main.jellyfin.bundle.js$' #file_pattern: '^main\.jellyfin\.bundle\.js$'
replace_rules:
# Set limit on how many days items should be in the next up section (last number)
- old_text: 'this.set("maxDaysForNextUp",e.toString(),!1);var t=parseInt(this.get("maxDaysForNextUp",!1),10);return 0===t?0:t||365}}'
new_text: 'this.set("maxDaysForNextUp",e.toString(),!1);var t=parseInt(this.get("maxDaysForNextUp",!1),10);return 0===t?0:t||28}}'
# Default user page size (last number), 99 fits perfect on most desktops
- old_text: 'this.get("libraryPageSize",!1),10);return 0===t?0:t||100}'
new_text: 'this.get("libraryPageSize",!1),10);return 0===t?0:t||99}'
# Featured Content Bar and Requests Tab with embedded Jellyseer instance
- file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$'
insert_rules:
# featured iframe and requests iframe style from https://github.com/CodeDevMLH/Jellyfin-Featured-Content-Bar
# IMPORTANT: remove line 76 if you don't want to add the requests tab
- after_text: 'data-backdroptype="movie,series,book">'
insert_text: >
# request tab on main page (embedded iframe of your Jellyseer (Overseerr) instance)
# change 'jellyseerr.yourDomainHere.com' to the URL of your Jellyseer (Overseerr) instance in line 81
- after_text: 'id="favoritesTab" data-index="1">