adapted to new functions of web client
This commit is contained in:
10
config.yaml
10
config.yaml
@@ -44,7 +44,7 @@ modification_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/logo-banner.png" width=350px style="padding: 0px;display:block; margin-left: auto; margin-right: auto;">'
|
||||
|
||||
# Instancename, Jellyseer I-Frame
|
||||
# Jellyseer I-Frame
|
||||
- file_pattern: 'index.html'
|
||||
insert_rules:
|
||||
# Seasonals
|
||||
@@ -54,15 +54,9 @@ modification_rules:
|
||||
# Page title and requests tab
|
||||
- before_text: 're:<link href="main\.jellyfin\.[0-9a-z]+\.css[^.]+" rel="stylesheet">'
|
||||
insert_text: >
|
||||
<script>document.addEventListener("DOMContentLoaded", function () { if (document.title === "Jellyfin") { document.title = "SpaceCloud - Cinema"; } const observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.type === 'childList') { if (document.title === "Jellyfin") { document.title = "SpaceCloud - Cinema"; } } }); }); observer.observe(document.querySelector('title'), { childList: true }); Object.defineProperty(document, 'title', { set: function (value) { if (value === "Jellyfin") { document.querySelector('title').textContent = "SpaceCloud - Cinema"; } else { document.querySelector('title').textContent = value; } }, get: function () { return document.querySelector('title').textContent; } }); });</script>
|
||||
<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>
|
||||
|
||||
replace_rules:
|
||||
# Page title
|
||||
- old_text: '<title>Jellyfin</title>'
|
||||
new_text: '<title>SpaceCloud - Cinema</title>'
|
||||
|
||||
# Instancename, Jellyseer I-Frame
|
||||
# Jellyseer I-Frame
|
||||
- file_pattern: '^main\.jellyfin\.bundle\.js$'
|
||||
replace_rules:
|
||||
# Set limit on how many days items should be in the next up section (last number)
|
||||
|
||||
Reference in New Issue
Block a user