Enable Context Menu Copy

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: Lootyhoof, FranklinDM

[TMac]

Enable Context Menu Copy

Unread post by [TMac] » 2019-06-29, 21:33

I'm doing a comparison-review of a handful of browsers (Pale Moon, WaterFox, Brave and Iridium) with a variety of functionalities, including some by extension. So far, the main, and unexpected, problem in Pale Moon appears to be that scripts can hijaak the context menu, and no scripts re-enable it on demand.

An example (it's sketchy... but typical) is at http://www.meetup4fun.com/search_result ... &uid=55992 (The profile is random, just an example.) If you want to right-click, retrieve the image URL and submit it to TinEye (which would tell you that is indeed a scam, with a six-year-old photo on many scam sites), you can't do it.

In Chrome and in the other listed browsers, you can install "Absolute Enable Copy", or any of several other extensions, and then just click it on to get your control back. No such extensions seem available to Pale Moon.

You could go to about:config and set "dom.event.contextmenu.enabled" to False... which prevents the hijacking of the context menu, but then the O365 context menu is overlayed by the browser context menu, making both less functional, and perhaps more thoroughly screwing up other webapps. Also, this isn't a user-friendly mechanism for controlling it, and my comparison is for less savvy users.

Is there an extension for this available to Pale Moon, or some other type of control allowing per-site/session control? If so, how can it be better (more visibly) exposed?

yami_

Re: Enable Context Menu Copy

Unread post by yami_ » 2019-06-29, 22:55

[TMac] wrote:
2019-06-29, 21:33
You could go to about:config and set "dom.event.contextmenu.enabled" to False... which prevents the hijacking of the context menu, but then the O365 context menu is overlayed by the browser context menu, making both less functional, and perhaps more thoroughly screwing up other webapps.
Leave the pref disabled and use the Escape key to close the content area context menu.

[TMac]

Re: Enable Context Menu Copy

Unread post by [TMac] » 2019-06-30, 00:04

I think perhaps you missed the point. Users understand "If the website is thwarting you, click this icon" to activate an extension. It's acceptable because it's the fault of the website. Telling them, "You have to open up a new window, find this specific value, change it, and reload... or... you have to put up with two context menus on sits you regularly use and hit <escape> to get one to go away... or... you can use almost any other browser and just activate the extension when you need it" is going to result in the latter.

Is there a more user-friendly approach?

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1324
Joined: 2015-09-08, 22:54
Location: 127.0.0.1

Re: Enable Context Menu Copy

Unread post by Isengrim » 2019-06-30, 00:28

[TMac] wrote:
2019-06-30, 00:04
Is there a more user-friendly approach?
Not one that's built in to the browser. The pref yami mention is an all-or-nothing configuration and there's no way around that.

An extension could probably provide a more fine-tuned approach, but as you said the only one out there is not compatible with Pale Moon. This is because Pale Moon does not support Web Extensions. One could probably rewrite the existing Web Extension as a XUL extension that is compatible with PM.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37352
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Enable Context Menu Copy

Unread post by Moonchild » 2019-06-30, 00:30

[TMac] wrote:
2019-06-30, 00:04
Is there a more user-friendly approach?
Port the extension you like to Pale Moon.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Trapper
Fanatic
Fanatic
Posts: 113
Joined: 2016-01-29, 00:21

Re: Enable Context Menu Copy

Unread post by Trapper » 2019-06-30, 00:49

Another option might be to temporarily disable & enable javascript via a toolbar button

For example: QuickJS v1.3.1

Herb_

Re: Enable Context Menu Copy

Unread post by Herb_ » 2019-06-30, 07:15

dom.event.contextmenu.enabled can be left untouched.

Shift-Right-Click will always bring up the browser right-click context menu, no need for an extension.

[TMac]

Re: Enable Context Menu Copy

Unread post by [TMac] » 2019-06-30, 12:38

Thanks, Herb. I didn't know about Shift Right-Click. That is probably better than using an extension icon, other than it being obscure enough that Moonchild himself didn't remember it.

Goodydino
Keeps coming back
Keeps coming back
Posts: 882
Joined: 2017-10-10, 21:20

Re: Enable Context Menu Copy

Unread post by Goodydino » 2019-06-30, 18:57

If you are using Element Inspector, shift-right-click will open that.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37352
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Enable Context Menu Copy

Unread post by Moonchild » 2019-06-30, 21:05

Goodydino wrote:
2019-06-30, 18:57
If you are using Element Inspector, shift-right-click will open that.
There are only so many shortcuts to go around.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

[TMac]

Re: Enable Context Menu Copy

Unread post by [TMac] » 2019-06-30, 22:32

Moonchild wrote:
2019-06-30, 21:05
Goodydino wrote:
2019-06-30, 18:57
If you are using Element Inspector, shift-right-click will open that.
There are only so many shortcuts to go around.
OMG!!! Quote of the Effin Week!

New Tobin Paradigm

Re: Enable Context Menu Copy

Unread post by New Tobin Paradigm » 2019-06-30, 22:44

DOMi also uses that shortcut. Blame Ryan ;)

User avatar
Tomaso
Board Warrior
Board Warrior
Posts: 1622
Joined: 2015-07-23, 16:09
Location: Norway

Re: Enable Context Menu Copy

Unread post by Tomaso » 2019-07-01, 17:26

[TMac] wrote:
2019-06-29, 21:33
If you want to right-click, retrieve the image URL and submit it to TinEye (which would tell you that is indeed a scam, with a six-year-old photo on many scam sites), you can't do it.
If you're using uBlock Origin, then give this rule a try:

Code: Select all

meetup4fun.com##+js(remove-attr.js, oncontextmenu)

Goodydino
Keeps coming back
Keeps coming back
Posts: 882
Joined: 2017-10-10, 21:20

Re: Enable Context Menu Copy

Unread post by Goodydino » 2019-07-02, 21:44

The context menu for the picture on that page works perfectly for me. Maybe the difficulty is specific to Windows?

User avatar
therube
Board Warrior
Board Warrior
Posts: 1702
Joined: 2018-06-08, 17:02

Re: Enable Context Menu Copy

Unread post by therube » 2019-07-03, 02:10

herb wrote:Shift-Right-Click will always bring up the browser right-click context menu, no need for an extension.
Thanks.