Skip to content

Commit 42cc820

Browse files
committed
Merge branch 'dev' into revanced-extended
2 parents bb1498d + 15d0faf commit 42cc820

File tree

63 files changed

+1488
-579
lines changed

Some content is hidden

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

63 files changed

+1488
-579
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,19 @@ See the [documentation](https://github.com/inotia00/revanced-documentation#readm
134134

135135
| 💊 Patch | 📜 Description | 🏹 Target Version |
136136
|:--------:|:--------------:|:-----------------:|
137-
| `Change package name` | Changes the package name for Reddit to the name specified in patch options. | 2024.17.0 ~ 2025.12.0 |
138-
| `Custom branding name for Reddit` | Changes the Reddit app name to the name specified in patch options. | 2024.17.0 ~ 2025.12.0 |
139-
| `Disable screenshot popup` | Adds an option to disable the popup that appears when taking a screenshot. | 2024.17.0 ~ 2025.12.0 |
140-
| `Hide Recently Visited shelf` | Adds an option to hide the Recently Visited shelf in the sidebar. | 2024.17.0 ~ 2025.12.0 |
141-
| `Hide ads` | Adds options to hide ads. | 2024.17.0 ~ 2025.12.0 |
142-
| `Hide navigation buttons` | Adds options to hide buttons in the navigation bar. | 2024.17.0 ~ 2025.12.0 |
143-
| `Hide recommended communities shelf` | Adds an option to hide the recommended communities shelves in subreddits. | 2024.17.0 ~ 2025.12.0 |
144-
| `Open links directly` | Adds an option to skip over redirection URLs in external links. | 2024.17.0 ~ 2025.12.0 |
145-
| `Open links externally` | Adds an option to always open links in your browser instead of in the in-app-browser. | 2024.17.0 ~ 2025.12.0 |
146-
| `Premium icon` | Unlocks premium app icons. | 2024.17.0 ~ 2025.12.0 |
147-
| `Remove subreddit dialog` | Adds options to remove the NSFW community warning and notifications suggestion dialogs by dismissing them automatically. | 2024.17.0 ~ 2025.12.0 |
148-
| `Sanitize sharing links` | Adds an option to sanitize sharing links by removing tracking query parameters. | 2024.17.0 ~ 2025.12.0 |
149-
| `Settings for Reddit` | Applies mandatory patches to implement ReVanced Extended settings into the application. | 2024.17.0 ~ 2025.12.0 |
137+
| `Change package name` | Changes the package name for Reddit to the name specified in patch options. | 2024.17.0 ~ 2025.12.1 |
138+
| `Custom branding name for Reddit` | Changes the Reddit app name to the name specified in patch options. | 2024.17.0 ~ 2025.12.1 |
139+
| `Disable screenshot popup` | Adds an option to disable the popup that appears when taking a screenshot. | 2024.17.0 ~ 2025.12.1 |
140+
| `Hide Recently Visited shelf` | Adds an option to hide the Recently Visited shelf in the sidebar. | 2024.17.0 ~ 2025.12.1 |
141+
| `Hide ads` | Adds options to hide ads. | 2024.17.0 ~ 2025.12.1 |
142+
| `Hide navigation buttons` | Adds options to hide buttons in the navigation bar. | 2024.17.0 ~ 2025.12.1 |
143+
| `Hide recommended communities shelf` | Adds an option to hide the recommended communities shelves in subreddits. | 2024.17.0 ~ 2025.12.1 |
144+
| `Open links directly` | Adds an option to skip over redirection URLs in external links. | 2024.17.0 ~ 2025.12.1 |
145+
| `Open links externally` | Adds an option to always open links in your browser instead of in the in-app-browser. | 2024.17.0 ~ 2025.12.1 |
146+
| `Premium icon` | Unlocks premium app icons. | 2024.17.0 ~ 2025.12.1 |
147+
| `Remove subreddit dialog` | Adds options to remove the NSFW community warning and notifications suggestion dialogs by dismissing them automatically. | 2024.17.0 ~ 2025.12.1 |
148+
| `Sanitize sharing links` | Adds an option to sanitize sharing links by removing tracking query parameters. | 2024.17.0 ~ 2025.12.1 |
149+
| `Settings for Reddit` | Applies mandatory patches to implement ReVanced Extended settings into the application. | 2024.17.0 ~ 2025.12.1 |
150150
</details>
151151

152152

@@ -200,7 +200,7 @@ Example:
200200
"com.reddit.frontpage": [
201201
"2024.17.0",
202202
"2025.05.1",
203-
"2025.12.0"
203+
"2025.12.1"
204204
]
205205
},
206206
"options": []

