Skip to content

Instantly share code, notes, and snippets.

@Lamby777
Forked from Xeukxz/RevertUI.md
Created December 10, 2023 22:32
Show Gist options
  • Save Lamby777/d6ed130ff3af2161c3ada682b1bd307c to your computer and use it in GitHub Desktop.
Save Lamby777/d6ed130ff3af2161c3ada682b1bd307c to your computer and use it in GitHub Desktop.
Revert Discord UI

Revert Mobile Discord UI

The following code sends a patch request to discord which disables the new UI, this must be done via the the web/desktop client

Paste the following code into the developer console:

let headers = new Headers();
headers.append("Authorization", (webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken());
headers.append("Content-Type", "application/json");
fetch("https://discord.com/api/v9/users/@me/settings-proto/1", {
  method: "PATCH",
  headers: headers,
  body: JSON.stringify({
    "settings": "ahEIARABIAEyCQoHY29tcGFjdA=="
  }),
}).then(res => {
  res.ok ? console.log("Success") : console.log("Failed");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment