I want to disable the right click context menu for Libchess so I can draw colored arrows without the menu getting in the way. The website uses right click for red, blue, and orange arrows. I've tried disabling dom.event.contextmenu.enabled in the about:config to no avail. Setting a userChrome script doesn't seem to work either. Although, I'm not able to confirm if the script is running or or not. I believe I set the proper config setting, toolkit.legacyUserProfileCustomizations.stylesheets, to true for utilizing a chrome user script . I'm not fully familiar with using the about:config nor with user scripts, so this could be an issue on my part. Any help would be appreciated. I'm using the latest version of Firefox nightly.
there are websites that override the right click behaviour to provide a popup menu (this is enough of a problem that there's an ext called absolute enable right click). Maybe you can just figure out how those websites do it inject that code into the website
>>107501664I remember reading somewhere that some people reverse their right-click and middle mouse button functionality. But I don't remember how though, and I don't know if it will actually solve the issue or just make right-click completely useless on that site. Still, it's something to look into.
Install ViolentMonkey and ask ChatGPT to write you a userscript.
>>107501664The site should do that for you.
>>107501664In about:configchange dom.event.contextmenu.enabled to falseEnjoy. 4chan is dead.
>>107504986Didn't OP say he already tried that?>I've tried disabling dom.event.contextmenu.enabled in the about:config to no avail.
>>107501664werks on my machine. try an actual release, shit is going to break often on nightly builds. alternatively try disabling all your extensions one by one until it works.
I would personally just use a grease monkey script. Something like this on the webpage or on the specific element you want disabled.document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
>>107501664press shift and right click
>>107501664// ==UserScript==// @name Disable Lichess Right-Click Menu// @namespace http://tampermonkey.net/// @version 1.0// @description Disable right-click context menu on Lichess// @author You// @match https://lichess.org/*// @match https://*.lichess.org/*// @grant none// @run-at document-start// ==/UserScript==(function() { 'use strict'; document.addEventListener('contextmenu', function(e) { e.preventDefault(); e.stopPropagation(); return false; }, true);})();
>>107501664ublock origin is removing the code that removes the right click.
idk probably somewhere in about:config