Skip to content

Instantly share code, notes, and snippets.

@aamiaa
Last active April 24, 2025 14:08
Show Gist options
  • Save aamiaa/fbf6e51dbb8875a781a3d8d76fc3f3e7 to your computer and use it in GitHub Desktop.
Save aamiaa/fbf6e51dbb8875a781a3d8d76fc3f3e7 to your computer and use it in GitHub Desktop.
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
  2. Download ApkMirror's installer to install the downloaded "apk bundle"
  3. Enjoy :)

Method 2 - Vendetta (Android)

  1. Download and install Vendetta Manager
  2. Open it
  3. Tap the settings icon in top right corner
  4. Go to Advanced, tap on "Check for Discord updates" and set it to "Disabled"
  5. Go back to settings, then go to "About"
  6. Tap the version number below the "Vendetta Manager" label a few times until it says "You're now a developer"
  7. Go back to settings, then go to "Developer only"
  8. In the text field that says "Discord version" enter this number: 215024 (it's the last version that still has the old channels list in old layout)
  9. Exit out of settings
  10. Press "Install" on the main screen
  11. Wait for Vendetta to install, open it once it's finished
  12. Login to Vendetta with your Discord account like normal
  13. Go to Settings -> Plugins
  14. Click the + button, paste this link: https://vd-plugins.github.io/proxy/maisymoe.github.io/strife/Experiments/ and click Install
  15. Restart the app
  16. Go to Settings -> Experiments
  17. Set Tabs V2 - redesign opt-out for T2 to Treatment 1: show
  18. Set Tabs V2 - redesign opt-out/in for all to Not Eligible

(If your Discord didn't switch back to old layout after this step, go to Settings -> Appearance and flip the "Show New Layout" toggle off)

  1. Set Mobile Chat Input Action Menu to Not Eligible
  2. If you still have the new layout in user settings, set You Tab Individual Feature to Not Eligible

iOS

I don't have an iOS device so I don't know much about sideloading or jailbreaking, but I believe you should be able to install Vendetta and follow the same steps as for Android. I think the IPAs for non-jailbroken devices listed there might even be old enough for you to not worry about messing with experiments.


View original gist

Revert New Discord Layout

How to use this script:

  1. Go to https://discord.com/app
  2. Press Ctrl + Shift + I to open DevTools
  3. Go to the Console tab
  4. Paste the following code and hit enter:
let wpRequire;
window.webpackChunkdiscord_app.push([[ Math.random() ], {}, (req) => { wpRequire = req; }]);

let UserSettingsActions = Object.values(wpRequire.c).find(x => x?.exports?.PreloadedUserSettingsActionCreators).exports;
let ProtobufTypes = Object.values(wpRequire.c).find(x => x?.exports?.BoolValue).exports;

UserSettingsActions.PreloadedUserSettingsActionCreators.updateAsync("appearance", data => {
    data.mobileRedesignDisabled = ProtobufTypes.BoolValue.create({value: true})
}, UserSettingsActions.UserSettingsDelay.INFREQUENT_USER_ACTION)

This code requires no changes, preserves all your other appearance settings (such as theme), as well as automatically includes all relevant Discord headers, reducing any risks to minimum.

How does this work?

This emulates flipping the Show New Layout toggle in appearance settings. Yes the toggle is server-synced for some reason.

Note: This is only a temporary solution. Discord will start ignoring that setting in some future update.


This was inspired by @xeuk's original snippet

@Slothswithaids
Copy link

sheesh, anyway thanks for the script tho, im happy i can reverted to old UI until discord removed it. NEW UI IS NOT GOOD.

if you manage to find any workarounds, lemme know. i hate this shit so much

@lEric-Wl
Copy link

hey, i tried sideloading vendetta but got the following error. tried fixing it but couldn't figure it out :( any ideas? ERROR: Guru Meditation b4822c@1697:a26021 [WinError 206] The filename or extension is too long: 'C:\Users(name)\AppData\Local\Temp\tmpbtg738or\Payload\Discord.app\assets_node_modules.pnpm@[email protected]_patch_hash=tm3j4nw5qxof2dxeh46s5mokpa_@react-navigation+nat_eqnm6ustzf2c5ljdvmfr6cc724\node_modules@react-navigation\elements' Install failed: Guru Meditation b4822c@1697:a26021 [WinError 206] The filename or extension is too long: 'C:\Users(name)\AppData\Local\Temp\tmpbtg738or\Payload\Discord.app\assets_node_modules.pnpm@[email protected]_patch_hash=tm3j4nw5qxof2dxeh46s5mokpa_@react-navigation+nat_eqnm6ustzf2c5ljdvmfr6cc724\node_modules@react-navigation\elements'

yeah, i get this same error too

Is sideloady installed on your phone PC and phone?

@tiagomps
Copy link

yooooo ur the goat tysm i hate the new ui

@suhaybu
Copy link

suhaybu commented Feb 16, 2024

for some reason, sideloadly says "no devices detected" so i can't really connect my iphone to it, i'm not sure how. plus do you have to go to that discord server? is there a download there or something?

i have a few questions! if i do the vendetta thing, if i accidentally mess anything up, is there a way to disable it?
and also is the vendetta thing like a bannable offense??
plus, is it totally safe to use? I'm nervous about putting my apple id in for the device screen i'm on

Yes. If you mess up something, just disable the plugin / reinstall it. As for the ban part, I haven't seen anyone get banned for Modded Clients, and I'm using it for 2+ years without a ban. Vendetta is open source, which means that you can see everything the app does, so there's no reason to be scared.

for some reason, sdeiloadly says "no devices detected" so i can't really connect my iphone to it, i'm not sure how. plus do you have to go to that discord server? is there a download there or something for this process? and would this bring back the toggle to change back and forth from the UIs?

You don't need to go to their discord if you don't want. It's prolly just ppl talking about vendetta related stuff.
Make sure your cable is capable of transferring data and power

i have my apple charger connecting my iphone and laptop, is that what you mean?

picture also is the Jailbroken and Jailed just 2 different ways to go about installing vendetta? Or do I have to do both? because i've only been trying to figure out the Jailed one on the bottom since it seemed simpler, and I wasn't sure what all the instructions were talking about in Jailbroken

Jailbroken is completely different. You're gonna be following the jailed instruction.
When you plug in your phone, did your phone prompt you for your passcode to allow connecting to your PC?

wait so do you know if I click "start" with sideloadly, it installs a vendetta app on my iphone? so it is separate from the discord app and doesn't make a change there, but I can use the plugins with the new app? is that right?

I'm not sure about vendetta app's case, but generally it depends on the vendetta app's bundle id. If they are using a different bundle id for vendetta than discord, then yes what you are saying is right. This depends on the vandetta's devs. In that case, you can have both vendetta and discord installed in parallel like you said. (this is often the case)

In the case that they do share the same bundle id, then when sideloading while having the normal discord app installed, the vendetta app might replace discord's app, or it would give an error and not let you (this is more likely).

@RockGrub
Copy link

Welp, I can't find Mobile Chat Input Action Menu. Was it renamed or did they change that now?

@Unbloated
Copy link

The only method now is downgrading, experiments stopped working at around 225.10 - Beta

@CoderMonkey1956
Copy link

CoderMonkey1956 commented May 23, 2024

Hey everyone, if you want to use Vendetta (or a fork of it) then use version 205015 and you can skip the experiments part.

@Lunardog15
Copy link

Hey everyone, if you want to use Vendetta then use version 205015 and you can skip the experiments part.

isn't vendetta dead?

@CoderMonkey1956
Copy link

CoderMonkey1956 commented May 27, 2024

Hey everyone, if you want to use Vendetta then use version 205015 and you can skip the experiments part.

isn't vendetta dead?

Yeah, I probably should have mentioned you can also use this with Bunny. I just wanted to give the correct version number. I've updated my comment to reflect this.

@AzaelMew
Copy link

AzaelMew commented Sep 18, 2024

Spent 4+ hours to get this shit to work again, what i did was install bunny manager, used version 215024, played around with it until it decided to work without bunny crashing, not sure what i did to achieve that, just clicked anything and everything in discord and did steps 16 - 20

after that i installed latest discord and Bunny (as lsposed module in this one), downloaded the modules i need, and then downgraded to 224.19 (latest version where Bunny doesnt insta crash) and did steps 16-18 again in this one, and now i have old ui, in native discord app, bunny injected with lsposed.

This way you can get ur themes and stuff without losing old ui

Really painful.

@Stoople
Copy link

Stoople commented Feb 9, 2025

PLS HELP
i had to reload my phone bc of some reasons and after that the vendeta broke
it just crashes when i try to open it i redownloaded it multiple times and foloved all the steps but it didnt fix please help does anyone know how to fix this i can t use the new ui its litteral death
thanx for help in adwance (sry if its weird i dk how to use github i made an ac just to ask for help)

video_2025-02-09_22-00-28.mp4

@CoderMonkey1956
Copy link

PLS HELP i had to reload my phone bc of some reasons and after that the vendeta broke it just crashes when i try to open it i redownloaded it multiple times and foloved all the steps but it didnt fix please help does anyone know how to fix this i can t use the new ui its litteral death thanx for help in adwance (sry if its weird i dk how to use github i made an ac just to ask for help)

video_2025-02-09_22-00-28.mp4

@Stoople Pretty sure this is just a Vendetta thing now, try Revenge or Bunny

@Shadow322
Copy link

Bunny Manager is the one to use now

@Stoople
Copy link

Stoople commented Feb 10, 2025

Bunny Manager is the one to use now

okay one problem i dont know how😭 im sorry i have no idea how those programs n codes stuff works i was able to do vendeta only bc of this tutorial how do i do it with bunny thing?

@BeardedLadyTina
Copy link

Is it possible to "down"grade on PC, or is that only possible on mobile?

@aamiaa
Copy link
Author

aamiaa commented Feb 12, 2025

It is possible, but not as simple. The desktop client is composed of two parts:

  • native modules
  • the embedded website

You'd need a way to make both of them stay at a specific version. I think the native part has some config param/cache which can do that, but I'm not sure.

Keeping the embedded website downgraded is more challenging, because it just loads https://discord.com/app, so it would require replacing the html in a way which doesn't break the nonce of script tags or things like CORS. This is hard even when you modify the app, due to browser security features. It'd likely require something hacky like a local proxy server, or memory manipulation, or some funky electron apis that I'm not aware of.

@IAmTheNerdNextDoor
Copy link

at this point, couldn't we just make a custom client for this?

@BeardedLadyTina
Copy link

BeardedLadyTina commented Feb 12, 2025

Ah, I see, I guess I'll just have to look into getting a modded client then. Thanks

@ajd07
Copy link

ajd07 commented Mar 2, 2025

2023-09_mobile_redesign_override_toggles'.

i dont see this 2023-09_mobile_redesign_override_toggles'. when i search for it

search for Tabs V2

i have Tabs V2 - redesign opt-out for T2 set to Treatment 1 and Tabs V2 - redesign opt-out/in for all set to Treatment 2

if you use AMOLED theme, set it before applying the Treatments

I don't even see Tabs V2... I don't think it's possible anymore.
Thanks Discord for making the app objectively worse!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment