Created
April 24, 2020 12:49
-
-
Save EliotAndres/48c9b94be67027d3e4c73d5f0cef3068 to your computer and use it in GitHub Desktop.
Discord plugin to always float on top
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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