Last active
September 17, 2017 00:09
-
-
Save Nexuist/90860d54c906b238c63857bcd43ecb0c to your computer and use it in GitHub Desktop.
Paste this into Discord's DevTools for a TouchBar thinking emoji (🤔) button.
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
const {TouchBar} = require("electron").remote; | |
const {TouchBarButton} = TouchBar; | |
let thinkingButton = new TouchBarButton({ | |
label: "🤔", | |
backgroundColor: "#7851A9", | |
click: () => { | |
let chatbox = document.getElementsByTagName("textarea")[0]; | |
chatbox.value += " :thinking:"; | |
} | |
}); | |
let bar = new TouchBar([ | |
thinkingButton | |
]); | |
require("electron").remote.getCurrentWindow().setTouchBar(bar); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment