[Question] Is it possible to disable the MouseGestures script on a per website basis? #316
-
Ideally, I'd like to only disable specific gestures for some sites and not for others, but disabling the script entirely for certain websites is fine. One reason is some of the LAN tools I use leverage their own gestures like right-click drag, but it causes problems with the script on. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, I don't intend on adding this feature, but it could be done here: firefox-scripts/chrome/mouseGestures.uc.js Line 313 in 0bbf504 By adding a few lines. For instance: stopGesture: async function (gst, win) {
if (win.gBrowser.currentURI.spec.startsWith('https://example.com/'))
return; In this case, MGest won't work if current tab URL starts with |
Beta Was this translation helpful? Give feedback.
-
Is there a simple reference somewhere that walks through how to make these particular types of scripts which affect the browser itself? Or does this require intimately knowing how Firefox internals work? I know what kinds of keywords to use for regular scripts (userscripts, greasemonkey, greasyfork, etc), but not for this stuff. |
Beta Was this translation helpful? Give feedback.
Hi, I don't intend on adding this feature, but it could be done here:
firefox-scripts/chrome/mouseGestures.uc.js
Line 313 in 0bbf504
By adding a few lines. For instance:
In this case, MGest won't work if current tab URL starts with
https://example.com/
.