Skip to content

Commit 43597da

Browse files
author
LisoUseInAIKyrios
authored
chore: Merge branch dev to main (#5617)
2 parents a19b670 + c0824db commit 43597da

File tree

155 files changed

+2879
-1573
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+2879
-1573
lines changed

CHANGELOG.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,131 @@
1+
# [5.34.0-dev.13](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.12...v5.34.0-dev.13) (2025-08-19)
2+
3+
4+
### Bug Fixes
5+
6+
* **YouTube - Player Controls:** Fix chapter title overlapping the bottom buttons ([#5673](https://github.com/ReVanced/revanced-patches/issues/5673)) ([09ccee7](https://github.com/ReVanced/revanced-patches/commit/09ccee71384df338bbf8acc1097f619a372c4868))
7+
8+
# [5.34.0-dev.13](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.12...v5.34.0-dev.13) (2025-08-18)
9+
10+
11+
### Bug Fixes
12+
13+
* **YouTube - Player Controls:** Fix chapter title overlapping the bottom buttons ([#5673](https://github.com/ReVanced/revanced-patches/issues/5673)) ([09ccee7](https://github.com/ReVanced/revanced-patches/commit/09ccee71384df338bbf8acc1097f619a372c4868))
14+
15+
# [5.34.0-dev.12](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.11...v5.34.0-dev.12) (2025-08-18)
16+
17+
18+
### Bug Fixes
19+
20+
* **YouTube:** Use correct fade out animation when tapping to dismiss the video overlay ([#5670](https://github.com/ReVanced/revanced-patches/issues/5670)) ([cce6737](https://github.com/ReVanced/revanced-patches/commit/cce6737f627fc7621bbde50a5653b6af14c6f31a))
21+
22+
# [5.34.0-dev.11](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.10...v5.34.0-dev.11) (2025-08-16)
23+
24+
25+
### Bug Fixes
26+
27+
* **YouTube - SponsorBlock:** Do not hide voting or create button when the video ends ([6aba4e2](https://github.com/ReVanced/revanced-patches/commit/6aba4e284de9bb94b49eea8be2baf2870eecbbcf))
28+
29+
# [5.34.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.9...v5.34.0-dev.10) (2025-08-16)
30+
31+
32+
### Bug Fixes
33+
34+
* **YouTube - Video playback:** Disable HDR video does not disable Dolby Vision HDR ([#5661](https://github.com/ReVanced/revanced-patches/issues/5661)) ([6dab988](https://github.com/ReVanced/revanced-patches/commit/6dab98810645b96bd0387ba7d607e5d8ffb1b5bb))
35+
36+
37+
### Features
38+
39+
* **YouTube - Hide video action buttons:** Add "Hide Promote button" setting ([1959396](https://github.com/ReVanced/revanced-patches/commit/1959396a53f4c07b94acddc5c0ee6cdf7ade7c7b))
40+
41+
# [5.34.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.9...v5.34.0-dev.10) (2025-08-16)
42+
43+
44+
### Features
45+
46+
* **YouTube - Hide video action buttons:** Add "Hide Promote button" setting ([1959396](https://github.com/ReVanced/revanced-patches/commit/1959396a53f4c07b94acddc5c0ee6cdf7ade7c7b))
47+
48+
# [5.34.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.9...v5.34.0-dev.10) (2025-08-16)
49+
50+
51+
### Features
52+
53+
* **YouTube - Hide video action buttons:** Add "Hide Promote button" setting ([1959396](https://github.com/ReVanced/revanced-patches/commit/1959396a53f4c07b94acddc5c0ee6cdf7ade7c7b))
54+
55+
# [5.34.0-dev.9](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.8...v5.34.0-dev.9) (2025-08-16)
56+
57+
58+
### Features
59+
60+
* **YouTube - Hide video action buttons:** Add "Hide Hype button" setting ([f13f377](https://github.com/ReVanced/revanced-patches/commit/f13f3770e7c4fd5bff8f3e224fb1b1ead50a3c18))
61+
62+
# [5.34.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.7...v5.34.0-dev.8) (2025-08-15)
63+
64+
65+
### Features
66+
67+
* **NU.nl:** Support latest app version ([#5643](https://github.com/ReVanced/revanced-patches/issues/5643)) ([7338e4a](https://github.com/ReVanced/revanced-patches/commit/7338e4a5a99f913256120d0d58fede3aa4ee8922))
68+
* **YouTube:** Add `Disable sign in to TV popup` patch ([#5639](https://github.com/ReVanced/revanced-patches/issues/5639)) ([d0e5bd0](https://github.com/ReVanced/revanced-patches/commit/d0e5bd0479a8910b081c483ed2a6ab4d7134e3c3))
69+
70+
# [5.34.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.6...v5.34.0-dev.7) (2025-08-13)
71+
72+
73+
### Bug Fixes
74+
75+
* **YouTube - Video quality:** Fix additional incorrect quality resolutions used by YouTube ([a2a1fbe](https://github.com/ReVanced/revanced-patches/commit/a2a1fbe2959be8334c54cfc3426c24a960c55c8f))
76+
77+
# [5.34.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.5...v5.34.0-dev.6) (2025-08-11)
78+
79+
80+
### Bug Fixes
81+
82+
* **YouTube - Video quality:** Show FHD+ icon for 1080p 60fps enhanced bitrate ([76bed37](https://github.com/ReVanced/revanced-patches/commit/76bed3734093713af24ef065d5ffc5b1cd83f29a))
83+
84+
# [5.34.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.4...v5.34.0-dev.5) (2025-08-10)
85+
86+
87+
### Features
88+
89+
* **YouTube - Hide player flyout menu items:** Add option to hide quality flyout menu ([eb55068](https://github.com/ReVanced/revanced-patches/commit/eb5506856a2eaf2a8585e598868ddba3e1429159))
90+
91+
# [5.34.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.3...v5.34.0-dev.4) (2025-08-10)
92+
93+
94+
### Bug Fixes
95+
96+
* **YouTube - Hide layout components:** Do not hide community posts on channel profiles ([#5634](https://github.com/ReVanced/revanced-patches/issues/5634)) ([9e3d5a2](https://github.com/ReVanced/revanced-patches/commit/9e3d5a2b36106479470f3f69920518b57e8c4dca))
97+
98+
# [5.34.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.2...v5.34.0-dev.3) (2025-08-09)
99+
100+
101+
### Bug Fixes
102+
103+
* **pixiv - Hide ads:** Constrain patch to last working app target ([d8ea56c](https://github.com/ReVanced/revanced-patches/commit/d8ea56ca4be47df1c43f96ec41b91c800f1d9daf))
104+
105+
# [5.34.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v5.34.0-dev.1...v5.34.0-dev.2) (2025-08-09)
106+
107+
108+
### Bug Fixes
109+
110+
* **Backdrops:** Remove broken patch that is no longer supported ([#5627](https://github.com/ReVanced/revanced-patches/issues/5627)) ([ebb8332](https://github.com/ReVanced/revanced-patches/commit/ebb83320838aa99dd4417d45a50333dd42c1218a))
111+
112+
113+
### Features
114+
115+
* **YouTube - Playback speed:** Show current playback speed on player speed dialog button ([#5607](https://github.com/ReVanced/revanced-patches/issues/5607)) ([279436a](https://github.com/ReVanced/revanced-patches/commit/279436a3657b50f98bb4cc64dc88dc14e422f204))
116+
117+
# [5.34.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.33.0...v5.34.0-dev.1) (2025-08-08)
118+
119+
120+
### Bug Fixes
121+
122+
* **Twitch:** Constrain patches to last working app targets ([#5373](https://github.com/ReVanced/revanced-patches/issues/5373)) ([29a4748](https://github.com/ReVanced/revanced-patches/commit/29a47481c4efa209a3a53df60613b59a73adbe07))
123+
124+
125+
### Features
126+
127+
* **Instagram:** Support latest app version ([#5611](https://github.com/ReVanced/revanced-patches/issues/5611)) ([26fe690](https://github.com/ReVanced/revanced-patches/commit/26fe690dfbefe6c412c5f81f208a3b1d2fbd7a0a))
128+
1129
# [5.33.0](https://github.com/ReVanced/revanced-patches/compare/v5.32.0...v5.33.0) (2025-08-05)
2130

3131

extensions/shared/library/src/main/java/app/revanced/extension/shared/Utils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ public static <R extends View> R getChildViewByResourceName(View view, String st
329329
return (R) child;
330330
}
331331

332-
throw new IllegalArgumentException("View with resource name '" + str + "' not found");
332+
throw new IllegalArgumentException("View with resource name not found: " + str);
333333
}
334334

335335
/**

extensions/youtube/src/main/java/app/revanced/extension/youtube/Event.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
package app.revanced.extension.youtube
22

3+
import app.revanced.extension.shared.Logger
4+
import java.util.Collections
5+
36
/**
47
* generic event provider class
58
*/
69
class Event<T> {
7-
private val eventListeners = mutableSetOf<(T) -> Unit>()
10+
private val eventListeners = Collections.synchronizedSet(mutableSetOf<(T) -> Unit>())
811

912
operator fun plusAssign(observer: (T) -> Unit) {
1013
addObserver(observer)
1114
}
1215

1316
fun addObserver(observer: (T) -> Unit) {
17+
Logger.printDebug { "Adding observer: $observer" }
1418
eventListeners.add(observer)
1519
}
1620

@@ -23,7 +27,8 @@ class Event<T> {
2327
}
2428

2529
operator fun invoke(value: T) {
26-
for (observer in eventListeners)
30+
for (observer in eventListeners) {
2731
observer.invoke(value)
32+
}
2833
}
2934
}
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package app.revanced.extension.youtube.patches;
22

3+
import android.view.Display;
4+
35
import app.revanced.extension.youtube.settings.Settings;
46

57
@SuppressWarnings("unused")
@@ -8,8 +10,10 @@ public class DisableHdrPatch {
810
/**
911
* Injection point.
1012
*/
11-
public static boolean disableHDRVideo() {
12-
return !Settings.DISABLE_HDR_VIDEO.get();
13+
public static int[] disableHdrVideo(Display.HdrCapabilities capabilities) {
14+
return Settings.DISABLE_HDR_VIDEO.get()
15+
? new int[0]
16+
: capabilities.getSupportedHdrTypes();
1317
}
1418
}
1519

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package app.revanced.extension.youtube.patches;
2+
3+
import app.revanced.extension.youtube.settings.Settings;
4+
5+
@SuppressWarnings("unused")
6+
public class DisableSignInToTvPopupPatch {
7+
8+
/**
9+
* Injection point.
10+
*/
11+
public static boolean disableSignInToTvPopup() {
12+
return Settings.DISABLE_SIGNIN_TO_TV_POPUP.get();
13+
}
14+
}

extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/PlayerControlsPatch.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,4 @@ public void onGlobalLayout() {
5757
private static void fullscreenButtonVisibilityChanged(boolean isVisible) {
5858
// Code added during patching.
5959
}
60-
61-
/**
62-
* Injection point.
63-
*/
64-
public static String getPlayerTopControlsLayoutResourceName(String original) {
65-
return "default";
66-
}
6760
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package app.revanced.extension.youtube.patches;
2+
3+
import androidx.annotation.Nullable;
4+
5+
import app.revanced.extension.youtube.shared.PlayerControlsVisibility;
6+
7+
@SuppressWarnings("unused")
8+
public class PlayerControlsVisibilityHookPatch {
9+
10+
/**
11+
* Injection point.
12+
*/
13+
public static void setPlayerControlsVisibility(@Nullable Enum<?> youTubePlayerControlsVisibility) {
14+
if (youTubePlayerControlsVisibility == null) return;
15+
16+
PlayerControlsVisibility.setFromString(youTubePlayerControlsVisibility.name());
17+
}
18+
}

0 commit comments

Comments
 (0)