ssborbis / ContextSearch-web-ext

Search engine manager for modern browsers
356 stars 37 forks source link

"Hide the default context menu when opening the Quick Menu using right-click" issue #404

Open MW-J97 opened 2 years ago

MW-J97 commented 2 years ago

Hi there, I turned on this option "Hide the default context menu when opening the Quick Menu using right-click" and it's working, but when I use "Imagus" to zoom an image and then Rt click to open the QM, it shows the context menu as shown in this GIF. How can I fix this, please?? 07_12_2021 12_20_05_158

MW-J97 commented 2 years ago

Edit: when I change the QM position, specially the vertical one so that the mouse cursor to be on the QM when the QM appears, the context menu doesn't show, but the QM becomes laggy.

ssborbis commented 2 years ago

Send me your config. I seem to recall you needed some special css to work with that plugin.

MW-J97 commented 2 years ago

Context Search.zip

ssborbis commented 2 years ago

Looks like a conflict with that addon. It seems to get priority for the contextmenu event on the div it creates for the zoomed image, and I can't capture it to suppress the menu. Sorry, i don't see a way.

MW-J97 commented 2 years ago

The confusing thing is that doesn't happen in another browser like Firefox. Can it be an issue in Vivaldi??

ssborbis commented 2 years ago

I'm testing in Firefox and I'm seeing it. Just spitballing, but I wonder if the order the extensions are loaded has anything to do with the priority given to any one eventlistener. I just don't know enough about the backend framework to say.

MW-J97 commented 2 years ago

Ok, thanks for help, bro. If you don't mind, I want to ask another question. Enabling quickMenuPreventPageClicks makes the QM disappears spontaneously after it appears, i.e. I don't have time to press anything on the QM. That happens when I choose "Hold Lt button". Is there a CSS that can deal with this?? 08_12_2021 08_30_35_153

MW-J97 commented 2 years ago

Or is there an option to turn off QM animation?? I want it to appear without animation to decrease the lag that happens when I change the QM position. As when I change the QM position to be on top of the cursor, the problem of context menu disappears, but there is a lag in the QM when appears.

ssborbis commented 2 years ago

If you don't mind, I want to ask another question. Enabling quickMenuPreventPageClicks makes the QM disappears spontaneously after it appears, i.e. I don't have time to press anything on the QM. That happens when I choose "Hold Lt button". Is there a CSS that can deal with this??

I'm not seeing this. Can you give me a specific scenario?

Or is there an option to turn off QM animation?? I want it to appear without animation to decrease the lag that happens when I change the QM position.

Try disabling CS Options -> General -> Animations

MW-J97 commented 2 years ago

I'm not seeing this. Can you give me a specific scenario?

The above GIF. When I choose the QM to open with "Hold + Left mouse button" and enabling quickMenuPreventPageClicks, holding the left button makes the QM appears and disappears instantly.

Try disabling CS Options -> General -> Animations

Yes, it works, thanks a lot. Now, it doesn't lag when using the Right button of the mouse. It only lags slightly on YouTube, as I mentioned in another issue, but that's due to an issue in Vivaldi, not CS.

MW-J97 commented 2 years ago

A last question, please. 😅 You gave me this great script:- "#CS_dummy_id, HTML > DIV[style*="2147483647"] { z-index:2147483646 !important; }" To force the QM to be on top of Zoomed image by "Imagus" extension, and it works perfectly except in Imgur site. Is there something that can be modified to add Imgur to the same script??

ssborbis commented 2 years ago

That Imagus addon is going to be unpredictable. It's embedded into the html imporperly, so one browser/website may not render it the same way as another. That goes for trying to set which window is on top of another, too. I don't see a way to get the CS menu on top of the imagus preview on reddit, for example. You can play around with some css selectors, but there might not be a solution.

ssborbis commented 2 years ago

The above GIF. When I choose the QM to open with "Hold + Left mouse button" and enabling quickMenuPreventPageClicks, holding the left button makes the QM appears and disappears instantly.

I'm not seeing this in Firefox at all