#adds a shortcut (ctrl+shift+s) to
1 messages ยท Page 1 of 1 (latest)
audio containing version for gits and shiggles
document.addEventListener('keydown', function(event) {
if (event.ctrlKey && event.shiftKey && event.key === 'S') {
event.preventDefault(); // prevents the default action
const buttonDisable = document.querySelector('button[aria-label="Disable Silent Typing"]');
const buttonEnable = document.querySelector('button[aria-label="Enable Silent Typing"]');
if (buttonDisable) {
buttonDisable.click();
const audio = new Audio('https://nathanlaptopv.axolotl-snake.ts.net/fb8fvsjlpc0x2alhsygla04drgn40vcy-on.mp3');
audio.play();
} else if (buttonEnable) {
buttonEnable.click();
const audio = new Audio('https://nathanlaptopv.axolotl-snake.ts.net/9jwd6ky3l947i4k1yqrcp4xr3rpd5fvk-off.mp3');
audio.play();
} else {
console.log('no button, no click');
}
}
});
gits and shiggles
will these sounds work in the future? discord has recently added expiration for things on its cdn
yeah the links will probably expire lol. but you can host the sounds elsewhere and replace the links
not really, i really just wanted to make a temporary thingy to test it
but if anyone has the interest in hosting the audios and sending it here, feel free to
.
Maybe try cf or github pages
sure, if you can reach https://nathanlaptopv.axolotl-snake.ts.net
the URL works for me and tailnet members, but some people on the wider web can't reach it
works for me
it does?
yup
alright, can you send me the two files you want me to host?
added
thanks a lot dude, that's pretty cool
edited the code now