adapted config to use new seasonals plugin
This commit is contained in:
@@ -4,31 +4,27 @@ destination_directory: './web'
|
||||
# Kopierregeln
|
||||
copy_rules:
|
||||
- sources:
|
||||
- './seasonals'
|
||||
- './featured'
|
||||
- './pictures'
|
||||
mode: 'copy' # Kopiert Dateien/Ordner
|
||||
|
||||
# Modifikationsregeln
|
||||
modification_rules:
|
||||
# Login logo
|
||||
- file_pattern: 'session-login-index-html\.[0-9a-z]+\.chunk\.js$'
|
||||
insert_rules:
|
||||
- after_text: '<div class="padded-left padded-right padded-bottom-page margin-auto-y">'
|
||||
insert_text: '<img id="login-logo" src="/web/assets/img/banner-dark.png" width=350px style="padding: 0px;display:block; margin-left: auto; margin-right: auto;">'
|
||||
|
||||
# Jellyseer I-Frame
|
||||
# Jellyseer Tab Button
|
||||
- file_pattern: 'index.html'
|
||||
insert_rules:
|
||||
# Seasonals
|
||||
- before_text: '</body>'
|
||||
insert_text: '<div class="seasonals-container"></div><script src="seasonals/seasonals.js"></script>'
|
||||
|
||||
# Page title and requests tab
|
||||
# requests tab
|
||||
- before_text: 're:<link href="main\.jellyfin\.[0-9a-z]+\.css[^.]+" rel="stylesheet">'
|
||||
insert_text: >
|
||||
<script>const createRequestTab = () => {const title = document.createElement("div");title.classList.add("emby-button-foreground");title.innerText = "Anfragen";const button = document.createElement("button");button.type = "button";button.is = "empty-button";button.classList.add("emby-tab-button", "emby-button", "lastFocused");button.setAttribute("data-index", "2");button.setAttribute("id", "requestTab");button.appendChild(title);(function e() {const tabb = document.querySelector(".emby-tabs-slider");tabb ? !document.querySelector("#requestTab") && tabb.appendChild(button) : setTimeout(e, 500)})();}</script>
|
||||
|
||||
# Jellyseer I-Frame
|
||||
# Limits and defaults
|
||||
- file_pattern: '^main\.jellyfin\.bundle\.js$'
|
||||
replace_rules:
|
||||
# Set limit on how many days items should be in the next up section (last number)
|
||||
@@ -38,9 +34,7 @@ modification_rules:
|
||||
- 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}'
|
||||
|
||||
|
||||
|
||||
|
||||
# Jellyseer I-Frame and featured iframe
|
||||
- file_pattern: 'home-html\.[0-9a-z]+\.chunk\.js$'
|
||||
insert_rules:
|
||||
# featured iframe and requests iframe style
|
||||
|
||||
Reference in New Issue
Block a user