Skip to content

Commit b44a369

Browse files
chore: Merge branch dev to main (#5916)
2 parents fa4f422 + 092a72c commit b44a369

File tree

191 files changed

+4127
-1174
lines changed

Some content is hidden

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

191 files changed

+4127
-1174
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ body:
7272
7373
- **Do not submit a duplicate bug report**: Search for existing bug reports [here](https://github.com/ReVanced/revanced-patches/issues?q=label%3A%22Bug+report%22).
7474
- **Review the contribution guidelines**: Make sure your bug report adheres to it. You can find the guidelines [here](https://github.com/ReVanced/revanced-patches/blob/main/CONTRIBUTING.md).
75+
- **Check the troubleshooting guide**: A solution to your issue might be found in the [FAQ](https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-resources/questions.md) or the [troubleshooting guide](https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-resources/troubleshooting.md).
7576
- **Do not use the issue page for support**: If you need help or have questions, check out other platforms on [revanced.app](https://revanced.app).
7677
- type: textarea
7778
attributes:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ body:
7272
7373
- **Do not submit a duplicate feature request**: Search for existing feature requests [here](https://github.com/ReVanced/revanced-patches/issues?q=label%3A%22Feature+request%22).
7474
- **Review the contribution guidelines**: Make sure your feature request adheres to it. You can find the guidelines [here](https://github.com/ReVanced/revanced-patches/blob/main/CONTRIBUTING.md).
75+
- **Check the troubleshooting guide**: Information about your issue might be found in the [FAQ](https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-resources/questions.md) or the [troubleshooting guide](https://github.com/ReVanced/revanced-documentation/blob/main/docs/revanced-resources/troubleshooting.md).
7576
- **Do not use the issue page for support**: If you need help or have questions, check out other platforms on [revanced.app](https://revanced.app).
7677
- type: textarea
7778
attributes:

CHANGELOG.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,87 @@
1+
# [5.40.0-dev.11](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.10...v5.40.0-dev.11) (2025-09-20)
2+
3+
4+
### Bug Fixes
5+
6+
* **YouTube - Spoof video streams:** Add stream audio selector disclaimer for Android Studio client ([a8a4107](https://github.com/ReVanced/revanced-patches/commit/a8a410708d50f34ac4bd2ca29bbbc3cde00bbf93))
7+
8+
# [5.40.0-dev.10](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.9...v5.40.0-dev.10) (2025-09-20)
9+
10+
11+
### Bug Fixes
12+
13+
* **YouTube - Spoof video streams:** Add "Force original audio" disclaimer for Android Studio client ([f97d332](https://github.com/ReVanced/revanced-patches/commit/f97d33206b4c97244f0bd0c672c4b91eaf477b0b))
14+
15+
# [5.40.0-dev.9](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.8...v5.40.0-dev.9) (2025-09-20)
16+
17+
18+
### Features
19+
20+
* **YouTube Music:** Support version `8.10.52` ([#5941](https://github.com/ReVanced/revanced-patches/issues/5941)) ([01c0f1b](https://github.com/ReVanced/revanced-patches/commit/01c0f1bd1ac6edb8aea758f88ffffcdea74a29b7))
21+
22+
# [5.40.0-dev.8](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.7...v5.40.0-dev.8) (2025-09-20)
23+
24+
25+
### Features
26+
27+
* **YouTube:** Support version `20.14.43` ([#5940](https://github.com/ReVanced/revanced-patches/issues/5940)) ([f7f4a1b](https://github.com/ReVanced/revanced-patches/commit/f7f4a1b0f0186598266b41a2c6a781fdee49e440))
28+
29+
# [5.40.0-dev.7](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.6...v5.40.0-dev.7) (2025-09-20)
30+
31+
32+
### Features
33+
34+
* **YouTube - Hide video action buttons:** Add "Hide comments" button ([db796fb](https://github.com/ReVanced/revanced-patches/commit/db796fb8830b813e1ed626d491c4a797171e69e7))
35+
36+
# [5.40.0-dev.6](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.5...v5.40.0-dev.6) (2025-09-20)
37+
38+
39+
### Features
40+
41+
* **YouTube Music:** Add `Enable debugging` patch ([#5939](https://github.com/ReVanced/revanced-patches/issues/5939)) ([418f594](https://github.com/ReVanced/revanced-patches/commit/418f5945c213313f9a77cac9a5c326d89c754dfd))
42+
43+
# [5.40.0-dev.5](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.4...v5.40.0-dev.5) (2025-09-20)
44+
45+
46+
### Features
47+
48+
* **YouTube Music:** Add `Hide cast button` and `Navigation bar` patches ([#5934](https://github.com/ReVanced/revanced-patches/issues/5934)) ([651d358](https://github.com/ReVanced/revanced-patches/commit/651d3580967a252b57cbf4afbba02d6a4601ccfe))
49+
50+
# [5.40.0-dev.4](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.3...v5.40.0-dev.4) (2025-09-20)
51+
52+
53+
### Bug Fixes
54+
55+
* **Spoof video streams:** Resolve occasional playback stuttering ([5c7c8b5](https://github.com/ReVanced/revanced-patches/commit/5c7c8b536416ec53cd98f7d59d11850aa1b70f11))
56+
57+
# [5.40.0-dev.3](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.2...v5.40.0-dev.3) (2025-09-19)
58+
59+
60+
### Bug Fixes
61+
62+
* **Instagram - Limit feed to followed profiles:** Change patch to default off ([767f1e3](https://github.com/ReVanced/revanced-patches/commit/767f1e3695327bdbc4daea8b50a80d4c0a38456a))
63+
64+
# [5.40.0-dev.2](https://github.com/ReVanced/revanced-patches/compare/v5.40.0-dev.1...v5.40.0-dev.2) (2025-09-18)
65+
66+
67+
### Features
68+
69+
* **Instagram:** Add `Limit feed to followed profiles` patch ([#5908](https://github.com/ReVanced/revanced-patches/issues/5908)) ([8ba9a19](https://github.com/ReVanced/revanced-patches/commit/8ba9a19ade24c5fe9bd6d4e49772b7663522780e))
70+
71+
# [5.40.0-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.39.1-dev.1...v5.40.0-dev.1) (2025-09-17)
72+
73+
74+
### Features
75+
76+
* **Viber - Hide ads:** Support latest app target ([#5863](https://github.com/ReVanced/revanced-patches/issues/5863)) ([e6cce85](https://github.com/ReVanced/revanced-patches/commit/e6cce8554116df3c0ea6dbb7440c59c9e73d8334))
77+
78+
## [5.39.1-dev.1](https://github.com/ReVanced/revanced-patches/compare/v5.39.0...v5.39.1-dev.1) (2025-09-17)
79+
80+
81+
### Bug Fixes
82+
83+
* **YouTube - Force original audio:** Show UI setting summary if spoofing to Android Studio ([b7026b7](https://github.com/ReVanced/revanced-patches/commit/b7026b70865bc44de07b30f84ba8b8b608930d5b))
84+
185
# [5.39.0](https://github.com/ReVanced/revanced-patches/compare/v5.38.0...v5.39.0) (2025-09-17)
286

387

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dependencies {
2+
compileOnly(project(":extensions:shared:library"))
3+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<manifest/>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package app.revanced.extension.instagram.feed;
2+
3+
import java.util.HashMap;
4+
import java.util.Map;
5+
6+
@SuppressWarnings("unused")
7+
public class LimitFeedToFollowedProfiles {
8+
9+
/**
10+
* Injection point.
11+
*/
12+
public static Map<String, String> setFollowingHeader(Map<String, String> requestHeaderMap) {
13+
// Create new map as original is unmodifiable.
14+
Map<String, String> patchedRequestHeaderMap = new HashMap<>(requestHeaderMap);
15+
patchedRequestHeaderMap.put("pagination_source", "following");
16+
return patchedRequestHeaderMap;
17+
}
18+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package app.revanced.extension.music.patches;
2+
3+
import static app.revanced.extension.shared.Utils.hideViewBy0dpUnderCondition;
4+
5+
import android.view.View;
6+
import app.revanced.extension.music.settings.Settings;
7+
8+
@SuppressWarnings("unused")
9+
public class HideCastButtonPatch {
10+
11+
/**
12+
* Injection point
13+
*/
14+
public static int hideCastButton(int original) {
15+
return Settings.HIDE_CAST_BUTTON.get() ? View.GONE : original;
16+
}
17+
18+
/**
19+
* Injection point
20+
*/
21+
public static void hideCastButton(View view) {
22+
hideViewBy0dpUnderCondition(Settings.HIDE_CAST_BUTTON.get(), view);
23+
}
24+
}

extensions/music/src/main/java/app/revanced/extension/music/patches/HideUpgradeButtonPatch.java

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
package app.revanced.extension.music.patches;
2+
3+
import static app.revanced.extension.shared.Utils.hideViewUnderCondition;
4+
5+
import android.view.View;
6+
import android.widget.TextView;
7+
8+
import androidx.annotation.NonNull;
9+
import androidx.annotation.Nullable;
10+
11+
import app.revanced.extension.music.settings.Settings;
12+
13+
@SuppressWarnings("unused")
14+
public class NavigationBarPatch {
15+
@NonNull
16+
private static String lastYTNavigationEnumName = "";
17+
18+
public static void setLastAppNavigationEnum(@Nullable Enum<?> ytNavigationEnumName) {
19+
if (ytNavigationEnumName != null) {
20+
lastYTNavigationEnumName = ytNavigationEnumName.name();
21+
}
22+
}
23+
24+
public static void hideNavigationLabel(TextView textview) {
25+
hideViewUnderCondition(Settings.HIDE_NAVIGATION_BAR_LABEL.get(), textview);
26+
}
27+
28+
public static void hideNavigationButton(@NonNull View view) {
29+
// Hide entire navigation bar.
30+
if (Settings.HIDE_NAVIGATION_BAR.get() && view.getParent() != null) {
31+
hideViewUnderCondition(true, (View) view.getParent());
32+
return;
33+
}
34+
35+
// Hide navigation buttons based on their type.
36+
for (NavigationButton button : NavigationButton.values()) {
37+
if (button.ytEnumNames.equals(lastYTNavigationEnumName)) {
38+
hideViewUnderCondition(button.hidden, view);
39+
break;
40+
}
41+
}
42+
}
43+
44+
private enum NavigationButton {
45+
HOME(
46+
"TAB_HOME",
47+
Settings.HIDE_NAVIGATION_BAR_HOME_BUTTON.get()
48+
),
49+
SAMPLES(
50+
"TAB_SAMPLES",
51+
Settings.HIDE_NAVIGATION_BAR_SAMPLES_BUTTON.get()
52+
),
53+
EXPLORE(
54+
"TAB_EXPLORE",
55+
Settings.HIDE_NAVIGATION_BAR_EXPLORE_BUTTON.get()
56+
),
57+
LIBRARY(
58+
"LIBRARY_MUSIC",
59+
Settings.HIDE_NAVIGATION_BAR_LIBRARY_BUTTON.get()
60+
),
61+
UPGRADE(
62+
"TAB_MUSIC_PREMIUM",
63+
Settings.HIDE_NAVIGATION_BAR_UPGRADE_BUTTON.get()
64+
);
65+
66+
private final String ytEnumNames;
67+
private final boolean hidden;
68+
69+
NavigationButton(@NonNull String ytEnumNames, boolean hidden) {
70+
this.ytEnumNames = ytEnumNames;
71+
this.hidden = hidden;
72+
}
73+
}
74+
}

extensions/music/src/main/java/app/revanced/extension/music/patches/spoof/SpoofVideoStreamsPatch.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import java.util.List;
99

1010
import app.revanced.extension.shared.spoof.ClientType;
11-
import app.revanced.extension.shared.spoof.requests.StreamingDataRequest;
1211

1312
@SuppressWarnings("unused")
1413
public class SpoofVideoStreamsPatch {
@@ -23,8 +22,7 @@ public static void setClientOrderToUse() {
2322
VISIONOS
2423
);
2524

26-
ClientType client = SPOOF_VIDEO_STREAMS_CLIENT_TYPE.get();
27-
app.revanced.extension.shared.spoof.SpoofVideoStreamsPatch.setPreferredClient(client);
28-
StreamingDataRequest.setClientOrderToUse(availableClients, client);
25+
app.revanced.extension.shared.spoof.SpoofVideoStreamsPatch.setClientsToUse(
26+
availableClients, SPOOF_VIDEO_STREAMS_CLIENT_TYPE.get());
2927
}
3028
}

0 commit comments

Comments
 (0)