Skip to content

Instantly share code, notes, and snippets.

@TechStreetDev
Last active August 16, 2024 12:27
Show Gist options
  • Select an option

  • Save TechStreetDev/a8d0c2938e3c922db2b6b61b5f7a0bbd to your computer and use it in GitHub Desktop.

Select an option

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

ELKER54 commented Dec 22, 2023

Copy link
Copy Markdown

So good to have the old interface back

@infernys20

Copy link
Copy Markdown

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
Copy Markdown

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

Kofysh commented Dec 23, 2023

Copy link
Copy Markdown

Nice !

@MrCoja

MrCoja commented Dec 24, 2023

Copy link
Copy Markdown

Absolute unit, thanks!

@Botond24

Copy link
Copy Markdown

You're a lifesaver

@GodtierWaifu

Copy link
Copy Markdown

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

@Lumaric

Lumaric commented Feb 9, 2024

Copy link
Copy Markdown

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

@AzuSapphire

Copy link
Copy Markdown

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

@Ene2142

Ene2142 commented Feb 11, 2024

Copy link
Copy Markdown

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