From 031c035ed4756e02eb885228043e8fb8e2e5b366 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Fri, 27 Mar 2020 13:07:02 +0300 Subject: [PATCH] New patch: hqavatars Fetches avatars as 256x256 instead of 128x128 --- patches/README.md | 2 +- patches/hqavatars/1078.patch | 23 +++++++++++++++++++++++ patches/hqavatars/README.md | 7 +++++++ 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 patches/hqavatars/1078.patch create mode 100644 patches/hqavatars/README.md diff --git a/patches/README.md b/patches/README.md index c819dca..2252f1e 100644 --- a/patches/README.md +++ b/patches/README.md @@ -49,7 +49,7 @@ Video demonstration: https://www.youtube.com/watch?v=NMRPsAgqtWQ ![Developer options tab](https://elixi.re/i/z0oakgla.png) -![Pure evil setting](https://elixi.re/i/f1e7t1y0.png) +- hqavatars: Uses 256x256 variants of avatars instead of 128x128. - **litecord**: Changes the server the app connects to, and specifically tries to connect to a Litecord server. [Litecord is a FOSS re-implementation of Discord's backend.](https://wildcard.elixi.re/i/l3lxhd3a.png) diff --git a/patches/hqavatars/1078.patch b/patches/hqavatars/1078.patch new file mode 100644 index 0000000..a3f6599 --- /dev/null +++ b/patches/hqavatars/1078.patch @@ -0,0 +1,23 @@ +Only in com.discord-1078: build +Only in com.discord-1078: dist +diff -crB com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali +*** com.discord-1078-base/smali/com/discord/utilities/icon/IconUtils.smali 2020-03-26 10:35:55.202236972 +0300 +--- com.discord-1078/smali/com/discord/utilities/icon/IconUtils.smali 2020-03-27 12:03:29.601718099 +0300 +*************** +*** 1355,1360 **** +--- 1355,1368 ---- + + invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; + ++ # Set avatar image size to 256 ++ ++ const-string v0, "?size=256" ++ ++ invoke-virtual {p3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; ++ ++ const-string v0, "https://cdn.discordapp.com/avatars/" ++ + invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; + + move-result-object p0 + diff --git a/patches/hqavatars/README.md b/patches/hqavatars/README.md new file mode 100644 index 0000000..62f2ad2 --- /dev/null +++ b/patches/hqavatars/README.md @@ -0,0 +1,7 @@ +## DisTok CutTheCord: HQ Avatars + +Changes avatars from 128x128 to 256x256 variants. + +#### Available and tested on: +- 16-alpha4 +