ContextSearch-web-ext icon indicating copy to clipboard operation
ContextSearch-web-ext copied to clipboard

link search doesn't get disabled

Open rezad1393 opened this issue 1 year ago • 4 comments

I have disabled link option search on context menu.

but right clicking on links still shows the search menu.

this also happens with "page" option even though I have not set any search for page element.

Screenshot_20240613_144906 Screenshot_20240613_144657-1

rezad1393 avatar Jun 13 '24 11:06 rezad1393

I don't think those options ever made it to the newer contextual menus. I'll see about fixing that.

The "page" shouldn't be showing empty folders. Not sure what is going on there. I may need to try your config to see what's going on.

ssborbis avatar Jun 13 '24 16:06 ssborbis

the link fix should be in the master branch if you're sideloading. Otherwise, I hope to get a new release out in a week or so. Lots of changes need testing though

ssborbis avatar Jul 07 '24 18:07 ssborbis

btw outside of link search, when I right click I have "search for page". is this a limitation of firefox addon that this addon cant know what element it is on before showing menu?

for example if I right clink on a link and it shows "search for link" then right click on another empty part of page, first right click doesn't show the addon submenu at all. then next clicks shows "search for page".

and if I use right click to show the "search for page" then next right click on links doesn't show link search submenu but next right clicks do.

same for right clicking on images after right clicking on links. same with selection and link.

though to be honest this sound like a separate issue.

rezad1393 avatar Jul 08 '24 02:07 rezad1393

This usually happens because the context menu will show immediately, whether the code for this addon has had time to finish or not. So sometimes, you'll see a placeholder where a more descriptive menu title would be, because the menu was built and displayed before the code to get the search terms had time to complete. The webextensions API doesn't give addon developers control over the menu, and we can't alter the menu once it's displayed. So it all comes down to ..............timing.

ssborbis avatar Jul 29 '24 02:07 ssborbis