Skip to content

Instantly share code, notes, and snippets.

@aamiaa
Last active April 27, 2024 01:19
Show Gist options
  • Star 444 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • 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

@PatientAllison
Copy link

PatientAllison commented Feb 10, 2024

@PatientAllison @Randomouser if you manually enable the new ui with the toggle switch, you have to use the old script to disable it again since i dont believe the toggle switch can be enabled on the new ui, the experiment just makes it so that your setting takes priority, not discords forced override.

Thank you, that worked!

@Xeukxz
Copy link

Xeukxz commented Feb 10, 2024

Discord's forced override is the experiment. If you flipped some settings on accident and broke it, clear all overrides from the experiments menu and re-apply the two that LucasDiscordCzech showed, then go to Appearance settings and flip the Show New Layout toggle back off.

yea i know it is the experiment, i just thought wording it that way would make it easier to understand, and i cant get the ui toggle to appear in appearance settings on the new layout with those 2 experiments set that way. what version are u on?

@Shadow322
Copy link

im lost how to go back to old layout?

@lEric-Wl
Copy link

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've never used sideloady before, and I now use Android. What should happen is that you install sideloady on your phone, and you use sideloady to install the .ipa file. Have you installed sideloady on your phone yet?

@TheDogOfChaos
Copy link

Welp, it was a good run.

@TornGreyshirt
Copy link

TornGreyshirt commented Feb 10, 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've never used sideloady before, and I now use Android. What should happen is that you install sideloady on your phone, and you use sideloady to install the .ipa file. Have you installed sideloady on your phone yet?

hmm
ahh, unfortunately it comes up with an error when i try to start it on my phone. i saw in a video that if you clicked start, it should pop up as an app on your iphone or something like that, and i think that would be how i use vendetta? but it just gives that error. hmm

@ComposerJames
Copy link

is there a way to do this on mac?

Screen Shot 2024-02-09 at 20 25 36

@MuteMuteh
Copy link

What are some modded clients I can try on Android? I refuse to use this new repulsive UI

@Ex4byt3
Copy link

Ex4byt3 commented Feb 10, 2024

I'll take anything but this "new ui"

@Crytkee
Copy link

Crytkee commented Feb 10, 2024

i am so pissed and fucking hate this new UI. its too difficult for me. i want to punch whoever enforced this. ig its time to review bomb discord

@Makonede
Copy link

What are some modded clients I can try on Android? I refuse to use this new repulsive UI

vendetta

@IvorCracking
Copy link

What are some modded clients I can try on Android? I refuse to use this new repulsive UI

vendetta

What plugin/theme of Vendetta to revert the UI back, I'm currently using it but struggling to solve

@IvorCracking
Copy link

What are some modded clients I can try on Android? I refuse to use this new repulsive UI

vendetta

Oh sorry, they have pre built apks at their github

@Makonede
Copy link

What are some modded clients I can try on Android? I refuse to use this new repulsive UI

vendetta

What plugin/theme of Vendetta to revert the UI back, I'm currently using it but struggling to solve

install https://maisymoe.github.io/strife/Experiments, close and reopen or reload discord, user settings, scroll all the way down, experiments, search 2023-09_mobile_redesign_override_toggles, set first one to treatment 2 and second one to treatment 1

@BuIlDaLiBlE
Copy link

205.0 (released on 2023-11-16) is the last version of the app on iOS that uses the old design for anyone who wants the latest version with the old UI.

@CarCrasher730
Copy link

Old Mobile UI has fallen
billions must use crappy new ui

@Kronki-705
Copy link

Ahh, f*** the old refined UI and bring in some change even if it's worse than original, i feel like that is becoming a trend

@acronymfr
Copy link

FIX ANDROID & IOS (REPOST)

Yoo!!! For those who have 'Vendetta' (Modded Mobile Discord) and the 'Experiments' plugin enabled & installed, I fixed it by doing these 2 toggles for the old UI and searching '2023-09_mobile_redesign_override_toggles'. It worked! Enjoy lol 🙂 Screenshot_20240209_214636 Screenshot_20240209_215154

Vendetta Download (iOS & Android)

Link: https://vendetta.rocks/ Vendetta Discord: https://discord.com/invite/vendetta-mod

How to install Experiments Plugin (5 Steps)?

Experiments Plugin Link: https://vd-plugins.github.io/proxy/maisymoe.github.io/strife/Experiments/

  1. Copy this link
  2. Paste this link here after clicking the '+' button in the 'Plugins' tab at the top right corner
  3. Paste it like so:
    Screenshot_20240209_222958
  4. Install the plugin with the copied link
  5. You're done! Now go back and scroll to the bottom. You should see the 'Experiments' tab.

Plugin Recommendation

Personally, I recommend installing the 'Plugin Browser' plugin, which let's you browse & install plugins easily in a dedicated tab.

Plugin Browser Link: https://vendetta.nexpid.xyz/plugin-browser/

Install it the same way as the 'Experiments' plugin. That's everything! Thanks for reading! 👍

i toggled the said toggles but nothing happened. anyone to help?

@acronymfr
Copy link

and can anyone please send the code that was on the original post?

@Shadow322
Copy link

2023-09_mobile_redesign_override_toggles'.

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

@AftDawn
Copy link

AftDawn commented Feb 10, 2024

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

@Shadow322
Copy link

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

👍

@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

@TornGreyshirt
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@react-navigation+elements@1.3.18_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@react-navigation+elements@1.3.18_patch_hash=tm3j4nw5qxof2dxeh46s5mokpa_@react-navigation+nat_eqnm6ustzf2c5ljdvmfr6cc724\node_modules@react-navigation\elements'

yeah, i get this same error too

@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@react-navigation+elements@1.3.18_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@react-navigation+elements@1.3.18_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?

@TornGreyshirt
Copy link

TornGreyshirt commented Feb 11, 2024

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@react-navigation+elements@1.3.18_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@react-navigation+elements@1.3.18_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?

it's installed on my PC, but there's not really a way to install it on the phone itself, i think. Since I think the "start" button with sideloadly on PC is what's supposed to have the vendetta ipa appear on your phone screen.

this might not matter but: I'm not sure if the error has anything to do with the fact that sideloadly mentions having itunes and icloud installed on your pc, which i tried installing itunes for it and that's how it was able to detect my phone, but i'm also not fully logged into itunes either on PC since it prompted up a "welcome to your new iphone" "set up iphone" page, and i don't wanna accidentally reset my iphone, so i'm not sure if not being fully logged in has anything to do with the error, i don't think it necessarily should, since it's still detecting my phone anyways.

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

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

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