From 30c4db721becd7c6d37f3750bf4e4b7960f34886 Mon Sep 17 00:00:00 2001 From: ToMattBan <50156748+ToMattBan@users.noreply.github.com> Date: Sat, 21 Sep 2024 13:25:10 -0300 Subject: [PATCH 1/2] Request tab recreating after comming back to home screen --- 10.9.x.md | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/10.9.x.md b/10.9.x.md index 88b935a..f9589bb 100644 --- a/10.9.x.md +++ b/10.9.x.md @@ -427,17 +427,19 @@ If you only want one link, make sure to remove the comma after the closing brack ![image](https://github.com/user-attachments/assets/b0860546-edc0-4d42-acba-3caa095ee666) -- Navigate to `/usr/share/jellyfin/web` and edit the `home-html.*.chunk.js` file -- Find the part that goes `{5939:function(a,e,t){` and paste right after it: +- Before everything, remeber to backup the files we are going to edit! +- Navigate to `/usr/share/jellyfin/web` and edit the `index.html` file +- Find the part that goes `` and paste right before it: ```` -const title=document.createElement("div");title.classList.add("emby-button-foreground");title.innerText="Requisições";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.appendChild(title);(function e(){const tabb=document.querySelector(".emby-tabs-slider");tabb?tabb.appendChild(button):setTimeout(e,500)})(); -```` -- This is what gonna create the "Requests" tab -- Now, find the part that goes `data-backdroptype="movie,series,book">` and paste right after it: + ```` - +- Save it. This is the script that creates the tab. +- Now open the `home-html.*.chunk.js` file +- Find the part that goes `data-backdroptype="movie,series,book">` and paste right after it: ```` -- This is what will make it looks good + +```` +- This is what will make it looks good and start the script that creates the tab - And now, find the part that goes `id="favoritesTab" data-index="1">
` and paste right after it: ````
From 9080d7a2053f5170ce3d859d17d491e2d2c7423c Mon Sep 17 00:00:00 2001 From: ToMattBan <50156748+ToMattBan@users.noreply.github.com> Date: Sat, 21 Sep 2024 14:17:05 -0300 Subject: [PATCH 2/2] Update 10.9.x.md --- 10.9.x.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/10.9.x.md b/10.9.x.md index f9589bb..50a8cd3 100644 --- a/10.9.x.md +++ b/10.9.x.md @@ -431,7 +431,7 @@ If you only want one link, make sure to remove the comma after the closing brack - Navigate to `/usr/share/jellyfin/web` and edit the `index.html` file - Find the part that goes `` and paste right before it: ```` - + ```` - Save it. This is the script that creates the tab. - Now open the `home-html.*.chunk.js` file