feat(Instagram): Add QoL patches and fix existing patches for v421.x.x

New patches added:
- Disable double-tap to like
- Hide comment button
- Download media (partial - fingerprint needs work)
- Disable feed auto-refresh
- Keep scroll position
- Copy bio text

Fixed existing patches:
- Anonymous story viewing: Updated fingerprint to visual_media_seen
- Disable Reels auto-scroll: Removed strict type constraints
- Hide suggested content: Simplified to use returnEarly()
- Enable location sticker redesign: Updated fingerprint (partial)

Also includes extension Java classes for download and bio patches.
This commit is contained in:
Gaurav 2026-03-22 01:55:00 +05:45
parent 480fd00b4c
commit d852728589
21 changed files with 194 additions and 61 deletions

View file

@ -0,0 +1,21 @@
package app.revanced.extension.instagram.misc.download;
@SuppressWarnings("unused")
public class DownloadMediaPatch {
/**
* Injection point.
* Always return true to allow downloading all media regardless of creator settings.
*/
public static boolean isDownloadAllowed() {
return true;
}
/**
* Injection point.
* Force third-party downloads to be enabled.
*/
public static int forceThirdPartyDownloadsEnabled(int originalValue) {
return 1;
}
}

View file

@ -0,0 +1,17 @@
package app.revanced.extension.instagram.profile;
import android.widget.TextView;
@SuppressWarnings("unused")
public class CopyBioTextPatch {
/**
* Injection point.
* Makes the bio TextView selectable and copyable.
*/
public static void makeBioTextSelectable(TextView bioTextView) {
if (bioTextView != null) {
bioTextView.setTextIsSelectable(true);
}
}
}