From 8929ff44bc672d6cc4f8b51b1b9c1d2ac9d5262f Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Sun, 20 Jan 2019 02:38:46 +0300 Subject: [PATCH] Add pureevil patches --- patches/pureevil/832.diff | 26 ++++++++++++++++++++++++++ patches/pureevil/README.md | 10 ++++++++++ 2 files changed, 36 insertions(+) create mode 100644 patches/pureevil/832.diff create mode 100644 patches/pureevil/README.md diff --git a/patches/pureevil/832.diff b/patches/pureevil/832.diff new file mode 100644 index 0000000..bc67484 --- /dev/null +++ b/patches/pureevil/832.diff @@ -0,0 +1,26 @@ +diff -crB -x dist -x build com.discord-832-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali com.discord-832/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali +*** com.discord-832-base/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali 2019-01-19 04:41:50.846430038 +0300 +--- com.discord-832/smali/com/discord/widgets/settings/WidgetSettingsAppearance$onViewBoundOrOnResume$1.smali 2019-01-20 02:28:45.741380899 +0300 +*************** +*** 71,83 **** + + check-cast v0, Landroid/view/View; + +! const-string v1, "it" +! +! invoke-static {p1, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V +! +! invoke-virtual {p1}, Lcom/discord/models/domain/ModelUser;->isStaff()Z +! +! move-result p1 + + invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;Z)V + +--- 71,77 ---- + + check-cast v0, Landroid/view/View; + +! const/4 p1, 0x1 + + invoke-static {v0, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;Z)V + \ No newline at end of file diff --git a/patches/pureevil/README.md b/patches/pureevil/README.md new file mode 100644 index 0000000..ce9da5a --- /dev/null +++ b/patches/pureevil/README.md @@ -0,0 +1,10 @@ +## DisTok CutTheCord: "Pure Evil" Theme Patch + +This patch enables the secret AMOLED theme (which is shit). + +#### Bugs / Side effects +- Discord banned people for using experiments before, which is why this patch exists. It doesn't enable everything developer related, just AMOLED theme. Still, don't show stuff this publicly. + +#### Available and tested on: +- 8.3.2 +