Skip to content

Instantly share code, notes, and snippets.

@EliotAndres
Created April 24, 2020 12:49
Show Gist options
  • Save EliotAndres/48c9b94be67027d3e4c73d5f0cef3068 to your computer and use it in GitHub Desktop.
Save EliotAndres/48c9b94be67027d3e4c73d5f0cef3068 to your computer and use it in GitHub Desktop.
Discord plugin to always float on top
//META{"name":"FloatOnTop"}*//
class FloatOnTop {
getName() { return "FloatOnTop"; }
getDescription() { return "Makes Discord window always float on top of other windows"; }
getVersion() { return "0.0.1"; }
getAuthor() { return "EliotAndres"; }
load() {}
unload() {}
start() {
require('electron').remote.getCurrentWindow().setAlwaysOnTop(true)
}
stop() {
require('electron').remote.getCurrentWindow().setAlwaysOnTop(false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment