szq2 / Discord antihijack clicks

// ==UserScript==
// @name        Discord antihijack clicks
// @namespace   Violentmonkey Scripts
// @match       https://discord.com/*
// @grant       none
// @version     1.0
// @author      -
// @description Prevents discord from hijacking right and middle mouse button clicks. That means your context menu will be the same as always.
// @license 0BSD
// ==/UserScript==

document.addEventListener("contextmenu", e => e.stopPropagation(), true);
document.addEventListener("auxclick", e => e.stopPropagation(), true);