extensions/shared/src/main/java/app/revanced/extension/reddit/patches/RemoveSubRedditDialogPatch.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
import static app.revanced.extension.shared.utils.StringRef.str;
44

5+
import android.app.Dialog;
56
import android.view.View;
7+
import android.view.Window;
8+
import android.view.WindowManager;
69
import android.widget.TextView;
710

811
import androidx.annotation.NonNull;
@@ -34,6 +37,35 @@ public static boolean spoofHasBeenVisitedStatus(boolean hasBeenVisited) {
3437
return Settings.REMOVE_NSFW_DIALOG.get() || hasBeenVisited;
3538
}
3639

40+
public static void dismissNSFWDialog(Object customDialog) {
41+
if (Settings.REMOVE_NSFW_DIALOG.get() &&
42+
customDialog instanceof Dialog dialog) {
43+
Window window = dialog.getWindow();
44+
if (window != null) {
45+
WindowManager.LayoutParams params = window.getAttributes();
46+
params.height = 0;
47+
params.width = 0;
48+
49+
// Change the size of dialog to 0.
50+
window.setAttributes(params);
51+
52+
// Disable dialog's background dim.
53+
window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
54+
55+
// Hide DecorView.
56+
View decorView = window.getDecorView();
57+
decorView.setVisibility(View.GONE);
58+
59+
// Dismiss dialog.
60+
dialog.dismiss();
61+
}
62+
}
63+
}
64+
65+
public static boolean removeNSFWDialog() {
66+
return Settings.REMOVE_NSFW_DIALOG.get();
67+
}
68+
3769
public static boolean spoofLoggedInStatus(boolean isLoggedIn) {
3870
return !Settings.REMOVE_NOTIFICATION_DIALOG.get() && isLoggedIn;
3971
}

extensions/shared/src/main/java/app/revanced/extension/reddit/patches/ScreenshotPopupPatch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
@SuppressWarnings("unused")
66
public class ScreenshotPopupPatch {
77

8-
public static boolean disableScreenshotPopup() {
9-
return Settings.DISABLE_SCREENSHOT_POPUP.get();
8+
public static Boolean disableScreenshotPopup(Boolean original) {
9+
return Settings.DISABLE_SCREENSHOT_POPUP.get() ? Boolean.FALSE : original;
1010
}
1111
}

extensions/shared/src/main/java/app/revanced/extension/youtube/patches/player/PlayerPatch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ private static void clickDescriptionView(@NonNull ViewGroup descriptionViewGroup
183183
// The type of descriptionView can be either ViewGroup or TextView. (A/B tests)
184184
// If the type of descriptionView is TextView, longer delay is required.
185185
final long delayMillis = descriptionView instanceof TextView
186-
? 500
187-
: 100;
186+
? 750
187+
: 200;
188188

189189
Utils.runOnMainThreadDelayed(() -> Utils.clickView(descriptionView), delayMillis);
190190
}

extensions/shared/src/main/java/app/revanced/extension/youtube/patches/utils/PatchStatus.java

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ public static boolean ImageSearchButton() {
99
return false;
1010
}
1111

12+
// Modified by a patch. Do not touch.
13+
public static boolean OldSeekbarThumbnailsDefaultBoolean() {
14+
return false;
15+
}
16+
1217
public static boolean OldSplashAnimation() {
1318
// Replace this with true if the Restore old splash animation (Custom branding icon) succeeds
1419
return false;
@@ -40,23 +45,22 @@ public static boolean SponsorBlock() {
4045
return false;
4146
}
4247

43-
public static String SpoofAppVersionDefaultString() {
44-
return "18.17.43";
45-
}
46-
4748
public static boolean ToolBarComponents() {
4849
// Replace this with true if the Toolbar components patch succeeds
4950
return false;
5051
}
5152

52-
// Modified by a patch. Do not touch.
53-
public static String RVXMusicPackageName() {
54-
return "com.google.android.apps.youtube.music";
53+
public static long PatchedTime() {
54+
return 0L;
55+
}
56+
57+
public static String SpoofAppVersionDefaultString() {
58+
return "18.17.43";
5559
}
5660

5761
// Modified by a patch. Do not touch.
58-
public static boolean OldSeekbarThumbnailsDefaultBoolean() {
59-
return false;
62+
public static String RVXMusicPackageName() {
63+
return "com.google.android.apps.youtube.music";
6064
}
6165

6266
}

0 commit comments

Comments
 (0)