Skip to content

Instantly share code, notes, and snippets.

@Soapbosnia
Last active November 17, 2024 09:46
Show Gist options
  • Save Soapbosnia/5ff2c69f2bdd404aa96df3a3691105dc to your computer and use it in GitHub Desktop.
Save Soapbosnia/5ff2c69f2bdd404aa96df3a3691105dc to your computer and use it in GitHub Desktop.
Enabling native title bar on Discord client

Enabling native title bar on Discord client

  • Step 1: Download 7-ZIP and the ASAR plugin from [ https://www.tc4shell.com/en/7zip/asar/ ]
  • Step 2: After installing 7-ZIP create a new folder inside of its install location called Formats
  • Step 3: Extract the .dll from one of the folders in the archive (x64 or 32) to the Formats folder
  • Step 4: Go to C:\Users\**YourUsername**\AppData\Local\Discord\app-1.0.9007\modules\discord_desktop_core-1\discord_desktop_core (Replace **YourUsername** with your username)
  • Step 5: Open the core.asar file with 7-ZIP and extract its content to a folder of your choice
  • Step 6: Enter the folder and go to the app subdirectory, after that find the file called mainWindow.js or mainScreen.js and open it with a text editor of your choice
  • Step 7: Go to line 419 and change frame: false to frame: true, if you can't find that text press CTRL+F and search for frame: false, it should look like the one attached in the screenshots
  • Step 8: Navigate back to the main directory of the folder, press CTRL+A, right click, select 7-ZIP and click Add to Archive
  • Step 9: Name the new archive core.asar and set the Compression level to 0 - Store
  • Step 10: Close Discord if not already and navigate back to C:\Users\**YourUsername**\AppData\Local\Discord\app-1.0.9007\modules\discord_desktop_core-1\discord_desktop_core (Replace **YourUsername** with your username)
  • Step 11: Replace the core.asar file with the newly created one

Hiding the custom title bar

  • Use a client of your choice (in my case it's not a client but OpenAsar | openasar.dev)
  • Paste the CSS code below inside the client's style/css editor

CSS

[class*=titleBar]{display: none!important}
@Soapbosnia
Copy link
Author

followed the exact steps and it still did not work

I'll make an updated guide soon, perhaps they changed something..

@T0biasCZe
Copy link

the guide still works for me, however, the maximize button is disabled....

@T0biasCZe
Copy link

however, the maximize button is disabled....

Figured out how to fix the maximize button
its disabled by better discord, to fix it, go to settings, and disable window transparency, then the maximize button will work

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