New patch: hqavatars

Fetches avatars as 256x256 instead of 128x128
This commit is contained in:
ave 2020-03-27 13:07:02 +03:00
parent 704bcbf36a
commit 031c035ed4
Signed by untrusted user: a
GPG key ID: 398DD7BD03276F6D
3 changed files with 31 additions and 1 deletions

View file

@ -49,7 +49,7 @@ Video demonstration: https://www.youtube.com/watch?v=NMRPsAgqtWQ
![Developer options tab](https://elixi.re/i/z0oakgla.png) ![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) - **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)

View file

@ -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

View file

@ -0,0 +1,7 @@
## DisTok CutTheCord: HQ Avatars
Changes avatars from 128x128 to 256x256 variants.
#### Available and tested on:
- 16-alpha4