Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gugadev/2cd24ee022d430ca62bb5a8e3f1476be to your computer and use it in GitHub Desktop.
Save gugadev/2cd24ee022d430ca62bb5a8e3f1476be 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}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment