discord deafen glitch code example
Example 1: discord deafen glitch
var text = new TextDecoder("utf-8");
WebSocket.prototype.original = WebSocket.prototype.send;
WebSocket.prototype.send = function(data) {
if (Object.prototype.toString.call(data) === "[object ArrayBuffer]") {
if (text.decode(data).includes("self_deaf")) {
console.log("found mute/deafen");
data = data.replace('"self_mute":false', 'NiceOneDiscord');
console.log("faked - borkgang.com");
}
}
WebSocket.prototype.original.apply(this, [data]);
}
Example 2: discord deafen glitch
var text = new TextDecoder("utf-8");
WebSocket.prototype.original = WebSocket.prototype.send;
WebSocket.prototype.send = function(data) {
if (Object.prototype.toString.call(data) === "[object ArrayBuffer]") {
if (text.decode(data).includes("self_deaf")) {
console.log("found mute/deafen");
data = data.replace('"self_mute":false', 'NiceOneDiscord');
console.log("faked - borkgang.com");
}
}
WebSocket.prototype.original.apply(this, [data]);
}