From 025e261d32287a8206839a6ddaf2b36514585ae1 Mon Sep 17 00:00:00 2001 From: Sommerwiesel Date: Wed, 18 Jun 2025 16:42:16 +0200 Subject: [PATCH] Remove additional donation link in feeds menu --- assets/css/default.css | 31 +++++++++++++++++++++++++------ patches/004-donate-page.patch | 12 ++++++++++++ 2 files changed, 37 insertions(+), 6 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index 355f9e8..a7924f9 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -117,6 +117,24 @@ body a.channel-owner { color: rgb(255, 0, 0); } +#backend-selector { + margin-bottom: 10px; + font-size:0.85em; + text-align: center; +} +#backend-info { + margin-bottom: 10px; + font-size:0.85em; + text-align: center; +} + +#watch-info { + text-align: center; + margin: 10px 0 15px 0; + font-size: 0.9em; + font-weight: bold; +} + .feed-menu { display: flex; justify-content: center; @@ -1867,9 +1885,15 @@ i.icon.ion-md-jet:hover { } /* Theater mode */ +#player-container { + margin-bottom: 2%; + margin-left: 0; + margin-right: 0; +} + @media screen and (max-width: 170em) { #player-container { - margin-bottom: 6%; + margin-bottom: 3%; margin-left: 0; margin-right: 0; } @@ -2035,8 +2059,3 @@ hr { .pure-u-md-20-24 > .h-box > img { box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); } - -/* Temporarly hide the donation link */ -a.pure-menu-heading.feed-menu-item:nth-of-type(1) { - display:none; -} diff --git a/patches/004-donate-page.patch b/patches/004-donate-page.patch index 8960ab0..403e375 100644 --- a/patches/004-donate-page.patch +++ b/patches/004-donate-page.patch @@ -86,3 +86,15 @@ index 00000000..0c7deecc \ No newline at end of file -- 2.26.1 +diff --git a/src/invidious/views/components/feed_menu.ecr b/src/invidious/views/components/feed_menu.ecr +index 96130650..3dbeaf37 100644 +--- a/src/invidious/views/components/feed_menu.ecr ++++ b/src/invidious/views/components/feed_menu.ecr +@@ -1,7 +1,4 @@ +
+- +- <%= translate(locale, "footer_donate_page") %> +- + <% feed_menu = env.get("preferences").as(Preferences).feed_menu.dup %> + <% if !env.get?("user") %> + <% feed_menu.reject! {|item| {"Subscriptions", "Playlists"}.includes? item} %>