mirror of
https://github.com/EndPwnArchive/EndPwn3Plugins.git
synced 2024-08-14 23:57:06 +00:00
20 lines
695 B
JavaScript
20 lines
695 B
JavaScript
window._silenttyping = false;
|
|
|
|
exports = {
|
|
manifest: {
|
|
author:"Cynosphere",
|
|
name:"SilentTyping",
|
|
description:"Toggleable typing indicators. Toggle with Ctrl+F12",
|
|
replacements:[
|
|
{signature:/sendTyping:function\((.)\){(.*)}/,payload:"sendTyping:function($1){if(window._silenttyping) return;$2}"}
|
|
]
|
|
},
|
|
start:function(){
|
|
document.addEventListener("keydown", function(ev) {
|
|
if (ev.ctrlKey && ev.key == "F12") {
|
|
window._silenttyping = !window._silenttyping;
|
|
$api.ui.fakeMsg(`Your typing indicator is now ${window._silenttyping ? "dis" : "en"}abled`);
|
|
}
|
|
});
|
|
}
|
|
} |