This repository has been archived by the owner on Oct 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
800 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
.../main/java/app/revanced/integrations/patches/DisableResumingStartupShortsPlayerPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
/** @noinspection unused*/ | ||
public class DisableResumingStartupShortsPlayerPatch { | ||
|
||
/** | ||
* Injection point. | ||
*/ | ||
public static boolean disableResumingStartupShortsPlayer() { | ||
return SettingsEnum.DISABLE_RESUMING_SHORTS_PLAYER.getBoolean(); | ||
} | ||
} |
10 changes: 0 additions & 10 deletions
10
app/src/main/java/app/revanced/integrations/patches/DisableStartupShortsPlayerPatch.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
app/src/main/java/app/revanced/integrations/patches/EnableOldSeekbarThumbnailsPatch.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/src/main/java/app/revanced/integrations/patches/RemoveTrackingQueryParameterPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
public final class RemoveTrackingQueryParameterPatch { | ||
private static final String NEW_TRACKING_PARAMETER_REGEX = ".si=.+"; | ||
private static final String OLD_TRACKING_PARAMETER_REGEX = ".feature=.+"; | ||
|
||
public static String sanitize(String url) { | ||
if (!SettingsEnum.REMOVE_TRACKING_QUERY_PARAMETER.getBoolean()) return url; | ||
|
||
return url | ||
.replaceAll(NEW_TRACKING_PARAMETER_REGEX, "") | ||
.replaceAll(OLD_TRACKING_PARAMETER_REGEX, ""); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
app/src/main/java/app/revanced/integrations/patches/RestoreOldSeekbarThumbnailsPatch.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package app.revanced.integrations.patches; | ||
|
||
import app.revanced.integrations.settings.SettingsEnum; | ||
|
||
@SuppressWarnings("unused") | ||
public final class RestoreOldSeekbarThumbnailsPatch { | ||
public static boolean useFullscreenSeekbarThumbnails() { | ||
return !SettingsEnum.RESTORE_OLD_SEEKBAR_THUMBNAILS.getBoolean(); | ||
} | ||
} |
Oops, something went wrong.