From 8afe82c0e078880d58e3adef23618a6feaf52e7e Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Sun, 2 Jul 2023 12:25:51 +0400
Subject: [PATCH 1/4] fix(youtube/spoof-signature-verification): remove auto
re-enable functionality (#428)
---
.../SpoofSignatureVerificationPatch.java | 30 -------------------
1 file changed, 30 deletions(-)
diff --git a/app/src/main/java/app/revanced/integrations/patches/SpoofSignatureVerificationPatch.java b/app/src/main/java/app/revanced/integrations/patches/SpoofSignatureVerificationPatch.java
index 38bab199..899d7b6d 100644
--- a/app/src/main/java/app/revanced/integrations/patches/SpoofSignatureVerificationPatch.java
+++ b/app/src/main/java/app/revanced/integrations/patches/SpoofSignatureVerificationPatch.java
@@ -5,7 +5,6 @@ import static app.revanced.integrations.utils.ReVancedUtils.containsAny;
import app.revanced.integrations.settings.SettingsEnum;
import app.revanced.integrations.shared.PlayerType;
import app.revanced.integrations.utils.LogHelper;
-import app.revanced.integrations.utils.ReVancedUtils;
public class SpoofSignatureVerificationPatch {
/**
@@ -68,33 +67,4 @@ public class SpoofSignatureVerificationPatch {
return originalValue;
}
-
- /**
- * Injection point. Runs off the main thread.
- *
- * Used to check the response code of video playback requests made by YouTube.
- * Response code of interest is 403 that indicate a signature verification failure for the current request
- *
- * @param responseCode HTTP status code of the completed YouTube connection
- */
- public static void onResponse(int responseCode) {
- try {
- if (responseCode < 400 || responseCode >= 500) {
- return; // everything normal
- }
- LogHelper.printDebug(() -> "YouTube HTTP status code: " + responseCode);
-
- if (SettingsEnum.SPOOF_SIGNATURE_VERIFICATION.getBoolean()) {
- return; // already enabled
- }
-
- SettingsEnum.SPOOF_SIGNATURE_VERIFICATION.saveValue(true);
- ReVancedUtils.showToastLong("Spoofing app signature to prevent playback issues");
- // it would be great if the video could be forcefully reloaded, but currently there is no code to do this
-
- } catch (Exception ex) {
- LogHelper.printException(() -> "onResponse failure", ex);
- }
- }
-
}
From e9f797824e3c97ab12811e0f2dfa458c8e99e0f1 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Sun, 2 Jul 2023 08:27:45 +0000
Subject: [PATCH 2/4] chore(release): 0.111.2-dev.1 [skip ci]
## [0.111.2-dev.1](https://github.com/revanced/revanced-integrations/compare/v0.111.1...v0.111.2-dev.1) (2023-07-02)
### Bug Fixes
* **youtube/spoof-signature-verification:** remove auto re-enable functionality ([#428](https://github.com/revanced/revanced-integrations/issues/428)) ([8afe82c](https://github.com/revanced/revanced-integrations/commit/8afe82c0e078880d58e3adef23618a6feaf52e7e))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f54af91a..ad3c714d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [0.111.2-dev.1](https://github.com/revanced/revanced-integrations/compare/v0.111.1...v0.111.2-dev.1) (2023-07-02)
+
+
+### Bug Fixes
+
+* **youtube/spoof-signature-verification:** remove auto re-enable functionality ([#428](https://github.com/revanced/revanced-integrations/issues/428)) ([8afe82c](https://github.com/revanced/revanced-integrations/commit/8afe82c0e078880d58e3adef23618a6feaf52e7e))
+
## [0.111.1](https://github.com/revanced/revanced-integrations/compare/v0.111.0...v0.111.1) (2023-07-01)
diff --git a/gradle.properties b/gradle.properties
index d0455855..ea255b75 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,3 @@
org.gradle.jvmargs = -Xmx2048m
android.useAndroidX = true
-version = 0.111.1
+version = 0.111.2-dev.1
From d947de2e03683889f11fc461dc53e08fee735ca8 Mon Sep 17 00:00:00 2001
From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com>
Date: Mon, 3 Jul 2023 23:29:04 +0400
Subject: [PATCH 3/4] fix(reddit/sanitize-sharing-links): update patch to
support latest app version (#430)
---
.../reddit/patches/SanitizeUrlQueryPatch.java | 25 -------------------
1 file changed, 25 deletions(-)
delete mode 100644 app/src/main/java/app/revanced/reddit/patches/SanitizeUrlQueryPatch.java
diff --git a/app/src/main/java/app/revanced/reddit/patches/SanitizeUrlQueryPatch.java b/app/src/main/java/app/revanced/reddit/patches/SanitizeUrlQueryPatch.java
deleted file mode 100644
index 44de897e..00000000
--- a/app/src/main/java/app/revanced/reddit/patches/SanitizeUrlQueryPatch.java
+++ /dev/null
@@ -1,25 +0,0 @@
-package app.revanced.reddit.patches;
-
-import app.revanced.integrations.utils.LogHelper;
-
-import java.net.MalformedURLException;
-import java.net.URL;
-
-public final class SanitizeUrlQueryPatch {
- /**
- * Strip query parameters from a given URL string.
- *
- * @param urlString URL string to strip query parameters from.
- * @return URL string without query parameters if possible, otherwise the original string.
- */
- public static String stripQueryParameters(final String urlString) {
- try {
- final var url = new URL(urlString);
-
- return url.getProtocol() + "://" + url.getHost() + url.getPath();
- } catch (MalformedURLException e) {
- LogHelper.printException(() -> "Can not parse URL", e);
- return urlString;
- }
- }
-}
From e9947fd66a5234ad7966ebcec4ee472b901c42c7 Mon Sep 17 00:00:00 2001
From: semantic-release-bot
Date: Mon, 3 Jul 2023 19:30:58 +0000
Subject: [PATCH 4/4] chore(release): 0.111.2-dev.2 [skip ci]
## [0.111.2-dev.2](https://github.com/revanced/revanced-integrations/compare/v0.111.2-dev.1...v0.111.2-dev.2) (2023-07-03)
### Bug Fixes
* **reddit/sanitize-sharing-links:** update patch to support latest app version ([#430](https://github.com/revanced/revanced-integrations/issues/430)) ([d947de2](https://github.com/revanced/revanced-integrations/commit/d947de2e03683889f11fc461dc53e08fee735ca8))
---
CHANGELOG.md | 7 +++++++
gradle.properties | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ad3c714d..4ebc049b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## [0.111.2-dev.2](https://github.com/revanced/revanced-integrations/compare/v0.111.2-dev.1...v0.111.2-dev.2) (2023-07-03)
+
+
+### Bug Fixes
+
+* **reddit/sanitize-sharing-links:** update patch to support latest app version ([#430](https://github.com/revanced/revanced-integrations/issues/430)) ([d947de2](https://github.com/revanced/revanced-integrations/commit/d947de2e03683889f11fc461dc53e08fee735ca8))
+
## [0.111.2-dev.1](https://github.com/revanced/revanced-integrations/compare/v0.111.1...v0.111.2-dev.1) (2023-07-02)
diff --git a/gradle.properties b/gradle.properties
index ea255b75..e18d0cb2 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,3 @@
org.gradle.jvmargs = -Xmx2048m
android.useAndroidX = true
-version = 0.111.2-dev.1
+version = 0.111.2-dev.2