Skip to content

Instantly share code, notes, and snippets.

@TechStreetDev
Last active February 11, 2024 14:45
Show Gist options
  • Save TechStreetDev/a8d0c2938e3c922db2b6b61b5f7a0bbd to your computer and use it in GitHub Desktop.
Save TechStreetDev/a8d0c2938e3c922db2b6b61b5f7a0bbd to your computer and use it in GitHub Desktop.
This tutorial explains how to revert to the old (and better) discord mobile layout.

How to Revert New Discord Layout?

  1. Go to https://discord.com/app on your computer
  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)

How does this work?

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

How to Switch Back to New Layout?

  1. Go to the mobile app
  2. Open settings tab
  3. Select appearance
  4. Enable the Show New Layout option
@ELKER54
Copy link

ELKER54 commented Dec 22, 2023

So good to have the old interface back

@infernys20
Copy link

Wow. It actually worked! Now I'm curious when it's gonna get patched and reverted back to the new shitty one
Anyway, much appreciated!

@minerscale
Copy link

Hahahahaha nice. Can't wait to forget that I did this only to have it completely break in two weeks. But really, the old UI was better.

@Kofysh
Copy link

Kofysh commented Dec 23, 2023

Nice !

@MrCoja
Copy link

MrCoja commented Dec 24, 2023

Absolute unit, thanks!

@Botond24
Copy link

You're a lifesaver

@GodtierWaifu
Copy link

holy shit you king the search function doesn't suck ass anymore

@Lumaric
Copy link

Lumaric commented Feb 9, 2024

I am discord beta user, that doesn't work anymore with the new beta app version. My client info : App: 216.12 (216112) betaRelease; Manifest: N/A; Build Override: N/A; Device: OP594DL1 (CPH2449) OS 34;
Edit : that doesn't work anymore even for older version, they seem to have blocked it

@rin750
Copy link

rin750 commented Feb 10, 2024

No longer works as of 2024/02/09. The code worked great when I was able to use the older layout though!

@Ene2142
Copy link

Ene2142 commented Feb 11, 2024

Yep stopped working on Android at least. What a retarded decision to not let us use the right swipe to view people online as an option in the settings. That is the most annoying one. I don't fucking need the swipe to reply ffs.

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