Skip to content

Instantly share code, notes, and snippets.

@rosegayming
Last active June 7, 2020 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosegayming/3e4b4a8de15a4733f070bbf13b66f79a to your computer and use it in GitHub Desktop.
Save rosegayming/3e4b4a8de15a4733f070bbf13b66f79a to your computer and use it in GitHub Desktop.
  • First of all, you need to download and install a CSS loader of your choice. We can recommend (and we've tested) those client mods/CSS loaders:

    Keep in mind that Glasscord may work with other CSS loaders and client mods too.

    After you installed the CSS loader properly, you can continue following this guide.

    Note: Glasscord's own CSS loader was forcefully disabled on Discord to avoid conflicts with other client mods.

  • Look in the Releases section for the latest released version of Glasscord. Download the glasscord.asar file from there.

  • Locate your Discord Desktop Core module folder. In the respective file paths, x.x.x corresponds to the version number.

    • On Windows, it is %AppData%\discord\x.x.x\modules\discord_desktop_core\
    • On macOS, it is ~/Library/Application Support/discord/x.x.x/modules/discord_desktop_core/
    • On Linux we must make distinction between three main cases:
      • If you installed Discord via .tar.gz, .deb or the AUR on Arch/Manjaro, it is $HOME/.config/discord/x.x.x/modules/discord_desktop_core/
      • If you installed it via Snap package, it is $HOME/snap/discord/current/.config/discord/x.x.x/modules/discord_desktop_core/
      • If you installed it via Flatpak, it is $HOME/.var/app/com.discordapp.Discord/config/discord/x.x.x/modules/discord_desktop_core/ Everything said here assumes that you're using the stable release. If you are using Public Test Beta (discordptb) or Canary (discordcanary), please look for the according configuration path. Also, please note that if you installed Discord via Snap/Flatpak, the blur behind effect will most likely fail to load (that's because the xprop tool is not available to the app container).
  • Put the glasscord.asar file inside that folder.

  • If you are on Linux, you should make sure that you have the xprop package installed.

  • Edit the index.js file which was already in that folder.

    The text inside that file

    module.exports = require('your other awesome mods or the core.asar from Discord');```
    
    
    
    should become
    ```require('./glasscord.asar');
    // THE TEXT BELOW IS JUST AN EXAMPLE OF WHAT CAN BE INSIDE THE INDEX.JS FILE -- DO NOT COPY
    module.exports = require('your other awesome mods or the core.asar from Discord');```
    
    
    
    so you really have to write require('./glasscord.asar'); at the absolute beginning of that file.
    
  • If you forgot to install a CSS loader and you've noticed it now because of this sentence written in bold, please do it and then repeat the previous step!

  • You can now start Discord and Glasscord would be running!

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